Crates.io | quantus-cli |
lib.rs | quantus-cli |
version | 0.1.1 |
created_at | 2025-09-18 06:31:24.013598+00 |
updated_at | 2025-09-18 06:31:24.013598+00 |
description | Command line interface and library for interacting with the Quantus Network |
homepage | https://quantus.com |
repository | https://github.com/Quantus-Network/quantus-cli |
max_upload_size | |
id | 1844293 |
size | 1,601,210 |
A modern command line interface for interacting with the Quantus Network, featuring built-in quantum-safe wallet management and real blockchain operations using SubXT.
# Install the CLI tool
cargo install quantus-cli
# The binary will be available as `quantus`
quantus --help
# Clone and build
git clone https://github.com/Quantus-Network/quantus-cli
cd quantus-cli
cargo build --release
# The binary will be available as `quantus`
Add to your Cargo.toml
:
[dependencies]
# Full functionality (CLI + library)
quantus-cli = "0.1.0"
# Library only (smaller dependencies)
quantus-cli = { version = "0.1.0", default-features = false }
Start by exploring the available commands:
# Get help to see all available commands
quantus --help
# Explore specific command groups
quantus wallet --help
quantus send --help
quantus tech-collective --help
The CLI provides comprehensive help at every level, allowing you to discover functionality step by step.
The CLI provides comprehensive help at every level. Every command and subcommand supports --help
:
quantus --help
shows all available top-level commandsquantus <command> --help
shows options for specific commandsquantus <command> <subcommand> --help
shows options for subcommandsThis hierarchical help system allows you to discover available functionality step by step, starting from the main help and drilling down to specific command options.
Every command supports --verbose
for detailed debugging information:
--verbose
provides detailed execution logs, network calls, and internal state informationThese options work on every command:
--verbose
/ -v
: Enable debug logging with detailed output--node-url <URL>
: Specify node endpoint (default: ws://127.0.0.1:9944
)--help
/ -h
: Show help for any command or subcommandThe CLI uses a hierarchical structure:
quantus [GLOBAL_OPTIONS] <COMMAND> [COMMAND_OPTIONS] <SUBCOMMAND> [SUBCOMMAND_OPTIONS]
Structure: The CLI follows a consistent pattern where global options can be combined with any command and subcommand at any level of nesting.
Start with the main help and drill down to explore available functionality. The CLI provides helpful error messages and suggestions when you make mistakes, guiding you to the correct command syntax.
Common navigation patterns:
Start with quantus --help
to see all available commands
Use quantus <command> --help
to explore specific command options
Add --verbose
to any command for detailed debugging information
Use --node-url
to connect to different nodes (defaults to localhost)
QUANTUS_WALLET_PASSWORD
: Global password for all walletsQUANTUS_WALLET_PASSWORD_<WALLET_NAME>
: Wallet-specific password (e.g., QUANTUS_WALLET_PASSWORD_CRYSTAL_ALICE
)--node-url
flag or default to ws://127.0.0.1:9944
The CLI provides a comprehensive set of commands for blockchain interaction. Start by exploring the help system to discover available functionality:
quantus --help
to see all available commandsquantus <command> --help
to see command-specific options--verbose
to any command for detailed execution information--node-url
to connect to different blockchain nodesThe CLI supports both simple commands and complex workflows, with built-in help and error recovery at every level.
✅ Fully Implemented:
The Quantus CLI is a production-ready tool that:
✅ Handles Real Money: All transactions are real and irreversible
✅ Quantum-Safe: Uses post-quantum cryptography for future security
✅ Developer-Friendly: Rich tooling and clear error messages
✅ Scriptable: Environment variables and flags for automation
✅ Extensible: Clean architecture for adding new blockchain features
✅ SubXT-Powered: Modern, type-safe blockchain integration
⚠️ Security Note: This tool handles real cryptocurrency. Always:
The project includes a script to regenerate SubXT types and metadata when the blockchain runtime changes:
# Regenerate metadata and types from the running node
./regenerate_metadata.sh
What this script does:
src/quantus_metadata.scale
src/chain/quantus_subxt.rs
cargo fmt
When to use:
Requirements:
subxt-cli
must be installed: cargo install subxt-cli
Usage:
# Use default node URL (ws://127.0.0.1:9944)
./regenerate_metadata.sh
# Use custom node URL
./regenerate_metadata.sh --node-url ws://other-node:9944
# Show help
./regenerate_metadata.sh --help
Output:
Using node URL: ws://127.0.0.1:9944
Updating metadata file at src/quantus_metadata.scale...
Generating SubXT types to src/chain/quantus_subxt.rs...
Formatting generated code...
Done!
This ensures the CLI always has the latest type definitions and can interact with new chain features.