Documentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-514-egress-ports.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Most Used Commands
Create a new fungible token with treasury and admin key set to alias AliceFull Command Reference
The token plugin includes many subcommands (NFTs, airdrops, mint, burn, freeze, and more). The sections below cover common FT and NFT flows. For the full command list and flags, runhcli token --help, then hcli token with your subcommand and --help.
For repeatable creation from JSON, use token create-ft-from-file or token create-nft-from-file and the guide below.
Token Create-FT
Token Create-FT
Create a new fungible token with specified properties.Example
Fungible token name.
Fungible token symbol.
Treasury account:
{accountId}:{privateKey} pair, key reference, or account alias. Defaults to the operator.Decimals for the fungible token. Default: 0.
Initial supply amount. Default:
1000000 in display units (with decimals applied). Append t for raw base units (e.g., 1000t).Supply type:
INFINITE (default) or FINITE.Maximum supply at creation (display units, or append
t for raw base units). Use with FINITE supply type.Optional admin key. Can be
{accountId}:{privateKey} pair, private key in {ed25519|ecdsa}:private:{private-key} format, key reference, or account alias. Omit for a token without an admin key.M-of-N: number of admin keys required to sign (only when multiple
--admin-key values are set).Supply key(s). Same key formats as other repeatable token keys.
M-of-N for supply keys (only when multiple
--supply-key values are set).Optional freeze key(s).
M-of-N for freeze keys (only when multiple
--freeze-key values are set).When true and a freeze key is set, new token associations are frozen by default. Ignored without a freeze key (a warning is logged).
Optional wipe key(s).
M-of-N for wipe keys (only when multiple
--wipe-key values are set).Optional KYC key(s).
M-of-N for KYC keys (only when multiple
--kyc-key values are set).Optional pause key(s).
M-of-N for pause keys (only when multiple
--pause-key values are set).Optional fee schedule key(s).
M-of-N for fee schedule keys (only when multiple
--fee-schedule-key values are set).Optional metadata key(s).
M-of-N for metadata keys (only when multiple
--metadata-key values are set).Optional name to register for the fungible token (local alias).
Key manager to use: local or local_encrypted (defaults to config setting).
Optional memo for the fungible token (max 100 characters).
Auto-renew period: seconds as integer, or with suffix s/m/h/d (e.g. 500, 500s, 50m, 2h, 1d). Requires
--auto-renew-account.Account that pays auto-renewal (account id, alias, or key reference). Required when
--auto-renew-period is set.Absolute token expiration as ISO 8601 datetime. Ignored when
--auto-renew-period and --auto-renew-account are set.Token Create-NFT
Token Create-NFT
Create a new non-fungible token (NFT collection). Use Example
token mint-nft after creation to mint serials. See hcli token create-nft --help for all key types and thresholds.Token name.
Token symbol.
Treasury account. Defaults to the operator.
INFINITE or FINITE. With FINITE, set --max-supply.Max supply (display units, or append
t for base units). Required when supply type is FINITE.Admin key(s). Defaults to operator key when omitted (see CLI help).
Supply key(s) for minting NFT serials.
Optional local alias for the token.
Key manager to use: local or local_encrypted (defaults to config setting).
Token Create-FT-From-File
Token Create-FT-From-File
Create a new fungible token from a JSON file definition with advanced features. See the full guide below.
Example:Example
Example:
hcli token create-ft-from-file --file ~/projects/token.jsonFungible token definition file path (absolute or relative) to a JSON file.
Key manager to use: local or local_encrypted (defaults to config setting).
Token Create-NFT-From-File
Token Create-NFT-From-File
Create a new NFT collection from a JSON definition. Schema matches the NFT file format in the guide.Example
NFT token 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.ExamplesFungible or NFT token alias:
Token: either a token alias or token-id
Account to associate:
{accountId}:{privateKey} pair, key reference, or account alias.Key manager to use: local or local_encrypted (defaults to config setting).
Token Mint-NFT
Token Mint-NFT
Mint a new NFT serial on an existing collection. Metadata must be at most 100 bytes.Example
NFT token: alias or token ID.
NFT metadata string (max 100 bytes), often a URI or short label.
Supply key credential(s). Omit when the CLI can resolve signing keys from the key manager.
Key manager to use: local or local_encrypted (defaults to config setting).
Token Transfer-FT
Token Transfer-FT
Transfer a fungible token from one account to another.Example
Fungible token: either a token alias or token-id.
Destination account: account ID or alias.
Account to transfer from:
{accountId}:{privateKey} pair, key reference, or account alias. Defaults to the operator.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 Transfer-NFT
Token Transfer-NFT
Transfer one or more NFT serials to another account.Example
NFT token: alias or token ID.
Destination account ID or alias.
Source account. Defaults to the operator.
Comma-separated serial numbers (e.g.
1,2,3).Key manager to use: local or local_encrypted (defaults to config setting).
Token List
Token List
List all tokens (FT and NFT) stored in state for all networks.Example
Show token key information (admin, supply, wipe, etc.).
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-ft-from-filereads a JSON file that matches the fungible schema and creates an FT on the selected network.token create-nft-from-filereads a JSON file that matches the NFT schema and creates an NFT collection on the selected network.
Fungible token (FT) file
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 (FT)
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-ft-from-file --file ./token.json
Full breakdown (FT)
Here’s a full breakdown of all the options you can use:NFT definition file quickstart
NFT JSON files use a different schema than FT files. There is nodecimals or initialSupply. You must provide at least one adminKey and one supplyKey (each can be a single string or an array of key strings). For supplyType finite, set maxSupply. For infinite, do not include maxSupply.
Example token-nft.json:
wipeKey, freezeKey, pauseKey, feeScheduleKey, associations, and their threshold fields). For exact validation rules, rely on the CLI error output or the schema in the Hiero CLI repository (NonFungibleTokenFileSchema).