Command Reference

Command Reference #

Complete reference for all Quad-Ops commands with detailed options, examples, and use cases.

Command Structure #

Quad-Ops follows a hierarchical command structure:

quad-ops [global-options] <command> [command-options] [arguments]

Global Options #

OptionShortDescription
--config-cPath to configuration file
--verbose-vEnable verbose output
--help-hShow help information
--versionShow version information

Available Commands #

Core Operations #

  • sync - Synchronize repositories and deploy containers
  • up - Start all or specific services
  • down - Stop and remove services
  • update - Update quad-ops to the latest version

Unit Management #

Configuration #

  • config - Configuration management commands

Command Categories #

Repository Operations #

Commands that interact with Git repositories and perform synchronization.

Service Management #

Commands for controlling container lifecycle and examining running services.

Unit Administration #

Commands for managing Quadlet units and their systemd integration.

System Configuration #

Commands for validating and managing Quad-Ops configuration.

Common Usage Patterns #

Initial Deployment #

# Configure repositories and perform first sync
sudo quad-ops sync

Regular Operations #

# Check service status
sudo quad-ops unit list

# Restart specific service
sudo quad-ops up myapp-web

# Stop all services for maintenance
sudo quad-ops down

Exit Codes #

Quad-Ops uses standard exit codes for scripting and automation:

Exit CodeMeaning
0Success
1General error
2Invalid command usage
3Configuration error
4Git operation failed
5systemd operation failed

Getting Help #

Command-Specific Help #

# Help for any command
quad-ops <command> --help

# Examples
quad-ops sync --help
quad-ops unit list --help

Manual Pages #

# View manual page (if installed)
man quad-ops
man quad-ops-sync

Next Steps #

Browse the individual command references for detailed information on options, examples, and use cases.