Beetle has a single command line interface, common to all platforms & distributions.
Send data. Usage: iroh [OPTIONS] <COMMAND> Commands: provide Serve the data from the given path get Fetch the data from the hash get-ticket Fetch the data using a ticket for all provider information and authentication. help Print this message or the help of the given subcommand(s) Options: --keylog Log SSL pre-master key to file in SSLKEYLOGFILE environment variable -h, --help Print help -V, --version Print version
Serve the data from the given path Usage: iroh provide [OPTIONS] [PATH] Arguments: [PATH] Options: -a, --addr <ADDR> Optional port, defaults to 127.0.01:4433 --auth-token <AUTH_TOKEN> Auth token, defaults to random generated --key <KEY> If this path is provided and it exists, the private key is read from this file and used, if it does not exist the private key will be persisted to this location -h, --help Print help
Fetch the data from the hash Usage: iroh get [OPTIONS] --peer <PEER> --auth-token <AUTH_TOKEN> <HASH> Arguments: <HASH> The root hash to retrieve Options: -p, --peer <PEER> PeerId of the provider --auth-token <AUTH_TOKEN> The authentication token to present to the server -a, --addr <ADDR> Optional address of the provider, defaults to 127.0.0.1:4433 -o, --out <OUT> Optional path to a new directory in which to save the file(s). If none is specified writes the data to STDOUT -h, --help Print help
Fetches some data from a ticket, The ticket contains all hash, authentication and connection information to connect to the provider. It is a simpler, but slightly less flexible alternative to the `get` subcommand. Usage: iroh get-ticket [OPTIONS] <TICKET> Arguments: <TICKET> Ticket containing everything to retrieve a hash from provider Options: -o, --out <OUT> Optional path to a new directory in which to save the file(s). If none is specified writes the data to STDOUT -h, --help Print help (see a summary with '-h')