Skip to main content
This guide shows the fastest path from an empty terminal to a launched token. Three commands, no code.

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

npm install -g @bagsfm/bags-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:
bags setup --rpc-url YOUR_RPC_URL --private-key YOUR_BASE58_PRIVATE_KEY
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.
You’ll see a summary once setup completes:
Setup complete!
  Wallet:  YourWa11etPubkeyHere...
  API Key: abc123...wxyz
  RPC:     https://your-rpc-provider.com

Step 3 — Launch your token

bags launch create \
  --name "My Token" \
  --symbol "MTK" \
  --description "My first token on Bags" \
  --image-url "https://example.com/logo.png" \
  --initial-buy 10000000 \
  --skip-confirm
That’s it. The CLI handles metadata upload, fee share configuration, Jito bundle tips, and the launch transaction automatically.
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.
Once the launch succeeds, you’ll see output like:
tokenMint:    AbC123...xYz
metadataUrl:  https://arweave.net/...
configKey:    DeF456...uVw
signature:    5KtPn1LGux...
View your token at https://bags.fm/YOUR_TOKEN_MINT.

The full sequence

# 1. Install
npm install -g @bagsfm/bags-cli

# 2. Setup (wallet + auth)
bags setup --rpc-url YOUR_RPC_URL --private-key YOUR_BASE58_PRIVATE_KEY

# 3. Launch
bags launch create \
  --name "My Token" \
  --symbol "MTK" \
  --description "My first token on Bags" \
  --image-url "https://example.com/logo.png" \
  --initial-buy 10000000 \
  --skip-confirm

Optional: Share fees with others

Add --fee-claimers to split fees with other users by social handle or wallet address:
bags launch create \
  --name "My Token" \
  --symbol "MTK" \
  --description "A token with shared fees" \
  --image-url "https://example.com/logo.png" \
  --initial-buy 10000000 \
  --fee-claimers '[{"provider":"twitter","username":"ramyobags","bps":3000}]' \
  --skip-confirm
The creator automatically keeps the remaining share (70% in this example). See the Launch a Token guide for the full fee sharing details.

Optional: Use a local image file

If you have the image on disk instead of a URL:
bags launch create \
  --name "My Token" \
  --symbol "MTK" \
  --description "My first token on Bags" \
  --image /path/to/logo.png \
  --initial-buy 10000000 \
  --skip-confirm

Optional: Interactive mode

Omit the flags and the CLI walks you through each field interactively:
bags launch create
You’ll be prompted for the token name, symbol, description, image, initial buy amount, and whether to share fees — step by step.

What’s next?