Commands Reference
Complete reference for all Privacy Boost CLI commands.Global Options
Available for all commands:Configuration Commands
init
Initialize a configuration file at~/.privacy-boost/config.toml.
-n, --network <PRESET>- Network preset to use (default:local)
Authentication Commands
login
Connect wallet, derive privacy keys, and authenticate with the backend. Saves the session so future commands don’t require--private-key.
logout
Clear saved session.sessions
List saved sessions and their expiry status.status
Show current connection and authentication status.Balance Commands
balance
Query shielded balance for a specific token.-t, --token <ADDRESS>- Token contract address (use0x0for ETH)
balances
Query all token balances.Vault Commands
deposit
Deposit tokens into the shielded pool.-t, --token <ADDRESS>- Token contract address (required)-a, --amount <VALUE>- Amount in wei--human- Parse amount as human-readable (e.g.,1.5instead of wei)--decimals <N>- Decimals for human-readable parsing (default: 18)
withdraw
Withdraw tokens from the shielded pool to a public address.-t, --token <ADDRESS>- Token contract address (required)-a, --amount <VALUE>- Amount in wei-r, --recipient <ADDRESS>- Recipient Ethereum address (required)--human- Parse amount as human-readable--decimals <N>- Decimals for human-readable parsing (default: 18)
send
Send a private transfer to a privacy address or Ethereum address.-t, --token <ADDRESS>- Token contract address (required)-a, --amount <VALUE>- Amount in wei-r, --recipient <ADDRESS>- Recipient privacy address (194 chars) or Ethereum address (42 chars)--human- Parse amount as human-readable--decimals <N>- Decimals for human-readable parsing (default: 18)
History Commands
history
View transaction history.-t, --tx-type <TYPE>- Filter by type (shield,unshield,transact)--token <ADDRESS>- Filter by token address-l, --limit <N>- Maximum number of results
Utility Commands
search-address
Look up a user’s identity by Ethereum address or MPK.<IDENTIFIER>- Ethereum address (42 chars) or MPK (66 chars)
version
Show version information.Environment Variables
| Variable | Description |
|---|---|
PRIVATE_KEY | Wallet private key |
PRIVACY_BOOST_NETWORK | Network preset |
PRIVACY_BOOST_CONFIG | Config file path |
PRIVACY_BOOST_INDEXER_URL | Indexer URL |
PRIVACY_BOOST_PROVER_URL | Prover URL |
PRIVACY_BOOST_RPC_URL | RPC URL |
PRIVACY_BOOST_CHAIN_ID | Chain ID |
PRIVACY_BOOST_SHIELD_CONTRACT | Shield contract address |
PRIVACY_BOOST_WETH_CONTRACT | WETH contract address |
Next Steps
- Network Presets - Network configuration
- Scripting Guide - Automation examples
- API Reference - Library API documentation