Skip to content

Nixopus CLI

Command line interface for managing Nixopus applications and services. Built with Python and Typer, providing an intuitive terminal experience for deployment and management.

Quick Start

bash
# Install CLI
curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/master/cli/install.sh | bash

# Verify installation
nixopus --help

# Check system requirements
nixopus preflight check

# Install Nixopus
nixopus install

Available Commands

CommandDescriptionKey Subcommands
preflightSystem readiness checkscheck, ports, deps
installComplete Nixopus installationssh, deps
uninstallRemove Nixopus from system-
serviceControl Docker servicesup, down, ps, restart
confManage application settingslist, set, delete
proxyCaddy proxy managementload, status, stop
cloneRepository cloning with Git-
versionDisplay CLI version information-
testRun CLI tests (development only)-

Common Workflows

Initial Setup

bash
# 1. Check system requirements
nixopus preflight check

# 2. Install with custom domains
nixopus install --api-domain api.example.com --view-domain app.example.com

# 3. Start services
nixopus service up --detach

# 4. Load proxy configuration
nixopus proxy load

# 5. Verify everything is running
nixopus service ps

Configuration Management

bash
# View current configuration
nixopus conf list --service api

# Update settings
nixopus conf set DATABASE_URL=postgresql://user:pass@localhost:5432/nixopus

# Restart services to apply changes
nixopus service restart

Development Setup

bash
# Clone repository
nixopus clone --branch develop

# Preview installation
nixopus install --dry-run

# Start development environment
nixopus service up --env-file .env.development

# Run tests
export ENV=DEVELOPMENT
nixopus test

Global Options

Most commands support these options:

OptionShorthandDescription
--verbose-vShow detailed output
--output-oOutput format (text, json)
--dry-run-dPreview without executing
--timeout-tOperation timeout in seconds
--helpShow command help

Getting Help

bash
# General help
nixopus --help

# Command-specific help
nixopus install --help
nixopus service --help

# Subcommand help
nixopus service up --help

Installation

See the Installation Guide for detailed setup instructions including binary installation, Poetry setup, and development environment configuration.

Development

See the Development Guide for information on contributing to the CLI, project structure, and testing procedures.

Made with love
Released under the Functional Source License (FSL)