]> Untitled Git - bdk-cli/commit
docs(readme): document env vars accepted by wallet config
authormusab1258 <habeebmusab@gmail.com>
Mon, 16 Nov 2026 21:56:59 +0000 (22:56 +0100)
committermusab1258 <habeebmusab@gmail.com>
Thu, 19 Nov 2026 07:54:48 +0000 (08:54 +0100)
commit3efea551ea98bedbe78d033a091459bbc0d40ea6
tree88c39a949f528809f4fc1cfe29189f06c98a4dce
parent2fceebafc4b10f44f268dcbbdf840193023cf4bb
docs(readme): document env vars accepted by wallet config

The usage synopsis for `wallet config` lists `--rpc-user` and
`--rpc-password`, but neither flag exists. The rpc backend takes
`--basic-auth <user:password>`, or the path of a cookie file as a
positional argument, and the client uses the cookie when one is given.
It also shows `--database-type` as optional, but sqlite is a default
feature, so the option is required.

Most `wallet config` options also have an environment variable
counterpart through clap's `env` attribute, but none of the names are
documented, so users have to read src/commands.rs to find them.

Fix the synopsis, then add a table with each variable, the option it
sets and the command or backend that uses it. State that a command line
flag takes precedence over its variable, and that the values are saved
to `config.toml`, which is what the other wallet commands read.
`DATADIR` and `WALLET_NAME` are listed below the table with what each
does, since they are not saved as options.

Refs: #271
README.md