Skip to main content

CLI Reference

Core Commands

CommandDescription
nightshift setupGuided global configuration
nightshift runExecute scheduled tasks
nightshift previewShow upcoming runs
nightshift budgetCheck token budget status
nightshift taskBrowse and run tasks
nightshift doctorCheck environment health
nightshift statusView run history
nightshift logsStream or export logs
nightshift statsToken usage statistics
nightshift daemonBackground scheduler

Preview Options

nightshift preview                # Default view
nightshift preview -n 3 # Next 3 runs
nightshift preview --long # Detailed view
nightshift preview --explain # With prompt previews
nightshift preview --plain # No pager
nightshift preview --json # JSON output
nightshift preview --write ./dir # Write prompts to files

Task Commands

nightshift task list              # All tasks
nightshift task list --category pr
nightshift task list --cost low --json
nightshift task show lint-fix
nightshift task show lint-fix --prompt-only
nightshift task run lint-fix --provider claude
nightshift task run lint-fix --provider codex --dry-run

Budget Commands

nightshift budget                 # Current status
nightshift budget --provider claude
nightshift budget snapshot --local-only
nightshift budget history -n 10
nightshift budget calibrate

Global Flags

FlagDescription
--verboseVerbose output
--dry-runSimulate without changes
--providerSelect provider (claude, codex)
--projectTarget specific project
--taskRun specific task type
--timeoutExecution timeout (default 30m)