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 using either wallet (default) or manual auth mode.

auth

Agent authentication commands.

auth login

Authenticate and store credentials locally. Supports wallet mode (challenge/signature flow) and manual mode (validate provided API key via sdk.auth.me()).
In non-interactive environments, manual mode requires --api-key (or --input-json with apiKey) and exits immediately if missing.

auth status

Display the current authentication state including authMode and the masked API key.

auth logout

Remove stored credentials. Optionally delete the local keypair too.

wallet

Wallet management commands.

wallet generate

Generate and save a new Solana keypair to ~/.config/bags/keypair.json.

wallet import

Import a keypair from a base58 private key or a JSON secret key file.

wallet show

Show the wallet’s public key and SOL balance.

wallet balance

Show SOL balance, or a specific SPL token balance.

settings

CLI configuration commands.

settings show

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

settings set

Update one or more CLI settings.

trade

Quote and execute token swaps.

trade quote

Get a swap quote without executing a transaction.

trade swap

Get a quote, then sign and send the swap transaction.
Accepts all the same flags as trade quote, plus:

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.
Fee claimers JSON format: Fee claimers can reference social usernames or direct wallet addresses:
The creator automatically receives the remaining BPS (in the example above, 50%).

launch feed

Get the recent token launch feed.

launch creators

Get the creators/deployers for a token.

fees

Fee claiming and analytics.

fees list

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

fees claim

Claim fees for a single token.

fees claim-all

Claim all available fees across every token.

fees lifetime

Get total lifetime fees collected for a token.

fees events

Get claim event history for a token. Supports pagination via offset/limit or time-range filtering.

fees stats

Get aggregated claim statistics for a token.

config

Fee share configuration management (admin operations).

config create

Create a fee share configuration for a token.

config update

Update an existing fee share configuration (requires admin authority).

config transfer-admin

Transfer fee share admin authority to a new wallet.

config admin-list

List all token mints where your wallet is the fee share admin.

partner

Partner configuration and fee claiming.

partner create

Create a partner configuration for your local wallet. Each wallet can only have one partner config.

partner stats

Get statistics for a partner wallet.

partner claim

Claim accumulated partner fees.

pool

Pool lookup commands.

pool list

List Bags liquidity pools.

pool get

Get details for a specific pool by token mint.

dexscreener

Dexscreener listing order flows.

dexscreener check

Check if a Dexscreener order is available for a token.

dexscreener order

Create a Dexscreener listing order.

dexscreener pay

Submit payment for a Dexscreener order.