Skip to main content
Run phantom --help or phantom <command> --help for inline documentation.

Authentication

Authenticate with Phantom via browser (Google, Apple, or Phantom extension). Use this to log in for the first time, switch accounts, or refresh an expired session.

Wallet


Tokens & Swaps

phantom buy

Swap tokens on Solana, across EVM chains, or between chains (including Hyperliquid):
Omit --execute to get a quote preview only.

Solana


EVM


Perpetuals (Hyperliquid)

Full perpetuals documentation: PERPS guide.

Perps workflow

Fund and trade:
Exit and withdraw:

Global flags