nixopus
Nixopus CLI - A powerful deployment and management tool
Usage:
$ nixopus [OPTIONS] COMMAND [ARGS]...
Options:
-v, --version
: Show version information--help
: Show this message and exit.
Commands:
preflight
: Preflight checks for system compatibilityclone
: Clone a repositoryconf
: Manage configurationservice
: Manage Nixopus servicesproxy
: Manage Nixopus proxy (Caddy) configurationinstall
: Install Nixopusuninstall
: Uninstall Nixopusversion
: Show version informationtest
: Run tests (only in DEVELOPMENT environment)
nixopus preflight
Preflight checks for system compatibility
Usage:
$ nixopus preflight [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
check
: Run all preflight checksports
: Check if list of ports are available on a...deps
: Check if list of dependencies are...
nixopus preflight check
Run all preflight checks
Usage:
$ nixopus preflight check [OPTIONS]
Options:
-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text,json [default: text]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus preflight ports
Check if list of ports are available on a host
Usage:
$ nixopus preflight ports [OPTIONS] PORTS...
Arguments:
PORTS...
: The list of ports to check [required]
Options:
-h, --host TEXT
: The host to check [default: localhost]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus preflight deps
Check if list of dependencies are available on the system
Usage:
$ nixopus preflight deps [OPTIONS] DEPS...
Arguments:
DEPS...
: The list of dependencies to check [required]
Options:
-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus clone
Clone a repository
Usage:
$ nixopus clone [OPTIONS] COMMAND [ARGS]...
Options:
-r, --repo TEXT
: The repository to clone [default: https://github.com/raghavyuva/nixopus]-b, --branch TEXT
: The branch to clone [default: master]-p, --path TEXT
: The path to clone the repository to [default: /etc/nixopus/source]-f, --force
: Force the clone-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus conf
Manage configuration
Usage:
$ nixopus conf [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
list
: List all configurationdelete
: Delete a configurationset
: Set a configuration
nixopus conf list
List all configuration
Usage:
$ nixopus conf list [OPTIONS]
Options:
-s, --service TEXT
: The name of the service to list configuration for, e.g api,view [default: api]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus conf delete
Delete a configuration
Usage:
$ nixopus conf delete [OPTIONS] KEY
Arguments:
KEY
: The key of the configuration to delete [required]
Options:
-s, --service TEXT
: The name of the service to delete configuration for, e.g api,view [default: api]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus conf set
Set a configuration
Usage:
$ nixopus conf set [OPTIONS] KEY_VALUE
Arguments:
KEY_VALUE
: Configuration in the form KEY=VALUE [required]
Options:
-s, --service TEXT
: The name of the service to set configuration for, e.g api,view [default: api]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus service
Manage Nixopus services
Usage:
$ nixopus service [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
up
: Start Nixopus servicesdown
: Stop Nixopus servicesps
: Show status of Nixopus servicesrestart
: Restart Nixopus services
nixopus service up
Start Nixopus services
Usage:
$ nixopus service up [OPTIONS]
Options:
-n, --name TEXT
: The name of the service to start, defaults to all [default: all]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]--dry-run
: Dry run-d, --detach
: Detach from the service and run in the background-e, --env-file TEXT
: Path to the environment file-f, --compose-file TEXT
: Path to the compose file [default: /etc/nixopus/source/docker-compose.yml]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus service down
Stop Nixopus services
Usage:
$ nixopus service down [OPTIONS]
Options:
-n, --name TEXT
: The name of the service to stop, defaults to all [default: all]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]--dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-f, --compose-file TEXT
: Path to the compose file [default: /etc/nixopus/source/docker-compose.yml]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus service ps
Show status of Nixopus services
Usage:
$ nixopus service ps [OPTIONS]
Options:
-n, --name TEXT
: The name of the service to show, defaults to all [default: all]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-f, --compose-file TEXT
: Path to the compose file [default: /etc/nixopus/source/docker-compose.yml]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus service restart
Restart Nixopus services
Usage:
$ nixopus service restart [OPTIONS]
Options:
-n, --name TEXT
: The name of the service to restart, defaults to all [default: all]-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-e, --env-file TEXT
: Path to the environment file-f, --compose-file TEXT
: Path to the compose file [default: /etc/nixopus/source/docker-compose.yml]-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus proxy
Manage Nixopus proxy (Caddy) configuration
Usage:
$ nixopus proxy [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
load
: Load Caddy proxy configurationstatus
: Check Caddy proxy statusstop
: Stop Caddy proxy
nixopus proxy load
Load Caddy proxy configuration
Usage:
$ nixopus proxy load [OPTIONS]
Options:
-p, --proxy-port INTEGER
: Caddy admin port [default: 2019]-v, --verbose
: Verbose output-o, --output TEXT
: Output format: text, json [default: text]--dry-run
: Dry run-c, --config-file TEXT
: Path to Caddy config file-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus proxy status
Check Caddy proxy status
Usage:
$ nixopus proxy status [OPTIONS]
Options:
-p, --proxy-port INTEGER
: Caddy admin port [default: 2019]-v, --verbose
: Verbose output-o, --output TEXT
: Output format: text, json [default: text]--dry-run
: Dry run-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus proxy stop
Stop Caddy proxy
Usage:
$ nixopus proxy stop [OPTIONS]
Options:
-p, --proxy-port INTEGER
: Caddy admin port [default: 2019]-v, --verbose
: Verbose output-o, --output TEXT
: Output format: text, json [default: text]--dry-run
: Dry run-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus install
Install Nixopus
Usage:
$ nixopus install [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose
: Show more details while installing-t, --timeout INTEGER
: How long to wait for each step (in seconds) [default: 300]-f, --force
: Replace files if they already exist-d, --dry-run
: See what would happen, but don't make changes-c, --config-file TEXT
: Path to custom config file (defaults to built-in config)-ad, --api-domain TEXT
: The domain where the nixopus api will be accessible (e.g. api.nixopus.com), if not provided you can use the ip address of the server and the port (e.g. 192.168.1.100:8443)-vd, --view-domain TEXT
: The domain where the nixopus view will be accessible (e.g. nixopus.com), if not provided you can use the ip address of the server and the port (e.g. 192.168.1.100:80)--help
: Show this message and exit.
Commands:
ssh
: Generate an SSH key pair with proper...deps
: Install dependencies
nixopus install ssh
Generate an SSH key pair with proper permissions and optional authorized_keys integration
Usage:
$ nixopus install ssh [OPTIONS]
Options:
-p, --path TEXT
: The SSH key path to generate [default: ~/.ssh/nixopus_rsa]-t, --key-type TEXT
: The SSH key type (rsa, ed25519, ecdsa) [default: rsa]-s, --key-size INTEGER
: The SSH key size [default: 4096]-P, --passphrase TEXT
: The passphrase to use for the SSH key-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-f, --force
: Force overwrite existing SSH key-S, --set-permissions
: Set proper file permissions [default: True]-a, --add-to-authorized-keys
: Add public key to authorized_keys-c, --create-ssh-directory
: Create .ssh directory if it doesn't exist [default: True]-T, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus install deps
Install dependencies
Usage:
$ nixopus install deps [OPTIONS]
Options:
-v, --verbose
: Verbose output-o, --output TEXT
: Output format, text, json [default: text]-d, --dry-run
: Dry run-t, --timeout INTEGER
: Timeout in seconds [default: 10]--help
: Show this message and exit.
nixopus uninstall
Uninstall Nixopus
Usage:
$ nixopus uninstall [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose
: Show more details while uninstalling-t, --timeout INTEGER
: How long to wait for each step (in seconds) [default: 300]-d, --dry-run
: See what would happen, but don't make changes-f, --force
: Remove files without confirmation prompts--help
: Show this message and exit.
nixopus version
Show version information
Usage:
$ nixopus version [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
nixopus test
Run tests (only in DEVELOPMENT environment)
Usage:
$ nixopus test [OPTIONS] [TARGET] COMMAND [ARGS]...
Arguments:
[TARGET]
: Test target (e.g., version)
Options:
--help
: Show this message and exit.