Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diditrun) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
diditrun
CLI for DidItRun — cron job monitoring made simple.
Add a ping to your scheduled tasks. If a ping doesn't arrive on time, DidItRun alerts you.
Install
npm install -g diditrunQuick Start
# One command to connect your account and auto-monitor your cron jobs
diditrun init✓ Connected to your account
✓ Found 3 cron jobs
backup-db → monitored ✓
send-reports → monitored ✓
cleanup-logs → monitored ✓
🎉 3 jobs monitored. Dashboard → https://diditrun.io/dashboardCommands
diditrun init
Connect your account and auto-monitor all your cron jobs in one step. Prompts for your API key, scans your crontab, and creates monitors for any untracked jobs.
diditrun login
Configure API URL, API key, and optional ping key. Use this if you just want to authenticate without syncing cron jobs.
diditrun logout
Clear stored credentials.
diditrun status
Show all monitors and their current status.
NAME STATUS LAST PING SCHEDULE
-------------------------------------------------
backup-postgres up 2m ago 0 2 * * *
healthcheck up 12s ago */5 * * * *
log-rotate degraded 2h ago 0 0 * * *diditrun ping <monitorId>
Send a manual ping for a monitor.
diditrun ping abc123 # Success ping
diditrun ping abc123 --fail # Failure ping
diditrun ping abc123 --msg "OK" # Attach a messagediditrun exec --monitor <id> -- <command>
Wrap a command with automatic monitoring. Sends a start ping before execution, then a success or failure ping with duration and exit code when it finishes.
diditrun exec --monitor abc123 -- ./backup.sh
diditrun exec --monitor abc123 -- make build
diditrun exec --monitor abc123 -- python etl.py --fullYour command's stdout/stderr pass through normally. The CLI exits with the same code as your command.
diditrun discover
Parse your system crontab and display discovered jobs.
diditrun discover # Show crontab entries
diditrun discover --interactive # Interactively create monitors for each entrydiditrun sync
Automatically create monitors from your crontab entries. Skips entries that already match an existing monitor by schedule.
diditrun sync # Create monitors for untracked cron jobs
diditrun sync --dry-run # Preview what would be createdConfiguration
Credentials are stored in ~/.config/diditrun/config.json. Run diditrun logout to clear them.
Links
- DidItRun — Create your free account