Check-ins CLI reference
The check-ins command lets you manage check-ins for monitoring cron jobs and
scheduled tasks.
All check-ins commands require --project-id.
List check-ins
Section titled “List check-ins”hb check-ins list --project-id 12345Required flags:
--project-id— Project ID
Optional flags:
-o, --output— Output format:tableorjson(default:table)
Get check-in details
Section titled “Get check-in details”hb check-ins get --project-id 12345 --id 67890Required flags:
--project-id— Project ID--id— Check-in ID
Optional flags:
-o, --output— Output format:textorjson(default:text)
Create a check-in
Section titled “Create a check-in”Simple schedule
Section titled “Simple schedule”For jobs that run at regular intervals:
hb check-ins create --project-id 12345 --cli-input-json '{ "name": "Daily backup", "slug": "daily-backup", "schedule_type": "simple", "report_period": "1440", "grace_period": "5"}'Cron schedule
Section titled “Cron schedule”For jobs with cron expressions:
hb check-ins create --project-id 12345 --cli-input-json '{ "name": "Hourly job", "slug": "hourly-job", "schedule_type": "cron", "cron_schedule": "0 * * * *", "cron_timezone": "America/New_York", "grace_period": "5"}'Required flags:
--project-id— Project ID--cli-input-json— JSON payload (inline string orfile://path)
JSON fields:
name— Display name for the check-inslug— URL-safe identifier used in the check-in URLschedule_type— Eithersimpleorcronreport_period— For simple schedules: expected interval in minutesgrace_period— Minutes to wait before alertingcron_schedule— For cron schedules: cron expressioncron_timezone— For cron schedules: timezone (e.g.,America/New_York)
Optional flags:
-o, --output— Output format:textorjson(default:text)
Update a check-in
Section titled “Update a check-in”hb check-ins update --project-id 12345 --id 67890 --cli-input-json '{"name": "Updated name"}'Required flags:
--project-id— Project ID--id— Check-in ID--cli-input-json— JSON payload with fields to update
Optional flags:
-o, --output— Output format:textorjson(default:text)
Delete a check-in
Section titled “Delete a check-in”hb check-ins delete --project-id 12345 --id 67890Required flags:
--project-id— Project ID--id— Check-in ID