CLI Reference¶
Scannable command reference. Each entry is a one-liner description followed by the canonical invocation and one concrete example. For narrative guides see basic.md and advanced.md; for system-level tweaks see configuration.md.
1. Ollama¶
ollama list¶
Show locally installed models.
ollama pull¶
Download a model from the registry.
ollama run¶
Start an interactive chat with a model, loading it if needed.
ollama rm¶
Remove a local model to free disk.
ollama show¶
Print a model's Modelfile, parameters, or template.
ollama create¶
Build a custom model from a Modelfile.
Common flags: --verbose (show load/eval timings),
--keepalive <dur> (how long to hold weights in RAM,
e.g. --keepalive 30m).
2. Model manager (PAI-specific)¶
PAI ships a small wrapper around Ollama for curated model sets. See prompts/04-model-manager.md.
pai-models list¶
List models from PAI's curated catalog.
pai-models install¶
Install a curated bundle (downloads + verifies signatures).
pai-models verify¶
Re-verify installed models against upstream hashes.
pai-models prune¶
Remove models not touched in N days.
3. Persistence¶
persistence-setup¶
Interactive setup for the encrypted persistent volume.
persistence unlock¶
Unlock an existing persistent volume (prompted at boot, but can be re-run).
persistence lock¶
Lock the persistent volume immediately (umounts + closes LUKS).
persistence resize¶
Grow the persistent volume in place.
persistence backup¶
Dump an encrypted tarball of persistent data.
persistence verify¶
Re-check integrity of the persistent filesystem.
4. Tor¶
systemctl status tor¶
Check whether the Tor daemon is running.
torsocks¶
Wrap an arbitrary command through the Tor SOCKS proxy.
Tor: switch identity (new circuit)¶
Send NEWNYM to the control port.
Tor: view current circuits¶
Using nyx (ships with PAI):
5. Networking¶
nmcli¶
NetworkManager's CLI for Wi-Fi, Ethernet, VPN.
nmcli device wifi list
nmcli device wifi connect <SSID> password <PASS>
nmcli connection show --active
nmcli: MAC spoof toggle¶
Randomize hardware address per connection.
nmcli connection modify <name> 802-11-wireless.cloned-mac-address random
nmcli connection modify home-wifi 802-11-wireless.cloned-mac-address random
ufw status¶
Show firewall state and rules.
ufw allow / deny¶
Add a rule.
ufw delete¶
Remove a rule by number or exact match.
ss¶
Show active sockets.
6. Wallets¶
bitcoin-cli¶
Talk to a running bitcoind.
bitcoin-cli <command> [args...]
bitcoin-cli getwalletinfo
bitcoin-cli -rpcwallet=cold walletprocesspsbt <psbt>
bitcoin-cli: new receiving address¶
monero-wallet-cli¶
Interactive Monero wallet.
monero-wallet-cli: view-only export¶
7. Build¶
./build.sh¶
Build a PAI image from source.
ShellCheck¶
Lint all shell scripts in the repo.
make test¶
Run the repo's test suite (where applicable).
8. Diagnostics¶
journalctl¶
Query the systemd journal.
journalctl -u <unit> [-f] [--since <time>]
journalctl -u tor -f
journalctl --since '10 min ago' -p err
dmesg¶
Kernel ring buffer (hardware, drivers, OOM killer).
ss¶
Open sockets and listeners (also listed in §5).
iotop¶
Per-process disk I/O.
htop¶
Interactive process / CPU / memory viewer.
free¶
Memory summary (useful before loading a big model).
nvidia-smi / rocm-smi¶
GPU state, where applicable.
See also¶
- basic.md — narrative intro for newcomers.
- advanced.md — workflows that chain these commands.
- configuration.md — making changes stick.