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-cliOr run without global install:
npx @bagsfm/bags-cli --helpAfter installation, use:
bags --helpQuick Start
Run 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 balanceCommand Groups
bags 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)
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 autoConfiguration Files
Stored under ~/.config/bags/:
keypair.jsoncredentials.jsonconfig.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