Skip to main content

Full Command Reference

List all available networks with their configuration and health status.
Switch the active network to the specified network name.
-g, --global
string
required
Network name (testnet, mainnet, previewnet, localnet)
Get operator credentials for the current network. The active network is whichever you set with network use or the global -N / --network flag on the root command.

Network Set-Operator

Set operator credentials for signing transactions on the current network (see network use or root -N / --network).

⚠️ Use this command to set the operator to avoid triggering the setup wizard asking you to set up an operator account. This is important when using the Hiero CLI in a CI/CD environment.
-o, --operator
string
required
Operator credentials: name or account-id:private-key pair, key reference, or account alias.
-k, --key-manager
string(local|local_encrypted)
Key manager to use: local or local_encrypted (defaults to config setting).