BitSage Network CLI - One-command deployment for workers, validators, and stakers
npm install @bitsagecli/cliOfficial CLI for the BitSage Network - One-command deployment for workers, validators, and stakers.
``bash`
npm install -g @bitsage/cli
Or with yarn:
`bash`
yarn global add @bitsage/cli
`bashInteractive setup wizard
bitsage init
$3
`bash
bitsage faucet claim
`$3
`bash
bitsage stake deposit 1000
`$3
`bash
bitsage worker start
`Commands
$3
`bash
bitsage init [mode] # Setup wizard
--network # mainnet, sepolia, local (default: sepolia)
--coordinator # Coordinator URL
--force # Overwrite existing config
`$3
`bash
bitsage wallet create # Create new wallet
bitsage wallet import # Import existing wallet
bitsage wallet balance # Check balance
bitsage wallet export # Export wallet info
bitsage wallet list # List keystores
`$3
`bash
bitsage faucet claim # Claim testnet tokens
bitsage faucet status # Check cooldown
`$3
`bash
bitsage stake deposit # Stake SAGE tokens
bitsage stake withdraw # Unstake tokens
bitsage stake status # View stake info
bitsage claim # Claim rewards
`$3
`bash
bitsage worker register # Register as worker
bitsage worker start # Start worker node
--foreground # Run in foreground
--update # Update binary first
bitsage worker stop # Stop worker
bitsage worker status # Check status
bitsage worker logs # View logs
-f, --follow # Follow log output
-n, --lines # Number of lines
`$3
`bash
bitsage status # Overall status
bitsage health # Health check
bitsage earnings # View earnings
bitsage jobs # List recent jobs
--status # Filter by status
--limit # Number of jobs
`Configuration
Configuration is stored in
~/.bitsage/:`
~/.bitsage/
├── config.json # Main configuration
├── keystores/ # Encrypted wallet files
├── bin/ # Downloaded binaries
├── worker.pid # Worker process ID
└── worker.log # Worker logs
`$3
-
RUST_LOG - Log level (trace, debug, info, warn, error)
- DEBUG - Enable CLI debug outputUser Flows
$3
`bash
Install and setup
npm install -g @bitsage/cli
bitsage init workerGet tokens and stake
bitsage faucet claim
bitsage stake deposit 1000Register and start
bitsage worker register
bitsage worker startMonitor
bitsage status
bitsage earnings
`$3
`bash
Install and setup
npm install -g @bitsage/cli
bitsage init stakerImport wallet with SAGE
bitsage wallet importStake tokens
bitsage stake deposit 5000Monitor rewards
bitsage stake status
bitsage claim
`Development
`bash
Clone the repository
git clone https://github.com/Bitsage-Network/bitsage-network
cd bitsage-network/sdk/cliInstall dependencies
npm installBuild
npm run buildLink for local testing
npm linkTest
bitsage --help
``- Node.js 18.0.0 or higher
- npm or yarn
MIT