phantom --help or phantom <command> --help for inline documentation.
Authentication
Wallet
Tokens & Swaps
phantom buy
Swap tokens on Solana, across EVM chains, or between chains (including Hyperliquid):
--execute to get a quote preview only.
Solana
EVM
Perpetuals (Hyperliquid)
Full perpetuals documentation: PERPS guide.Perps workflow
Fund and trade:Global flags
| Flag | Description |
|---|---|
--walletId | Override the wallet ID (defaults to authenticated wallet) |
--derivationIndex | Account derivation index (default: 0) |
--help | Show help for the current command |
--version | Show CLI version |
--mcp | Start the CLI as an MCP stdio server |