Selendra CLI
The official command-line interface for developing on Selendra
Selendra CLI
The Selendra CLI (@selendrajs/cli) is the official command-line tool for developing, testing, and deploying applications on the Selendra blockchain. It provides a unified interface for both EVM and WASM development environments.
Features
- Project Scaffolding: Create new projects with best-practice templates for EVM (Hardhat) and WASM (ink!).
- Smart Contract Lifecycle: Compile, deploy, and interact with contracts.
- Network Queries: View chain info, block height, gas prices, and account balances.
- Account Management: Generate wallets, check balances, transfer tokens.
- Staking Operations: Join nomination pools, claim rewards, unbond.
- Faucet Integration: Request testnet tokens directly from the terminal.
- Interactive Tutorials: Learn Selendra development with guided lessons.
- Plugin System: Extend CLI functionality with plugins.
Installation
Prerequisites
- Node.js v18+
- npm or yarn
Install Globally
npm install -g @selendrajs/cli
Verify Installation
selendra --version
Quick Usage
# Check network status
selendra status
# View detailed chain info
selendra chain
# Check account balance
selendra balance 0x742d35...
# Create a new project
selendra init my-dapp
# Deploy a contract
selendra deploy MyContract --network testnet
# Transfer tokens
selendra transfer 0x742d35... --amount 10
# View staking info
selendra stake info
# Join a nomination pool
selendra stake join --pool 1 --amount 100
# Start interactive tutorials
selendra learn
# Manage plugins
selendra plugin list
All Commands
| Command | Description |
|---|---|
init | Initialize a new project |
compile | Compile smart contracts |
deploy | Deploy contracts to network |
status | Show network statistics |
chain | Display chain information |
block | Show block information |
balance | Query account balance |
transfer | Transfer SEL tokens |
account | Manage accounts/wallets |
faucet | Request testnet tokens |
stake | Staking operations |
learn | Interactive tutorials |
plugin | Manage CLI plugins |
Next Steps
- Quick Start - Create your first project in minutes.
- Commands - Complete command reference.
- Templates - Learn about available project templates.
Contribute
Found an issue or want to contribute?
Help us improve this documentation by editing this page on GitHub.