tari config
Manages the project configuration file, tari.config.toml.
tari config <SUBCOMMAND>config init
Section titled “config init”Creates a tari.config.toml with defaults in the project root (or the git repository root). Does nothing if the file already exists.
tari config initconfig set
Section titled “config set”Sets a configuration value.
tari config set <KEY> <VALUE>tari config set default-network localnettari config set default-account myaccounttari config set networks.localnet.metadata-server-url http://localhost:3000/tari config set networks.esmeralda.metadata-server-url https://ootle.tari.com/community-templatesconfig get
Section titled “config get”Prints a single configuration value.
tari config get default-networkconfig show
Section titled “config show”Prints the full configuration file.
tari config showConfiguration resolution
Section titled “Configuration resolution”The active network is resolved first, then per-setting values are read from that network’s section.
Active network, highest priority first: --network → project default-network → global default-network → esmeralda.
Per-setting, highest priority first:
| Setting | CLI flag | Project config | Global config | Default |
|---|---|---|---|---|
| Wallet daemon URL | --wallet-daemon-url or TARI_WALLET_DAEMON_URL | — (ignored, with a warning) | networks.<active>.wallet-daemon-url | http://127.0.0.1:5100/json_rpc |
| Metadata server URL | --metadata-server-url | networks.<active>.metadata-server-url | networks.<active>.metadata-server-url | esmeralda → https://ootle.tari.com/community-templates, localnet → http://localhost:3000/, others → none |
| Template address | --template-address | networks.<active>.template-address | — | — |
| Account | --account | default-account | default-account | Wallet daemon default |
| Wallet daemon API key | --api-key | — never stored in config | — never stored in config | TARI_WALLET_DAEMON_API_KEY |