Skip to main content
This page documents every command available in the Bags CLI. All commands support the global --json flag for machine-readable output and --input-json <json> for scripting.
Make sure you’ve completed the Install and Set Up the Bags CLI guide before using these commands.

setup

First-run wizard that configures RPC, imports your wallet, and authenticates in one step.
bags setup [options]
FlagDescriptionDefault
--rpc-url <url>Solana RPC URLhttps://api.mainnet-beta.solana.com
--private-key <key>Private key (base58 or integer array)Prompted
--key-name <name>Label for the generated API keyBags CLI Key
bags setup --rpc-url https://my-rpc.com --private-key YOUR_KEY

auth

Agent authentication commands.

auth login

Authenticate via wallet signature and store the API key locally.
bags auth login [options]
FlagDescriptionDefault
--keypair <path>Custom keypair file path~/.config/bags/keypair.json
--key-name <name>Label for the API keyBags CLI Key
bags auth login --key-name "Production Key"

auth status

Display the current authentication state including the masked API key.
bags auth status

auth logout

Remove stored credentials. Optionally delete the local keypair too.
bags auth logout [options]
FlagDescription
--allAlso delete the local wallet keypair
bags auth logout --all

wallet

Wallet management commands.

wallet generate

Generate and save a new Solana keypair to ~/.config/bags/keypair.json.
bags wallet generate [options]
FlagDescription
--forceOverwrite an existing keypair file

wallet import

Import a keypair from a base58 private key or a JSON secret key file.
bags wallet import [options]
FlagDescription
--key <base58>Base58-encoded private key
--file <path>Path to a JSON file containing secret key bytes
bags wallet import --key YOUR_BASE58_PRIVATE_KEY

wallet show

Show the wallet’s public key and SOL balance.
bags wallet show [options]
FlagDescription
--rpc <url>Override the configured RPC URL

wallet balance

Show SOL balance, or a specific SPL token balance.
bags wallet balance [options]
FlagDescription
--rpc <url>Override the configured RPC URL
--token <mint>SPL token mint address to check balance for
bags wallet balance --token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

settings

CLI configuration commands.

settings show

Print the current CLI settings (RPC URL, commitment, output mode).
bags settings show

settings set

Update one or more CLI settings.
bags settings set [options]
FlagDescriptionValues
--rpc-url <url>Default Solana RPC endpointAny valid URL
--commitment <level>Transaction commitment levelprocessed, confirmed, finalized
--output <mode>Default output formatpretty, table, json
bags settings set --rpc-url https://my-rpc.com --commitment confirmed --output json

trade

Quote and execute token swaps.

trade quote

Get a swap quote without executing a transaction.
bags trade quote [options]
FlagDescriptionDefault
--input-mint <address>Input token mint addressPrompted
--output-mint <address>Output token mint addressPrompted
--amount <amount>Amount in base units (e.g. lamports)Prompted
--slippage-mode <mode>auto or manualauto
--slippage-bps <bps>Slippage tolerance in basis points (required for manual mode)
bags trade quote \
  --input-mint So11111111111111111111111111111111 \
  --output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --amount 1000000000

trade swap

Get a quote, then sign and send the swap transaction.
bags trade swap [options]
Accepts all the same flags as trade quote, plus:
FlagDescription
--skip-confirmSkip the interactive confirmation prompt
bags trade swap \
  --input-mint So11111111111111111111111111111111 \
  --output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --amount 1000000000 \
  --skip-confirm

launch

Token launch flows.

launch create

Create and launch a new token. Handles metadata upload, fee share configuration, lookup table creation, Jito bundles, and the launch transaction automatically.
bags launch create [options]
FlagDescriptionDefault
--name <name>Token namePrompted
--symbol <symbol>Token ticker symbolPrompted
--description <text>Token descriptionPrompted
--image-url <url>URL to the token imagePrompted (choose URL or file)
--image <path>Local path to the token imagePrompted (choose URL or file)
--twitter <url>Twitter/X URLOptional
--website <url>Website URLOptional
--telegram <url>Telegram URLOptional
--initial-buy <lamports>Initial buy amount in lamports10000000 (0.01 SOL)
--fee-claimers <json>JSON array of fee claimers (see below)Interactive builder
--partner <pubkey>Partner wallet address
--partner-config <pubkey>Partner config PDA
--skip-confirmSkip the final confirmation prompt
Fee claimers JSON format: Fee claimers can reference social usernames or direct wallet addresses:
[
  {"provider": "twitter", "username": "alice", "bps": 3000},
  {"wallet": "WALLET_PUBKEY_HERE", "bps": 2000}
]
The creator automatically receives the remaining BPS (in the example above, 50%).
bags launch create \
  --name "My Token" \
  --symbol "MTK" \
  --description "A great token" \
  --image-url "https://example.com/image.png" \
  --initial-buy 10000000 \
  --skip-confirm

launch feed

Get the recent token launch feed.
bags launch feed [options]
FlagDescriptionDefault
--limit <n>Number of items to return20

launch creators

Get the creators/deployers for a token.
bags launch creators [options]
FlagDescription
--mint <address>Token mint address
bags launch creators --mint TOKEN_MINT_ADDRESS

fees

Fee claiming and analytics.

fees list

