Scheduling Cron Jobs
Create and manage HTTP cron jobs that call your API endpoints on a schedule.
Create a Cron Job
Interactive
createos cronjobs createThe CLI walks you through naming, schedule, HTTP path, and method selection.
Non-interactive
createos cronjobs create \
--name "nightly-cleanup" \
--schedule "0 0 * * *" \
--path /api/cleanup \
--method POSTList Cron Jobs
createos cronjobs listView Details
createos cronjobs getShows: name, schedule, HTTP settings, status, last run, and next run.
Update a Cron Job
createos cronjobs update --name "new-name" --schedule "*/30 * * * *"Only the fields you specify are updated. Everything else stays the same.
Suspend and Resume
Pause a job without deleting it:
createos cronjobs suspendResume:
createos cronjobs unsuspendView Execution History
createos cronjobs activitiesShows recent runs with status, duration, and HTTP response codes.
Delete a Cron Job
createos cronjobs deleteUse --force to skip the confirmation prompt (for CI).
Cron Schedule Syntax
Standard cron expressions:
| Expression | Meaning |
|---|---|
* * * * * | Every minute |
*/5 * * * * | Every 5 minutes |
0 * * * * | Every hour |
0 0 * * * | Daily at midnight |
0 0 * * 1 | Every Monday at midnight |
0 0 1 * * | First day of every month |