QuDAG CLI
Command-line interface for the QuDAG quantum-resistant distributed protocol.
Installation
Note: The CLI binary is named
qudagafter installation.
Quick Start
# Start a QuDAG node
# Create your own darknet domain
# Connect to peers
# Check node status
Commands
Node Management
# Start a node
# Stop the node
# Get node status
# Restart node
Peer Operations
# List connected peers
# Add a peer
# Remove a peer
# Ban a peer
# Test connectivity
Dark Addressing
# Register a .dark domain
# Resolve a domain
# Create temporary shadow address
# Generate quantum fingerprint
# List your registered domains
Password Vault
The QuDAG CLI includes a quantum-resistant password vault for secure credential management:
# Initialize a new vault
# Generate secure passwords
# Add password entries
# Retrieve passwords
# List vault entries
# Update existing entries
# Remove entries
# Vault management
# Configuration
Network Operations
# Show network statistics
# Test peer connectivity
# Monitor network events
Configuration
# Show current configuration
# Set configuration value
# Generate systemd service
Examples
Setting Up Your First Node
# 1. Start your node
# 2. Register your identity
# 3. Connect to the network (use bootstrap peers)
# 4. Check status
Creating a Private Network
# Node 1
# Node 2
# Node 3
Dark Domain System
# Register domains for different services
# Create temporary addresses for ephemeral communication
# Resolve any .dark domain to find peers
Password Vault Setup
# Initialize your vault
# Generate and store service passwords
# Create organized structure
# Backup your vault
# Daily usage
Configuration File
QuDAG CLI uses a configuration file at ~/.qudag/config.toml:
[]
= 8000
= 9090
= "~/.qudag/data"
= "info"
[]
= 50
= [
"/ip4/bootstrap1.qudag.io/tcp/8000/p2p/12D3KooW...",
"/ip4/bootstrap2.qudag.io/tcp/8000/p2p/12D3KooW..."
]
[]
= true
= 3600
[]
= true
= true
[]
= "~/.qudag/vault.qdag"
= 300 # seconds
= 30 # seconds
= 3
= 65536 # KB
Output Formats
Many commands support different output formats:
# JSON output
# Table output (default)
# Raw output for scripting
Logging
# View logs
# Follow logs in real-time
# Filter by level
# Save logs to file
Systemd Integration
Generate systemd service files:
# Generate service file
# Enable and start
Environment Variables
QUDAG_CONFIG- Path to configuration fileQUDAG_DATA_DIR- Data directory overrideQUDAG_LOG_LEVEL- Log level (trace, debug, info, warn, error)QUDAG_PORT- Default port overrideQUDAG_RPC_PORT- RPC port override
Exit Codes
0- Success1- General error2- Configuration error3- Network error4- Permission error5- Not found error
Shell Completion
Generate shell completion scripts:
# Bash
# Zsh
# Fish
Security Considerations
- All communication is quantum-resistant encrypted
- Private keys are stored securely in
~/.qudag/keys/ - Configuration supports file permissions verification
- Network traffic uses onion routing for anonymity
Troubleshooting
Common Issues
Node won't start
# Check if port is in use
|
# Check logs
Can't connect to peers
# Test network connectivity
# Check firewall settings
Permission errors
# Check data directory permissions
# Fix permissions
Documentation
License
Licensed under either MIT or Apache-2.0 at your option.