Skip to content

CLI Reference

The Usenet Media Stack CLI follows a modern subcommand architecture inspired by tools like git, docker, and pyenv. All functionality is accessible through the single usenet entry point.

Command Structure

bash
usenet <subcommand> [action] [options]

Core Commands

CommandDescriptionQuick Example
deployFull stack deploymentusenet deploy --auto
storageHot-swappable drive managementusenet storage list
hardwareGPU optimization & driversusenet hardware optimize
servicesService management & logsusenet services status
backupConfiguration backup/restoreusenet backup create
validateSystem health checksusenet validate --fix

Global Options

bash
--verbose     # Detailed output for debugging
--quiet       # Suppress non-essential output
--dry-run     # Show what would be done without executing
--yes         # Auto-confirm all prompts
--profile X   # Use specific performance profile (light/balanced/high/dedicated)

Quick Examples

bash
# Interactive guided setup
usenet deploy

# Fully automated deployment
usenet deploy --auto

# Hardware-only optimization
usenet deploy --hardware-only
bash
# List all available drives
usenet storage list

# Add external drive to pool
usenet storage add /media/external

# Update service APIs with new storage
usenet storage sync
bash
# Show GPU capabilities
usenet hardware list

# Auto-install optimal drivers
usenet hardware install-drivers

# Generate optimized configs
usenet hardware optimize --auto

Help System

The CLI features a comprehensive three-tier help system:

bash
usenet help              # Main help screen
usenet help storage      # Component-specific help
usenet storage --help    # Action-specific help

Legacy Compatibility

For backward compatibility, flag-based commands are supported with deprecation warnings:

bash
# Legacy (deprecated)
usenet --storage discover

# Preferred
usenet storage list

Exit Codes

CodeMeaning
0Success
1General error
2Command not found
3Validation failure
4Configuration error
5Hardware/system issue

Next Steps

Built with ❤️ following Bell Labs standards. Dedicated to Stan Eisenstat.