ERPC CLI commands
Every ERPC CLI command group in one table, the options that work on every command, and the exit codes a script can rely on.
This page describes ERPC CLI
v0.1.0-rc.4, a pre-release.Command groups
Run any command group without a verb, such as
erpc validator or erpc worker, to list its verbs.Global options
--jsongives machine-readable output:erpc --json <command>.ERPC_JSON=truehas the same effect. On node commands,--jsonhas to go before the command.--langsets the language erpc speaks:en,ja,zhorru. Without it, erpc uses thelocalesetting, else the system's language.
Errors and exit codes
A failure reads the same everywhere: an
error: line saying what went wrong, and a hint: line saying what to do next when there is one. With --json, a failure is one object on standard output, {"error": {"code", "exit", "message", "hint"}}. Two cases print clap's own message and exit 2 instead: a command line clap cannot parse at a terminal, and an argument the verb of a node tree (erpc validator, rpc, node) does not take, even under --json. A details field appears only when a command has more to say to a script about what it did before it failed, and never at a terminal.Stopped by Ctrl-C (or SIGTERM, SIGHUP), erpc ends by the signal itself, so a loop in a script stops too. A published code keeps its name and its exit status, and a code is never reused.
Storage and backups
bash
erpc storage buy buys an ERPC Global Storage plan, paid from ERPC Credit. Plans and prices are on Pricing.erpc storage
erpc storage putencrypts a file on this machine before any of it is sent, unless--no-encryptis given. ERPC stores only the encrypted bytes and never holds the key.erpc storage getnotices an encrypted file and decrypts it.- There is one storage key per account, kept in the store
erpc loginchose. erpc does not keep it in the Linux kernel keyring, which is lost on reboot: sign in with--store 1passwordor--store file, or use--no-encrypt. With thefilestore the key sits in~/.erpc/storage-key(mode 0600), not encrypted.--no-encryptuploads the file you are sending as it is, unencrypted. - Losing the storage key loses every file encrypted with it, and ERPC cannot recover it.
erpc storage key export --showprints the key so a copy can be kept away from the machine, anderpc storage key importtakes it back on another machine. - The path a file is stored under, and its size, are visible to ERPC.
erpc storage keys listshows the storage access keys, anderpc storage keys revoke <n>revokes one.
erpc backup
erpc backup backs a machine up to ERPC Global Storage with restic. Files are encrypted on your machine before they leave it, and ERPC never holds a password that opens the backups.- Each machine gets an append-only key that cannot delete its own backups. The machine where you ran
erpc backup initalso holds the keys that can, so the protection holds only on a machine that keeps neither the erpc session nor the account's backup secrets. - Keep a copy of
erpc backup password --showaway from the machines. Losing the master password and every machine'sbackup.envloses the backups. - A backup leaves out known key files and system secrets, such as
.ssh/id_*,.config/solana/id.json, erpc's session and the SSH host keys. Key material under another name or at another place is backed up like any other file: leave it out with--exclude. - erpc installs restic 0.19.1 and checks both the archive and the program against SHA-256 digests compiled into erpc.
- Scheduling: on Linux,
sudo erpc backup init, thensudo erpc backup schedule daily. On macOS,erpc backup schedule daily ~/Documents; the job runs as you, while you are signed in. - Backups go to the account's default region.
erpc backupruns on the machine it backs up; a worker's server is set up witherpc worker backup oninstead (Back up the app's state).






