--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 eitherwallet (default) or manual auth mode.
| Flag | Description | Default |
|---|---|---|
--rpc-url <url> | Solana RPC URL | https://api.mainnet-beta.solana.com |
--private-key <key> | Private key (base58 or integer array) | Prompted |
--auth-mode <wallet|manual> | Authentication mode | wallet |
--api-key <key> | API key to use when --auth-mode manual | Prompted in interactive mode |
--key-name <name> | Label for the generated API key | Bags CLI Key |
auth
Agent authentication commands.auth login
Authenticate and store credentials locally. Supportswallet mode (challenge/signature flow) and manual mode (validate provided API key via sdk.auth.me()).
| Flag | Description | Default |
|---|---|---|
--auth-mode <wallet|manual> | Authentication mode | wallet |
--api-key <key> | API key to use when --auth-mode manual | Prompted in interactive mode |
--keypair <path> | Custom keypair file path | ~/.config/bags/keypair.json |
--key-name <name> | Label for the API key | Bags CLI Key |
manual mode requires --api-key (or --input-json with apiKey) and exits immediately if missing.
auth status
Display the current authentication state includingauthMode and the masked API key.
auth logout
Remove stored credentials. Optionally delete the local keypair too.| Flag | Description |
|---|---|
--all | Also delete the local wallet keypair |
wallet
Wallet management commands.wallet generate
Generate and save a new Solana keypair to~/.config/bags/keypair.json.
| Flag | Description |
|---|---|
--force | Overwrite an existing keypair file |
wallet import
Import a keypair from a base58 private key or a JSON secret key file.| Flag | Description |
|---|---|
--key <base58> | Base58-encoded private key |
--file <path> | Path to a JSON file containing secret key bytes |
wallet show
Show the wallet’s public key and SOL balance.| Flag | Description |
|---|---|
--rpc <url> | Override the configured RPC URL |
wallet balance
Show SOL balance, or a specific SPL token balance.| Flag | Description |
|---|---|
--rpc <url> | Override the configured RPC URL |
--token <mint> | SPL token mint address to check balance for |
settings
CLI configuration commands.settings show
Print the current CLI settings (RPC URL, commitment, output mode).settings set
Update one or more CLI settings.| Flag | Description | Values |
|---|---|---|
--rpc-url <url> | Default Solana RPC endpoint | Any valid URL |
--commitment <level> | Transaction commitment level | processed, confirmed, finalized |
--output <mode> | Default output format | pretty, table, json |
trade
Quote and execute token swaps.trade quote
Get a swap quote without executing a transaction.| Flag | Description | Default |
|---|---|---|
--input-mint <address> | Input token mint address | Prompted |
--output-mint <address> | Output token mint address | Prompted |
--amount <amount> | Amount in base units (e.g. lamports) | Prompted |
--slippage-mode <mode> | auto or manual | auto |
--slippage-bps <bps> | Slippage tolerance in basis points (required for manual mode) | — |
trade swap
Get a quote, then sign and send the swap transaction.trade quote, plus:
| Flag | Description |
|---|---|
--skip-confirm | Skip the interactive confirmation prompt |
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.| Flag | Description | Default |
|---|---|---|
--name <name> | Token name | Prompted |
--symbol <symbol> | Token ticker symbol | Prompted |
--description <text> | Token description | Prompted |
--image-url <url> | URL to the token image | Prompted (choose URL or file) |
--image <path> | Local path to the token image | Prompted (choose URL or file) |
--twitter <url> | Twitter/X URL | Optional |
--website <url> | Website URL | Optional |
--telegram <url> | Telegram URL | Optional |
--initial-buy <lamports> | Initial buy amount in lamports | 10000000 (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-confirm | Skip the final confirmation prompt | — |
launch feed
Get the recent token launch feed.| Flag | Description | Default |
|---|---|---|
--limit <n> | Number of items to return | 20 |
launch creators
Get the creators/deployers for a token.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
fees
Fee claiming and analytics.fees list
List all claimable fee positions for your local wallet.fees claim
Claim fees for a single token.| Flag | Description |
|---|---|
--mint <address> | Token mint (alternative to positional argument) |
--skip-confirm | Skip the confirmation prompt |
fees claim-all
Claim all available fees across every token.| Flag | Description |
|---|---|
--skip-confirm | Skip the confirmation prompt |
fees lifetime
Get total lifetime fees collected for a token.| Flag | Description |
|---|---|
--mint <address> | Token mint (alternative to positional argument) |
--raw | Show raw lamports instead of formatted SOL |
fees events
Get claim event history for a token. Supports pagination via offset/limit or time-range filtering.| Flag | Description |
|---|---|
--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) |
fees stats
Get aggregated claim statistics for a token.| Flag | Description |
|---|---|
--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.| Flag | Description |
|---|---|
--mint <address> | Base token mint |
--fee-claimers <json> | JSON array of [{"user":"PUBKEY","userBps":10000}] |
--partner <pubkey> | Partner wallet address |
--skip-confirm | Skip the confirmation prompt |
config update
Update an existing fee share configuration (requires admin authority).| Flag | Description |
|---|---|
--mint <address> | Base token mint |
--fee-claimers <json> | New JSON array of [{"user":"PUBKEY","userBps":N}] |
--skip-confirm | Skip the confirmation prompt |
config transfer-admin
Transfer fee share admin authority to a new wallet.| Flag | Description |
|---|---|
--mint <address> | Base token mint |
--new-admin <pubkey> | New admin wallet address |
--skip-confirm | Skip the confirmation prompt |
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.| Flag | Description |
|---|---|
--skip-confirm | Skip the confirmation prompt |
partner stats
Get statistics for a partner wallet.| Flag | Description |
|---|---|
--partner <pubkey> | Partner wallet public key |
partner claim
Claim accumulated partner fees.| Flag | Description |
|---|---|
--skip-confirm | Skip the confirmation prompt |
pool
Pool lookup commands.pool list
List Bags liquidity pools.| Flag | Description | Default |
|---|---|---|
--limit <n> | Number of pools to return | 50 |
--offset <n> | Pagination offset | 0 |
pool get
Get details for a specific pool by token mint.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
dexscreener
Dexscreener listing order flows.dexscreener check
Check if a Dexscreener order is available for a token.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
dexscreener order
Create a Dexscreener listing order.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
--payload <json> | Raw JSON payload override |
dexscreener pay
Submit payment for a Dexscreener order.| Flag | Description |
|---|---|
--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.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
--payload <json> | Raw JSON payload override |
incorporation submit
Submit incorporation details (company name, founders, category).| Flag | Description |
|---|---|
--mint <address> | Token mint address |
--company-name <name> | Legal company name |
--founders <json> | JSON array of founders |
--category <value> | Project category |
incorporation start
Start the incorporation process for a token.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
incorporation list
List all incorporation projects associated with your API key.incorporation details
Get full details for a token’s incorporation.| Flag | Description |
|---|---|
--mint <address> | Token mint address |
