Prerequisites
- Node.js 18+ installed (download)
- A Solana wallet private key (base58-encoded, exportable from Bags, Phantom, or Backpack)
- Some SOL in the wallet for transaction fees and the initial buy
Step 1 — Install the CLI
Step 2 — Set up your wallet and authenticate
Run the setup wizard. It configures your RPC, imports your wallet, and authenticates all in one command:If you leave
--rpc-url blank, it defaults to https://api.mainnet-beta.solana.com. For production launches, use a dedicated RPC provider for better reliability.Step 3 — Launch your token
The
--initial-buy value is in lamports (1 SOL = 1,000,000,000 lamports). The example above uses 10,000,000 lamports = 0.01 SOL.https://bags.fm/YOUR_TOKEN_MINT.
The full sequence
Optional: Share fees with others
Add--fee-claimers to split fees with other users by social handle or wallet address:
Optional: Use a local image file
If you have the image on disk instead of a URL:Optional: Interactive mode
Omit the flags and the CLI walks you through each field interactively:What’s next?
- Claim fees earned from your token:
bags fees claim TOKEN_MINT - Trade tokens:
bags trade swap --input-mint ... --output-mint ... --amount ... - CLI Command Reference for every available command
- Install and Set Up the Bags CLI for detailed configuration options
