Skip to content

Nixopus CLI

Command line interface for installing and managing Nixopus on your server.

Quick Start

bash
sudo bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)"
bash
sudo nixopus install

Commands

CommandDescription
preflightCheck system requirements
installInstall Nixopus
uninstallRemove Nixopus
updateUpdate Nixopus or CLI
versionShow CLI version

Getting Help

Run nixopus --help or nixopus <command> --help for detailed usage information.

Installation Options

MethodBest ForRequires Sudo
Binary InstallationMost usersOptional
Poetry InstallationDevelopmentNo
Build from SourceCustom buildsOptional
bash
sudo bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)"
bash
bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)" -- --local
bash
bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)" -- --dir ~/bin

Script Options:

  • --local: Install to ~/.local/bin (no sudo required)
  • --dir DIR: Install to custom directory
  • --no-path: Don't update PATH automatically
Manual Binary Installation
bash
# Download binary for your platform
wget https://github.com/raghavyuva/nixopus/releases/latest/download/nixopus_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m)

# Make executable and install
chmod +x nixopus_*
sudo mv nixopus_* /usr/local/bin/nixopus
Poetry Installation (Development)
bash
git clone https://github.com/raghavyuva/nixopus.git
cd nixopus/cli
poetry install
poetry shell
nixopus --help
Build from Source
bash
git clone https://github.com/raghavyuva/nixopus.git
cd nixopus/cli
poetry install --with dev
./build.sh
./install.sh --local

Installing Nixopus

Once the CLI is installed, use it to install Nixopus:

bash
sudo nixopus install
bash
sudo nixopus install \
  --api-domain api.example.com \
  --view-domain app.example.com
bash
nixopus preflight

Root Privileges Required

The nixopus install command requires root privileges to install system dependencies like Docker.

Verification

bash
nixopus version

Expected output:

┌───────────────── Version Info ─────────────────┐
│ Nixopus CLI v0.1.0                            │
└─────────────────────────────────────────────────┘

Troubleshooting

Command Not Found

If nixopus is not found, add it to your PATH:

bash
# For ~/.local/bin installation
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

For Zsh, use ~/.zshrc instead.

Permission Errors

Use local installation if you don't have sudo access:

bash
bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)" -- --local

Uninstallation

bash
sudo rm /usr/local/bin/nixopus
# Or for local: rm ~/.local/bin/nixopus
bash
cd nixopus/cli && poetry env remove python

Reference

For complete command documentation with all options, see the CLI Reference.

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