Docs / Reference

keibidrop-cli Command Reference

The interactive terminal client. You type commands at a prompt.

Model

keibidrop-cli is a REPL. Start it with no arguments. There are no command-line flags.

The prompt is keibidrop> . Tab completion suggests commands. Type help for the built-in list, exit to quit.

Source: cmd/cli/keibidrop-cli.go.

Startup

On start, the client does this, in order:

  1. Loads the config file. On the first run, it writes a commented default file. See the configuration reference.
  2. Creates the save, log, and mount directories if they are missing.
  3. Connects to the relay.
  4. If passphrase_protect is on, asks for your passphrase. This is the only interactive prompt at startup.
  5. Prints the banner, the version, the config, log, save, and mount paths, and your fingerprint.
  6. Shows the keibidrop> prompt.

There is no setup wizard. Your identity is created silently on the first run and reused after that.

Commands

Session and info

CommandDescription
helpShow the command list.
versionShow the banner and version.
statusFull connection and session status.
show <what>Show one value. See show arguments.
exitDisconnect, unmount, and quit. quit is an alias.

Connection

CommandDescription
register <fingerprint>Register the peer's fingerprint. On a LAN, an ip:port address from discover is also accepted.
discoverScan the local network for about 10 seconds. Lists nearby peers with their addresses.
connectConnect to the registered peer. The role is chosen automatically by fingerprint.
createCreate a room and wait for the peer.
joinJoin a room the peer created first.
disconnectDisconnect and reset the session. Prints your new fingerprint.
peer-infoPeer details and connection mode.

Files

CommandDescription
add <filepath>Share a file or directory.
add-as <path> <remote-name>Share with a custom remote name.
unshare <filename>Stop sharing a file. The file stays on disk. delete does the same.
listList shared files and their locations.
pull <remote> <local>Copy a file or folder from the peer. Both arguments are required.
cancel-download <name>Pause an active download. Partial data is kept.
progress <name>Download progress, 0-100%.

Contacts

CommandDescription
contactsList saved contacts.
add-contact <name> <fingerprint>Save a contact.
remove-contact <fingerprint>Remove a saved contact.
quick-connect <fingerprint>Connect to a saved contact.
save-contact <name>Save the currently connected peer as a contact.

Modes and diagnostics

CommandDescription
incognito [on|off]Query or toggle incognito mode.
poll-eventPop the next event from the event queue.
export-logs [dest]Export a sanitized copy of the log. sanitize-logs is an alias.

show arguments

CommandShows
show fingerprintYour fingerprint.
show ipYour IP.
show peer fingerprintThe peer's fingerprint.
show peer ipThe peer's IP.
show relayThe connected relay URL.
show configThe full configuration in effect: paths, ports, bridge, modes, identity, and contact count.

Notes