Skip to main content

Most Used Commands

Create a new account
Check an account balance
List all accounts

Full Command Reference

Creates a new Hedera account.
string
required
Initial HBAR balance. Default: display units. Add “t” for Tinybar units
--balance 10 —> 10 HBAR
--balance 100t —> 100 Tinybars
int
The maximum number of automatic association tokens allowed
Default value set to 0
string
Alias of the created account to be used
string
Key manager to use: local or local_encrypted (defaults to config setting)
string(ecdsa|ed25519)
Key type for the account. Default: ecdsa. Mutually exclusive with --key.
string
Existing key for the new account (ecdsa/ed25519 private or public key, key reference kr_xxx, or alias name). Mutually exclusive with --key-type.
Update properties of an existing Hedera account on-chain.
string
required
Account ID or alias of the account to update
string
New key for the account (private/public key, key reference, or alias). Requires private key in KMS.
string
Key manager to use: local or local_encrypted (defaults to config setting)
string
Account memo (max 100 characters). Pass null to clear.
number
Max automatic token associations (-1 for unlimited, 0 to disable)
string
Account ID to stake to. Pass null to clear.
number
Node ID to stake to. Pass null to clear.
boolean
Decline staking reward
number
Auto renew period in seconds
boolean
Require receiver signature for transfers
Import an existing account into the CLI tool. Provide accountId:privateKey format.
string
required
Specify the private key in accountId:privateKey format (e.g., “0.0.123456:abc123...”)
string
Name of the account to be used
string
Key manager to use: local or local_encrypted (defaults to config setting)
Retrieve the balance for an account ID or name.
string
required
Account ID, alias or name of the account present in state
Show only HBAR balance
string
Show balance for specific token ID, specify token ID or name
Display balances in raw units (tinybars for HBAR, base units for tokens)
List all accounts stored in the address book.
Include private keys reference ID in listing. This is not the actual private key!
View detailed information about an account.
string
required
View data for account ID or name of the account present in state.
Remove all account information from the address book.
Delete an account on Hedera and remove it from local state if present, or remove from local state only with --state-only. On-chain delete requires --transfer-id for the beneficiary account.
string
required
With --state-only: Hedera account ID or local alias. Otherwise: account key (ID, id:private key, key reference, alias with stored key, etc.)
string
Required when deleting on Hedera: account that receives remaining HBAR (Hedera ID or alias). Mutually exclusive with --state-only.
Remove the account only from local CLI state. Do not submit AccountDeleteTransaction. Mutually exclusive with --transfer-id.