Most Used Commands
Create a new token with treasy and admin key set to alias AliceFull Command Reference
If you want to create a complex token with many keys, custom fees, and other options, take a look at the below guide for creating tokens from a specification file using thetoken create-from-file command.
Token Create
Token Create
Create a new fungible token with specified properties.
Token name.
Token symbol.
Treasury account: either an alias or
treasury-id:treasury-key pair.Decimals for the token. Default: 0.
Initial supply amount. Default: display units (with decimals applied). Append “t” for raw base units (e.g., “1000t”).
Set supply type:
INFINITE (default) or FINITE.Maximum supply of the token to bet set upon creation. This option is required if you set supply type to
FINITE.Admin key to be set for the token upon creation. If option not set then the operator key is passed as admin key.
Optional name to register for the token.
Key manager to use: local or local_encrypted (defaults to config setting).
Optional memo for the token (max 100 characters).
Token Create-From-File
Token Create-From-File
Create a new token from a JSON file definition with advanced features. See the full guide below.
Example:
Example:
hcli token create-from-file --file ~/projects/token.jsonToken definition file path (absolute or relative) to a JSON file.
Key manager to use: local or local_encrypted (defaults to config setting).
Token Associate
Token Associate
Associate a token with an account to enable transfers.
Token: either a token alias or token-id
Account: either an alias or
account-id:account-key pair to associate with the token.Key manager to use: local or local_encrypted (defaults to config setting).
Token Transfer
Token Transfer
Transfer a fungible token from one account to another.
Token: either a token alias or token-id.
Destination account: either an alias or account-id.
Source account: either a stored alias or
account-id:private-key or account-id:key-type:private-key pair.Amount to transfer. Default: display units (with decimals applied). Append “t” for raw base units (e.g., “100t”).
Key manager to use: local or local_encrypted (defaults to config setting).
Token List
Token List
Guide: Token Create From File (Specification)
Create a token by defining its configuration in a JSON file. This is the recommended approach for repeatable token creation (scripts, CI, team handoffs), and it supports aliases for token keys so you don’t have to hardcode account keys everywhere.What it does
token create-from-file reads a JSON file that matches a supported schema and creates a token on the selected network.
You can define:
- token metadata (name, symbol, decimals, memo)
- supply model (finite/infinite, initial/max supply)
- token keys (admin, supply, wipe, kyc, freeze, pause, feeSchedule)
- optional token associations
- optional custom fees
Quickstart
Create atoken.json file and add a JSON specification. Here’s a basic example that both uses the full key format for the treasuryKey and the alias format for the adminKey.
hcli token create-from-file --file ./token.json