Documentation

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

CommandDescription
initInitialize a new project
compileCompile smart contracts
deployDeploy contracts to network
statusShow network statistics
chainDisplay chain information
blockShow block information
balanceQuery account balance
transferTransfer SEL tokens
accountManage accounts/wallets
faucetRequest testnet tokens
stakeStaking operations
learnInteractive tutorials
pluginManage 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.

Edit this page on GitHub
Selendra - Build on Cambodian Blockchain with Testnet