CLI for Bags authentication, trading, launches, fees, and configuration.
npm i -g @bagsfm/bags-cliOr run without global install:
npx @bagsfm/bags-cli --helpAfter installation, use:
bags --helpRun the setup wizard to configure RPC, import your wallet, and authenticate in one step:
bags setupOr 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 balancebags setup- first-run wizard (RPC, wallet import, auth)bags auth- agent wallet signature authentication and credential storagebags wallet- local keypair managementbags fees- list and claim fees, plus fee analytics endpointsbags trade- get quotes and execute swapsbags launch- full token launch workflowbags config- fee share config creation/update/admin transferbags partner- partner config and claim flowsbags pool- pool lookup endpointsbags dexscreener- check/create/pay Dexscreener ordersbags incorporation- incorporation payment and project workflowsbags settings- CLI defaults (rpcUrl, commitment, output mode)
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 autoStored under ~/.config/bags/:
keypair.jsoncredentials.jsonconfig.json
The CLI writes these files with restrictive permissions (0600).
npm install
npm run typecheck
npm run build
node dist/index.js --help