Skip to content

CLI Quickstart

Here’s how to send a file using halfcopy.

Run the appropriate command from below, according to your OS:

Terminal window
cargo install halfcopy

Find a file you’d like to send, and run:

Terminal window
halfcopy send path/to/file

replace path/to/file with the path to the file you want to send!

You’ll see a four-word phrase appear on standard output. Note this down to get the file.

From a directory that does not contain a file with the same filename(possibly on another computer), run:

Terminal window
halfcopy recv your-four-word-phrase

replace your-four-word-phrase with the code you got earlier. This code is single-use and cannot be reused.

You’ll see a progress bar while the file is being transferred.

Currently, halfcopy send does not terminate after the code is used up; to stop the transfer, press Ctrl+C and wait for it to shut down.