nym-socks5-client Binary Commands
| Command | What it does |
|---|---|
init | Creates the configuration, keys and data directory of a client under --id, sets the SOCKS5 provider to use (--provider), and registers the client with a gateway. Run it once, before run. |
run | Starts the client with its stored configuration and opens the local SOCKS5 proxy. --port and --host override the stored values for this run. |
ecash show-ticket-books | Shows the ticketbooks that the client has imported. |
ecash import-ticket-book | Imports a ticketbook that was issued elsewhere, for example with nym-cli ecash issue-ticket-book. |
ecash import-coin-index-signatures | Imports the coin index signatures that ticketbooks need. |
ecash import-expiration-date-signatures | Imports the expiration date signatures that ticketbooks need. |
ecash import-master-verification-key | Imports the master verification key that ticketbooks need. |
list-gateways | Lists the gateways that the client is registered with. |
add-gateway | Registers the client with one more gateway (--gateway-id, or one chosen at random or by latency) and makes it the active gateway. |
switch-gateway | Makes another registered gateway the active one. The client must be registered with it already. |
refresh-gateway-keys | Registers the client again with a gateway (the active one by default) under new keys, so that the gateway sees a new client. The client must not be running. |
reset-client-identity | Gives the client new keys. It removes every gateway registration and stored reply, and keeps the ticketbooks. The client must not be running, and needs add-gateway afterwards. |
build-info | Shows the build information of the binary. |
completions | Prints shell completions for the shell that you name. |
generate-fig-spec | Prints a Fig completion spec. |
Two options apply to every command: --config-env-file <path> loads an env file that configures the client, and --no-banner turns off the banner in a terminal.
Key and database encryption
Two flags encrypt the data that nym-socks5-client keeps on disk. Give each one as an environment variable, not as a flag value, because a flag value shows in the process list. Set the variable in the process environment: nym-socks5-client reads the file of --config-env-file only after it parses the arguments, so a value in that file has no effect on these flags.
| Flag | Environment variable | What it does | Commands |
|---|---|---|---|
--key-passphrase | NYM_CLIENT_KEY_PASSPHRASE | Encrypts the client’s private keys on disk. Keys that are still in plaintext are encrypted the first time the client loads them with the passphrase. | init, run, add-gateway, refresh-gateway-keys, reset-client-identity |
--database-key | NYM_CLIENT_DATABASE_KEY | Encrypts the client’s databases with SQLCipher, with a raw 256-bit key given as 64 hex characters. Databases that are still in plaintext are encrypted the first time the client opens them with the key, and you must then give the same key on each run. The binary must be built with SQLCipher. | every command that opens the databases: init, run, the ecash commands, list-gateways, add-gateway, switch-gateway, refresh-gateway-keys, reset-client-identity |
Run nym-socks5-client <command> --help for all options.
Last updated on