Commands
After installation, manage your scanner using the detectify-scanner command. All commands require sudo.
sudo detectify-scanner <command>Available Commands
| Command | Description |
|---|---|
install | Install the scanner (runs pre-flight checks, prompts for credentials, deploys all components) |
status | Show scanner health: k3s service, pod status, API reachability, disk usage |
logs | View scanner logs |
restart | Restart scanner components |
update | Pull the latest scanner images and redeploy |
reconfigure | Change credentials without reinstalling |
preflight | Run pre-flight checks without installing |
uninstall | Remove the scanner and all associated data |
status
Displays the health of all scanner components:
sudo detectify-scanner statusExample output:
Detectify Scanner Status
========================
[✓] k3s service: Running
[✓] scan-scheduler: Running
[✓] scan-manager: Running
[✓] chrome-controller: Running
[✓] redis: Running
[✓] API reachability: http://10.0.1.5:30000 responding
[✓] Disk usage: 12G 38G 24%
All systems healthy.logs
View logs from scanner components:
sudo detectify-scanner logsFollow logs in real time
sudo detectify-scanner logs -fView logs for a specific component
sudo detectify-scanner logs scan-schedulerValid components: scan-scheduler, scan-manager, chrome-controller, redis.
You can combine both flags:
sudo detectify-scanner logs -f scan-schedulerrestart
Restart all scanner components:
sudo detectify-scanner restartRestart a single component
sudo detectify-scanner restart scan-schedulerThe command waits for the rollout to complete before returning.
update
Pull the latest scanner images and redeploy:
sudo detectify-scanner updateThe command shows whether images were updated or were already at the latest version.
reconfigure
Change credentials without reinstalling. The command shows your current configuration, lets you update any credential, and applies the changes:
sudo detectify-scanner reconfigurePress Enter to keep a current value, or type a new one. Changed credentials are validated before being applied.
Environment Variable Overrides
You can override the following settings by exporting environment variables before running the installer:
| Variable | Default | Description |
|---|---|---|
SCANNER_IMAGE_TAG | stable | Container image tag to deploy |
CHART_VERSION | 1.3.0 | Helm chart version to download |
Available chart versions are published on the Detectify Helm Charts GitHub repository .
For example, to install a specific image tag:
sudo SCANNER_IMAGE_TAG=1.2.0 ./detectify-scanner installThese overrides also apply to the update command:
sudo SCANNER_IMAGE_TAG=1.2.0 detectify-scanner updatepreflight
Run pre-flight checks without installing. Useful for verifying a host meets requirements before committing to an installation:
sudo detectify-scanner preflightuninstall
Completely remove the scanner, k3s, configuration, and data from the host:
sudo detectify-scanner uninstallYou must type uninstall to confirm. This removes:
- k3s and all Kubernetes components
- Scanner configuration (
/etc/detectify-scanner/) - Scanner data (
/var/lib/rancher/) - The installer script (
/usr/local/bin/detectify-scanner)