Command Reference Complete reference for all Platform CLI commands and flags
Available on all commands:
Flag Short Description Default --network-nNetwork: fuji or mainnet fuji--key-nameLoad key from keystore by name --ledgerUse Ledger hardware wallet false--ledger-indexLedger BIP44 address index 0--rpc-urlCustom RPC URL (overrides --network) --network-idNetwork ID for custom RPC auto-detect --allow-insecure-httpAllow plain HTTP for non-local endpoints (unsafe) false--private-key-kPrivate key (deprecated, prefer --key-name)
Prints the CLI version.
Manage persistent keys stored in ~/.platform/keys/.
platform keys generate --name < nam e > [--encrypt=false]
Flag Description Default --nameKey name (required, 1-64 chars: [a-zA-Z0-9._-], starts with alphanumeric) --encryptEncrypt with password (AES-256-GCM + Argon2id) true
platform keys import --name < nam e > [--private-key < ke y > ] [--encrypt=false]
Flag Description Default --nameKey name (required) --private-keyPrivate key string (prompted if omitted) --encryptEncrypt with password true
platform keys list [--show-addresses]
Flag Description --show-addressesShow P-Chain and EVM addresses
platform keys export --name < nam e > --output-file < pat h >
platform keys export --name < nam e > --unsafe-stdout
Flag Description Default --nameKey name (required) --formatOutput format: cb58 or hex cb58--output-fileWrite key to file (permissions forced to 0600) --unsafe-stdoutPrint private key to stdout (unsafe, required if no --output-file) false
platform keys delete --name < nam e > [--force]
Flag Description --nameKey name (required) --forceSkip confirmation prompt
platform keys default [--name < nam e > ]
Shows current default if --name is omitted. Sets default if --name is provided.
Displays P-Chain address and AVAX balance.
Displays P-Chain and EVM addresses derived from the key.
platform transfer send --to < addres s > --amount < ava x >
Flag Description --toDestination P-Chain address (required) --amountAmount in AVAX --amount-navaxAmount in nAVAX (mutually exclusive with --amount)
platform transfer p-to-c --amount < ava x >
One-step P-Chain to C-Chain transfer (export + import).
Flag Description --amountAmount in AVAX --amount-navaxAmount in nAVAX
platform transfer c-to-p --amount < ava x >
One-step C-Chain to P-Chain transfer (export + import).
platform transfer export --from < chai n > --to < chai n > --amount < ava x >
Manual export step for two-step transfers.
Flag Description --fromSource chain: p or c (required) --toDestination chain: p or c (required) --amountAmount in AVAX --amount-navaxAmount in nAVAX
platform transfer import --from < chai n > --to < chai n >
Manual import step for two-step transfers.
Flag Description --fromSource chain: p or c (required) --toDestination chain: p or c (required)
platform validator add --node-id < i d > --stake < ava x >
Flag Description Default --node-idNode ID (required) --stakeStake in AVAX (required) --durationValidation duration 336h--startStart time (RFC3339 or now) now--delegation-feeFee percentage (0.02 = 2%) 0.02--reward-addressReward address own address --bls-public-keyBLS public key hex (recommended) --bls-popBLS proof of possession hex (recommended) --node-endpointNode endpoint to auto-fetch BLS
platform validator delegate --node-id < i d > --stake < ava x >
Flag Description Default --node-idNode ID to delegate to (required) --stakeStake in AVAX (required) --durationDelegation duration 336h--startStart time (RFC3339 or now) now--reward-addressReward address own address
Creates a new subnet owned by the wallet address. No additional flags required.
platform subnet transfer-ownership --subnet-id < i d > --new-owner < addres s >
Flag Description --subnet-idSubnet ID (required) --new-ownerNew owner P-Chain address (required)
platform subnet convert-l1 --subnet-id < i d > --chain-id < i d >
Flag Description Default --subnet-idSubnet ID to convert (required) --chain-idChain ID for validator manager (required) --managerValidator manager contract address (hex) --contract-addressAlias for --manager --validatorsComma-separated node addresses (auto-discovery mode) --validator-node-idsManual mode: comma-separated NodeIDs --validator-bls-public-keysManual mode: comma-separated BLS public keys --validator-bls-popsManual mode: comma-separated BLS PoPs --validator-balanceBalance per validator in AVAX 1.0--mock-validatorUse mock validator for testing false
platform l1 register-validator --balance < ava x > --pop < he x > --message < he x >
Flag Description --balanceInitial balance in AVAX (required) --popBLS proof of possession hex (required) --messageWarp message hex (required)
platform l1 set-weight --message < he x >
Flag Description --messageWarp message authorizing weight change (required)
platform l1 add-balance --validation-id < i d > --balance < ava x >
Flag Description --validation-idValidation ID (required) --balanceAVAX to add (required)
platform l1 disable-validator --validation-id < i d >
Flag Description --validation-idValidation ID to disable (required)
platform chain create --subnet-id < i d > --genesis < fil e >
Flag Description Default --subnet-idSubnet ID (required) --genesisGenesis JSON file path (required, max 1 MB) --nameChain name mychain--vm-idVM ID Subnet-EVM
platform node info --ip < addres s >
Flag Description --ipNode IP address or hostname (required)
Returns Node ID, BLS Public Key, and BLS Proof of Possession.
Is this guide helpful?
Yes No