Skip to main content

Most Used Commands

Create a new account
hcli account create \
  --balance 1 \
  --name <account-name>
Check an account balance
hcli account balance --account myaccount
List all accounts
hcli account list

Full Command Reference

Creates a new Hedera account.
-b, --balance
int
required
Initial HBAR balance. Add “t” for Tinybar units
--balance 10 —> 10 HBAR
--balance 100t —> 100 Tinybars
-a, --auto-associations
int
The maximum number of automatic association tokens allowed
Default value set to 0
-k, --key-manager
string
Key manager to use: local or local_encrypted (defaults to config setting)
-n, --name
string
required
Alias of the created account to be used
-t, --key-type
string(ecdsa|ed25519)
Set the default key type. Defaults to ecdsa (recommended for full usability)
-p, --payer
string
Set the payer account, can be an account ID or alias
Import an existing account into the CLI tool. Provide accountId:privateKey format.
-K, --key
string
required
Specify the private key in accountId:privateKey format (e.g., “0.0.123456:abc123...”)
-n, --name
string
required
Alias for the account to be used
-k, --key-manager
string
Key manager to use: local or local_encrypted (defaults to config setting)
Retrieve the balance for an account ID or name.
-a, --account
string
required
Account ID, alias or name of the account present in state
-H, --hbar-only
Show only HBAR balance
-t, --token
string
Show balance for specific token ID, specify token ID or name
-r, --raw
Display balances in raw units (tinybars for HBAR, base units for tokens)
List all accounts stored in the address book.
-p, --private
Include private keys reference ID in listing. This is not the actual private key!
View detailed information about an account.
-a, --account
string
required
View data for account ID or name of the account present in state.
Remove all account information from the address book (no options)
Delete an account from the address book. You need to specify either name or ID to delete the account.
-n, --name
string
Account name to be deleted from the store.
-i, --id
string
Account ID to be deleted from the store.