| Crates.io | neo-cli |
| lib.rs | neo-cli |
| version | 1.0.0 |
| created_at | 2026-01-20 06:58:29.608783+00 |
| updated_at | 2026-01-20 06:58:29.608783+00 |
| description | Command-line interface for the NeoRust SDK |
| homepage | https://github.com/R3E-Network/NeoRust |
| repository | https://github.com/R3E-Network/NeoRust |
| max_upload_size | |
| id | 2055916 |
| size | 605,032 |
A command-line interface for interacting with the Neo N3 blockchain, built on the NeoRust SDK (neo3).
Neo CLI wraps common SDK workflows into a single tool: network connectivity checks, contract operations, DeFi helpers, NeoFS commands, and project generation templates.
Note: some subcommands are still placeholders and may return “NotImplemented”. Use
neo-cli --helpfor the authoritative list of available commands.
# Clone the repository
git clone https://github.com/R3E-Network/NeoRust.git
cd NeoRust
# Build the CLI tool
cargo build --release -p neo-cli
# Run the CLI
./target/release/neo-cli --help
# If/when published to crates.io:
cargo install neo-cli
# Show top-level help
neo-cli --help
# Initialize configuration (optional; creates a config file in your OS config dir)
neo-cli init
# Create a wallet file (prompts for password unless provided)
neo-cli wallet create --path my-wallet.json
# Connect to a network (interactive if omitted)
neo-cli network connect --network testnet
# Inspect network state
neo-cli network status
neo-cli network block
# Token/DeFi helpers
neo-cli de-fi token NEO
neo-cli de-fi balance GAS NZKvXidwBhnV8rNXh2eXtpm5bH1rkofaDz
# Check NeoFS connection status
neo-cli fs status
# Generate a new project from templates
neo-cli generate --list
neo-cli generate --template nep17-token my-token
Run neo-cli --help (and neo-cli <command> --help) for the full set of flags and subcommands.
neo-cli network connect: connect to an RPC endpoint / named networkneo-cli network status: show basic network informationneo-cli network peers: list peers (requires a working connection)neo-cli network block: fetch latest (or specified) blockneo-cli wallet create, open, backup, restore, hd-walletneo-cli wallet send and neo-cli wallet balance exist, but some on-chain operations are still stubbed; for now, neo-cli de-fi token and neo-cli de-fi balance <TOKEN> <ADDRESS> are the most reliable token helpers.neo-cli contract deploy, update, invoke, list-native-contractsneo-cli de-fi token and neo-cli de-fi balance for token metadata/balance queriesneo-cli de-fi transfer exists, but signing workflows are still evolving (see subcommand --help)neo-cli de-fi flamingo ..., neo-cli de-fi neo-burger ..., neo-cli de-fi neo-compound ..., neo-cli de-fi grand-share ...neo-cli fs ...: endpoints, container, object, statusneo-cli neo-fs ...: advanced NeoFS commands (acl/config/status)# List all available NeoFS endpoints for mainnet
neo-cli fs endpoints list
# Test connection to a specific endpoint
neo-cli fs endpoints test --endpoint grpc.mainnet.fs.neo.org:8082
# Get detailed information about an endpoint
neo-cli fs endpoints info --endpoint grpc.mainnet.fs.neo.org:8082
# Create a container
neo-cli fs container create --config container-config.json
# Upload a file
neo-cli fs object put --container CID --file path/to/file
# Download a file
neo-cli fs object get --container CID --id OID --output path/to/save
Neo CLI uses a configuration file to store settings like network preferences, RPC endpoints, and more. You can initialize the configuration with:
neo-cli init [--path /custom/path/config.json]
The default location for the configuration file is in your system's config directory under neo-cli/config.json.
The Neo CLI includes comprehensive automated tests to ensure functionality and help with development.
To run CLI tests:
cargo test -p neo-cli
defi_tests.rs: Tests for DeFi and well-known contract commandsfs_tests.rs: Tests for NeoFS storage operationsblockchain_tests.rs: Tests for blockchain query commandswallet_tests.rs: Tests for wallet management commandsWhen adding new features to the CLI, follow this pattern for testing:
cargo build [--release]
MIT License
Developed by the R3E Network team
Copyright © 2020-2025 R3E Network. All rights reserved.