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 installCommands
| Command | Description |
|---|---|
preflight | Check system requirements |
install | Install Nixopus |
uninstall | Remove Nixopus |
update | Update Nixopus or CLI |
version | Show CLI version |
Getting Help
Run nixopus --help or nixopus <command> --help for detailed usage information.
Installation Options
| Method | Best For | Requires Sudo |
|---|---|---|
| Binary Installation | Most users | Optional |
| Poetry Installation | Development | No |
| Build from Source | Custom builds | Optional |
Binary Installation (Recommended)
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)" -- --localbash
bash -c "$(curl -sSL https://raw.githubusercontent.com/raghavyuva/nixopus/refs/heads/master/scripts/install.sh)" -- --dir ~/binScript 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/nixopusPoetry Installation (Development)
bash
git clone https://github.com/raghavyuva/nixopus.git
cd nixopus/cli
poetry install
poetry shell
nixopus --helpBuild from Source
bash
git clone https://github.com/raghavyuva/nixopus.git
cd nixopus/cli
poetry install --with dev
./build.sh
./install.sh --localInstalling Nixopus
Once the CLI is installed, use it to install Nixopus:
bash
sudo nixopus installbash
sudo nixopus install \
--api-domain api.example.com \
--view-domain app.example.combash
nixopus preflightRoot Privileges Required
The nixopus install command requires root privileges to install system dependencies like Docker.
Verification
bash
nixopus versionExpected 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 ~/.bashrcFor 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)" -- --localUninstallation
bash
sudo rm /usr/local/bin/nixopus
# Or for local: rm ~/.local/bin/nixopusbash
cd nixopus/cli && poetry env remove pythonReference
For complete command documentation with all options, see the CLI Reference.