List all claimable fee positions for your local wallet.
bags fees list
Outputs a table with columns: Mint, Claimable Lamports, Custom Vault.

fees claim

Claim fees for a single token.
bags fees claim [mint] [options]
FlagDescription
--mint <address>Token mint (alternative to positional argument)
--skip-confirmSkip the confirmation prompt
bags fees claim TOKEN_MINT_ADDRESS --skip-confirm

fees claim-all

Claim all available fees across every token.
bags fees claim-all [options]
FlagDescription
--skip-confirmSkip the confirmation prompt

fees lifetime

Get total lifetime fees collected for a token.
bags fees lifetime [mint] [options]
FlagDescription
--mint <address>Token mint (alternative to positional argument)
--rawShow raw lamports instead of formatted SOL
bags fees lifetime TOKEN_MINT_ADDRESS --raw

fees events

Get claim event history for a token. Supports pagination via offset/limit or time-range filtering.
bags fees events [mint] [options]
FlagDescription
--mint <address>Token mint (alternative to positional argument)
--offset <n>Pagination offset
--limit <n>Number of events to return
--start-time <iso>Start timestamp (ISO 8601)
--end-time <iso>End timestamp (ISO 8601)
bags fees events TOKEN_MINT --offset 0 --limit 10
bags fees events TOKEN_MINT --start-time 2025-01-01T00:00:00Z --end-time 2025-06-01T00:00:00Z

fees stats

Get aggregated claim statistics for a token.
bags fees stats [mint] [options]
FlagDescription
--mint <address>Token mint (alternative to positional argument)

config

Fee share configuration management (admin operations).

config create

Create a fee share configuration for a token.
bags config create [options]
FlagDescription
--mint <address>Base token mint
--fee-claimers <json>JSON array of [{"user":"PUBKEY","userBps":10000}]
--partner <pubkey>Partner wallet address
--skip-confirmSkip the confirmation prompt
bags config create \
  --mint TOKEN_MINT \
  --fee-claimers '[{"user":"WALLET_A","userBps":5000},{"user":"WALLET_B","userBps":5000}]' \
  --skip-confirm

config update

Update an existing fee share configuration (requires admin authority).
bags config update [options]
FlagDescription
--mint <address>Base token mint
--fee-claimers <json>New JSON array of [{"user":"PUBKEY","userBps":N}]
--skip-confirmSkip the confirmation prompt

config transfer-admin

Transfer fee share admin authority to a new wallet.
bags config transfer-admin [options]
FlagDescription
--mint <address>Base token mint
--new-admin <pubkey>New admin wallet address
--skip-confirmSkip the confirmation prompt
bags config transfer-admin --mint TOKEN_MINT --new-admin NEW_ADMIN_PUBKEY

config admin-list

List all token mints where your wallet is the fee share admin.
bags config admin-list

partner

Partner configuration and fee claiming.

partner create

Create a partner configuration for your local wallet. Each wallet can only have one partner config.
bags partner create [options]
FlagDescription
--skip-confirmSkip the confirmation prompt

partner stats

Get statistics for a partner wallet.
bags partner stats [options]
FlagDescription
--partner <pubkey>Partner wallet public key
bags partner stats --partner PARTNER_PUBKEY

partner claim

Claim accumulated partner fees.
bags partner claim [options]
FlagDescription
--skip-confirmSkip the confirmation prompt

pool

Pool lookup commands.

pool list

List Bags liquidity pools.
bags pool list [options]
FlagDescriptionDefault
--limit <n>Number of pools to return50
--offset <n>Pagination offset0

pool get

Get details for a specific pool by token mint.
bags pool get [options]
FlagDescription
--mint <address>Token mint address
bags pool get --mint TOKEN_MINT_ADDRESS

dexscreener

Dexscreener listing order flows.

dexscreener check

Check if a Dexscreener order is available for a token.
bags dexscreener check [options]
FlagDescription
--mint <address>Token mint address

dexscreener order

Create a Dexscreener listing order.
bags dexscreener order [options]
FlagDescription
--mint <address>Token mint address
--payload <json>Raw JSON payload override

dexscreener pay

Submit payment for a Dexscreener order.
bags dexscreener pay [options]
FlagDescription
--order-id <id>Order ID from the order command
--transaction <tx>Signed serialized transaction string

incorporation

Token incorporation flows.

incorporation pay

Start the incorporation payment process.
bags incorporation pay [options]
FlagDescription
--mint <address>Token mint address
--payload <json>Raw JSON payload override

incorporation submit

Submit incorporation details (company name, founders, category).
bags incorporation submit [options]
FlagDescription
--mint <address>Token mint address
--company-name <name>Legal company name
--founders <json>JSON array of founders
--category <value>Project category
bags incorporation submit \
  --mint TOKEN_MINT \
  --company-name "My Company LLC" \
  --founders '[{"name":"Alice","role":"CEO"}]' \
  --category "DeFi"

incorporation start

Start the incorporation process for a token.
bags incorporation start [options]
FlagDescription
--mint <address>Token mint address

incorporation list

List all incorporation projects associated with your API key.
bags incorporation list

incorporation details

Get full details for a token’s incorporation.
bags incorporation details [options]
FlagDescription
--mint <address>Token mint address