JSPM

@bagsfm/bags-cli

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q92907F
  • License MIT

CLI for Bags API and SDK workflows — auth, trading, launches, fees, and config

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bagsfm/bags-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @bagsfm/bags-cli

    CLI for Bags authentication, trading, launches, fees, and configuration.

    Install

    npm i -g @bagsfm/bags-cli

    Or run without global install:

    npx @bagsfm/bags-cli --help

    After installation, use:

    bags --help

    Quick Start

    Run the setup wizard to configure RPC, import your wallet, and authenticate in one step:

    bags setup

    Or pass flags for non-interactive use:

    bags setup --rpc-url https://my-rpc.example.com --private-key <base58_or_int_array>

    The wizard accepts private keys as base58 or int array format (auto-detected).

    Once set up, verify everything is working:

    bags auth status
    bags wallet balance

    Command Groups

    • bags setup - first-run wizard (RPC, wallet import, auth)
    • bags auth - agent wallet signature authentication and credential storage
    • bags wallet - local keypair management
    • bags fees - list and claim fees, plus fee analytics endpoints
    • bags trade - get quotes and execute swaps
    • bags launch - full token launch workflow
    • bags config - fee share config creation/update/admin transfer
    • bags partner - partner config and claim flows
    • bags pool - pool lookup endpoints
    • bags dexscreener - check/create/pay Dexscreener orders
    • bags incorporation - incorporation payment and project workflows
    • bags settings - CLI defaults (rpcUrl, commitment, output mode)

    Interactive + Flags

    Commands are interactive by default and every prompt can be overridden with flags.
    For example:

    bags trade quote \
      --input-mint So11111111111111111111111111111111111111112 \
      --output-mint <TOKEN_MINT> \
      --amount 1000000 \
      --slippage-mode auto

    Configuration Files

    Stored under ~/.config/bags/:

    • keypair.json
    • credentials.json
    • config.json

    The CLI writes these files with restrictive permissions (0600).

    Build From Source

    npm install
    npm run typecheck
    npm run build
    node dist/index.js --help