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.
string
required
Network name (testnet, mainnet, previewnet, localnet)
Get operator credentials for a specific network.
string
Target network (defaults to current network)

Network Set-Operator

Set operator credentials for signing transactions on a specific 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.
string
required
Operator credentials: name or account-id:private-key pair.
string
Target network (defaults to current network).
string(local|local_encrypted)
Key manager to use: local or local_encrypted (defaults to config setting).