CLI Reference
Global flags
Section titled “Global flags”| Flag | Description |
|---|---|
--config <path> | Path to config file (default: ~/.config/sznuper/config.yml or /etc/sznuper/config.yml) |
-v, --verbose | Enable debug logging |
Commands
Section titled “Commands”sznuper start
Section titled “sznuper start”Start the daemon. Runs healthchecks on their configured schedules and sends notifications.
| Flag | Description |
|---|---|
--dry-run | Simulate alerts without sending notifications |
sznuper init
Section titled “sznuper init”Generate a config file. Launches an interactive TUI by default.
| Flag | Description |
|---|---|
--from <path|url> | Base config to start from |
--add-service <name:url> | Add a notification service (non-interactive mode, repeatable) |
--force | Overwrite existing config |
-o, --output <path> | Output path (overrides default location) |
sznuper run [alert_name]
Section titled “sznuper run [alert_name]”Run alerts once and exit. Runs all alerts if no name is given.
| Flag | Description |
|---|---|
--dry-run | Simulate without sending notifications |
sznuper validate
Section titled “sznuper validate”Validate the config file and verify all healthchecks are reachable.
sznuper version
Section titled “sznuper version”Print version information.
sznuper hash <file>
Section titled “sznuper hash <file>”Print the SHA-256 hash of a file. Useful for pinning healthcheck integrity in config.