7 releases

new 0.1.6 Jan 28, 2026
0.1.5 Jan 13, 2026
0.1.4 Nov 24, 2025

#850 in Magic Beans

Apache-2.0

425KB
9K SLoC

Apex SDK CLI

Crates.io Downloads License Rust

Command-line interface for Apex SDK - unified Rust SDK for Substrate & EVM blockchain development.

Installation

cargo install apex-sdk-cli

Quick Start

# Create a new project
apex new my-project --template defi

# Navigate and build
cd my-project
cargo build

Commands

Project Management

# Create new project with templates (default, defi, nft)
apex new <project-name> [--template <template>]

# Build project
apex build [--release]

# Run tests
apex test [--filter <pattern>]

# Run benchmarks
apex bench [--filter <pattern>]

Account Management

# Generate new account
apex account generate --account-type <substrate|evm> --name <name>

# List accounts
apex account list

# Import from mnemonic
apex account import --name <name>

# Export mnemonic
apex account export --name <name>

# Get balance
apex account balance --name <name> --chain <chain>

Configuration

# Initialize config interactively
apex config init

# Show current configuration
apex config show

# Set a value
apex config set <key> <value>

# Get a value
apex config get <key>

# Validate configuration
apex config validate

# Reset to defaults
apex config reset

Chain Information

# List supported chains
apex chain list

# Get chain info
apex chain info <chain>

# Check chain health
apex chain health <chain>

Contract Deployment

# Deploy contract
apex deploy <contract> --chain <chain> --endpoint <url> [--dry-run]

Shell Completions

# Generate completions for your shell
apex completions <bash|zsh|fish|powershell|elvish>

# Example: Add to your .bashrc
apex completions bash >> ~/.bashrc

Other

# Show version
apex version

# Show help
apex --help

Supported Chains

Substrate: Polkadot, Kusama, Paseo, Westend, Moonbeam, Astar

EVM: Ethereum, Polygon, BSC, Avalanche, Arbitrum, Optimism, zkSync, Sepolia

Configuration

Config file location: ~/.config/apex-sdk/config.json

Default configuration includes:

  • Network endpoints for all supported chains
  • Default chain (Paseo testnet)
  • UI preferences (colors, progress bars)
  • Log level settings

License

Apache-2.0

Dependencies

~77MB
~1.5M SLoC