CLI Commands
Core Commands
niki watch
Monitor a command from start to finish.
niki watch [OPTIONS] -- <COMMAND>| Option | Description |
|---|---|
--name, -n | Human-readable task name |
--timeout, -t | Timeout in seconds |
--quiet, -q | Suppress output |
Examples:
niki watch -- python train.pyniki watch --name "Training" -- python train.py --epochs 100niki watch --timeout 3600 -- ./long_job.shniki attach
Attach to an already-running process.
niki attach <PID> [OPTIONS]| Option | Description |
|---|---|
--name, -n | Human-readable task name |
Examples:
niki attach 12345niki attach 12345 --name "Alignment job"niki status
Show running and recent tasks.
niki status [OPTIONS]| Option | Description |
|---|---|
--running, -r | Show only running tasks |
--failed, -f | Show only failed tasks |
--limit, -l | Maximum tasks to show |
niki history
Query historical tasks.
niki history [OPTIONS]| Option | Description |
|---|---|
--last | Time range (7d, 24h, 1w) |
--name, -n | Filter by name pattern |
--exit-code, -e | Filter by exit code |
--limit, -l | Maximum tasks to show |
Daemon Commands
niki daemon start
Start the background daemon.
niki daemon start [OPTIONS]| Option | Description |
|---|---|
--foreground, -f | Run in foreground |
niki daemon stop
Stop the running daemon.
niki daemon stopniki daemon status
Check daemon status.
niki daemon statusConfiguration Commands
niki config init
Run interactive configuration wizard.
niki config initniki config show
Display current configuration.
niki config showniki config path
Show configuration file path.
niki config pathUtility Commands
niki doctor
Check configuration and dependencies.
niki doctorValidates:
- Config file exists
- Dependencies installed
- API key configured
- Daemon running
niki mode
Change notification mode.
niki mode <active|focus|meeting>niki version
Show version.
niki versionniki --versionniki -VChat Commands
niki chat history
View chat history.
niki chat history [OPTIONS]| Option | Description |
|---|---|
--platform | Filter by platform (telegram, slack) |
--limit, -l | Maximum messages to show |
niki chat stats
Show chat statistics.
niki chat statsniki chat clear
Clear chat history.
niki chat clear --all --force