view /docs/install-cli
Install and use the CLI
Install and use the CLI
Section titled “Install and use the CLI”Install an approved Debian package:
sudo apt install ./ohtools_0.3.2_amd64.debThe binary is installed at /usr/bin/ohtools. Configuration and policy live
under /etc/ohtools; plugins are installed under /usr/lib/ohtools/plugins.
Common commands
Section titled “Common commands”ohtools system infoohtools system healthohtools disk usage /ohtools service status nginx.serviceohtools plugin catalog listohtools plugin outdatedEvery primary command supports --json. JSON mode writes exactly one Result v1
document to stdout; diagnostics belong on stderr.
Mutations
Section titled “Mutations”ohtools never invokes sudo. A mutation that requires privilege returns exit
code 3 with rerun guidance:
sudo ohtools service restart nginx.service --dry-runsudo ohtools service restart nginx.serviceUse --yes only to bypass confirmation. It cannot bypass policy, privilege,
audit, planning, or verification.