check Command
The check command manages checks in the active organization.
| Subcommand | Description |
|---|---|
check list | List all checks in the organization |
check create | Create a check |
check show | Show check details |
check update | Change a check’s configuration |
check pause | Pause monitoring |
check resume | Resume monitoring |
check delete | Delete a check |
check logs | Show ping history |
check sync | Rebuild the local slug cache |
check inspect | Show current state and configuration |
check doctor | Diagnose problems |
check tail | Show and follow timeline events |
Identifying a Check
Section titled “Identifying a Check”Check slugs are unique within an organization. Every subcommand that takes a check accepts:
- the slug (
backup-nightly) - the check ID
- the public (ping) ID, shown in the
PUBLIC_IDcolumn ofcheck list
Lookups search the whole organization, so you don’t need --project to address a check in a non-default project.
check list
Section titled “check list”Lists every check in the organization.
pakyas check listpakyas check list --project infra # only checks in one project (ID, slug, or name)pakyas check list --format json--project is the global flag, so pakyas --project infra check list works too. PAKYAS_PROJECT also filters the list.
Example output:
+------------+----------------+----------------+--------------------------------------+--------+--------+-----------+| PROJECT | NAME | SLUG | PUBLIC_ID | STATUS | PERIOD | LAST PING |+------------+----------------+----------------+--------------------------------------+--------+--------+-----------+| Production | Nightly Backup | backup-nightly | 550e8400-e29b-41d4-a716-446655440000 | up | 1d | 7h ago || Infra | Log Rotation | log-rotate | 6fa459ea-ee8a-4ca4-894e-db77e160355e | late | 1d | 1d ago |+------------+----------------+----------------+--------------------------------------+--------+--------+-----------+With --format json|ndjson|yaml, each row has the fields project, name, slug, public_id, status, period, and last_ping. status is the raw value (new, up, running, late, down, failed, overrunning, paused) without color codes; period and last_ping are the same human strings as in the table. An empty list prints [].
Listing the organization also refreshes the slug cache that ping and monitor use.
check create
Section titled “check create”pakyas check create <SLUG> (--cron <EXPR> [--tz <TZ>] | --every <DURATION>) [FLAGS]The check is created in the project given by --project, or in the default project. If neither is set, the command fails with No default project set for creating checks.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
SLUG | URL-friendly identifier: 1-100 lowercase letters, digits, and hyphens. Must be unique in the organization. |
| Flag | Description |
|---|---|
--cron <EXPR> | Cron schedule, 5 fields (for example "0 2 * * *"). Conflicts with --every. |
--tz <TZ> | IANA timezone for the cron schedule (for example Asia/Manila). Requires --cron. Without it the organization’s timezone is used. |
--every <DURATION> | Interval schedule (for example 5m, 1h). Conflicts with --cron. |
--missing-after <DURATION> | Grace period before the check is marked missing. Alias: --grace. Derived automatically when omitted. |
--name <NAME> | Display name. Defaults to the slug in title case (backup-nightly becomes Backup Nightly). |
--description <TEXT> | Description |
--tags <a,b> | Comma-separated tags |
--alert-after-miss-pings <N> | Alert after N consecutive missed pings (1-20) |
--alert-after-fail-pings <N> | Alert after N consecutive failures (1-100) |
--max-runtime <DURATION> | Maximum runtime before the run is reported as overrunning |
--dry-run | Validate and show what would be created, without creating it |
--json | Print the result as compact, single-line JSON (whatever --format says) |
--quiet | Print only the ping URL |
-i, --interactive | Prompt for name, schedule, timezone, grace, and description |
One of --cron, --every, or -i is required. In interactive mode the schedule flags are not used, and tags, alert thresholds, and max runtime keep their defaults.
Durations are raw seconds (90) or a number with a unit: 30s, 5m, 1h, 2d, or long forms such as 5 minutes, 2 hours, 1 day. Values must be greater than zero.
Cron shortcuts such as @daily or @hourly are rejected with the equivalent 5-field expression (@daily suggests 0 0 * * *).
Automatic grace: without --missing-after, the grace period is 10% of the interval (for cron, the interval between runs), clamped to 5 minutes - 1 hour, and shown as (auto).
Examples
Section titled “Examples”# Daily at 02:00 in the organization's timezonepakyas check create backup-nightly --cron "0 2 * * *"
# Daily at 09:00 New York time, with a custom name and gracepakyas check create daily-report --cron "0 9 * * *" --tz America/New_York \ --name "Daily Report" --grace 30m
# Every 5 minutes, in a specific projectpakyas check create api-heartbeat --every 5m --project infra
# Alerting thresholds, max runtime, tagspakyas check create etl-hourly --every 1h --max-runtime 45m \ --alert-after-miss-pings 2 --alert-after-fail-pings 3 --tags etl,data
# Preview without creatingpakyas check create backup-nightly --cron "0 2 * * *" --dry-run
# Capture the ping URL in a scriptPING_URL=$(pakyas check create deploy-check --every 1h --quiet)Human output:
Created check: Backup Nightly
Slug: backup-nightly Schedule: 0 2 * * * (org default) Grace: 1h (auto)
Dashboard: https://app.pakyas.com/checks/backup-nightly Ping URL: https://ping.pakyas.com/550e8400-e29b-41d4-a716-446655440000
Test with: curl -fsS https://ping.pakyas.com/550e8400-e29b-41d4-a716-446655440000
Monitor with: pakyas monitor backup-nightly -- your-command
CI/CD (no auth required): pakyas monitor --public-id 550e8400-e29b-41d4-a716-446655440000 -- your-commandJSON Output
Section titled “JSON Output”With --format json, ndjson, yaml, or --json, the created check is printed as an object:
{ "cron_expression": "0 2 * * *", "dashboard_url": "https://app.pakyas.com/checks/backup-nightly", "effective_timezone": "Asia/Manila", "grace_auto": true, "grace_seconds": 3600, "id": "1b4e28ba-2fa1-41d2-883f-0016d3cca427", "name": "Backup Nightly", "period_seconds": 86400, "ping_url": "https://ping.pakyas.com/550e8400-e29b-41d4-a716-446655440000", "project_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "public_id": "550e8400-e29b-41d4-a716-446655440000", "schedule_type": "cron", "slug": "backup-nightly", "timezone": null, "timezone_source": "org"}schedule_typeiscronorsimple(interval).timezoneis the check’s own timezone (--tz), ornull.effective_timezoneis the timezone the schedule runs in, andtimezone_sourcesays where it came from:check(--tz),org(organization default), orutc_fallback.
--dry-run with a machine format prints the plan instead:
{ "cron_expression": "0 2 * * *", "dry_run": true, "effective_timezone": "Asia/Manila", "grace_auto": true, "grace_seconds": 3600, "name": "Backup Nightly", "next_runs": [ "2026-11-08T02:00:00+08:00", "2026-11-09T02:00:00+08:00", "2026-11-10T02:00:00+08:00" ], "period_seconds": 86400, "project_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "schedule_type": "cron", "slug": "backup-nightly", "timezone_source": "org"}next_runs is empty for interval checks.
pakyas check create backup-nightly --cron "0 2 * * *" --format json | jq -r '.public_id'check show
Section titled “check show”pakyas check show <CHECK>Prints the check as JSON (YAML with --format yaml, one line with --format ndjson):
{ "id": "1b4e28ba-2fa1-41d2-883f-0016d3cca427", "public_id": "550e8400-e29b-41d4-a716-446655440000", "name": "Backup Nightly", "slug": "backup-nightly", "status": "up", "period": "1d", "grace": "1h", "description": null, "tags": [], "last_ping": "7h ago", "next_expected": "in 16h", "ping_url": "https://ping.pakyas.com/550e8400-e29b-41d4-a716-446655440000", "created_at": "2026-10-01 08:30:00 UTC"}For raw timestamps, schedule details, and alerting state, use check inspect.
check update
Section titled “check update”pakyas check update <CHECK> [FLAGS]| Flag | Description |
|---|---|
--name <NAME> | New display name |
--description <TEXT> | New description. "" clears it. |
--cron <EXPR> | Switch to (or change) a cron schedule. --cron "" switches to an interval schedule. Conflicts with --every. |
--every <DURATION> | Switch to (or change) an interval schedule; clears the cron expression and timezone. Alias: --period. |
--tz <TZ> | IANA timezone for the cron schedule. "" resets it to the organization default. |
--missing-after <DURATION> | Grace period. Alias: --grace. |
--tags <a,b> | Replace all tags |
--alert-after-miss-pings <N> | Alert after N consecutive missed pings (1-20) |
--alert-after-fail-pings <N> | Alert after N consecutive failures (1-100) |
--max-runtime <DURATION> | Maximum runtime |
-y, --yes | Apply without the confirmation prompt |
The command prints the changes (Grace: 1h -> 30m) and asks for confirmation unless -y is given.
With no field flags, it runs interactively in a terminal and prompts for each field. With -y, or when not attached to a terminal, it fails with No changes specified instead.
# Change the intervalpakyas check update api-heartbeat --every 10m -y
# Move a check to a cron schedule in a specific timezonepakyas check update backup-nightly --cron "0 3 * * *" --tz Asia/Manila -y
# Switch back to an interval schedulepakyas check update backup-nightly --every 1d -y
# Clear the description, replace tagspakyas check update backup-nightly --description "" --tags db,prod -y
# Interactive editingpakyas check update backup-nightlycheck pause / check resume
Section titled “check pause / check resume”pakyas check pause <CHECK>pakyas check resume <CHECK>A paused check expects no pings and sends no alerts. Use it during planned maintenance.
check delete
Section titled “check delete”pakyas check delete <CHECK> [-y]| Flag | Description |
|---|---|
-y, --yes | Skip the confirmation prompt |
Deleting cannot be undone. The check’s entry is also removed from the local slug cache.
check logs
Section titled “check logs”pakyas check logs <CHECK> [--limit <N>]| Flag | Description |
|---|---|
--limit <N> | Number of pings to show (default 50, server maximum 200) |
+---------+---------+----------+---------------+| TIME | TYPE | DURATION | SOURCE |+---------+---------+----------+---------------+| 7h ago | up | 4231ms | 203.0.113.10 || 7h ago | running | - | 203.0.113.10 |+---------+---------+----------+---------------+
Total: 214 pingsIn the table, ping types are shown as up (success), down (fail), and running (start). With --format json|ndjson|yaml, each row has time (RFC 3339), ping_type (success, fail, start), duration, and source; there is no Total line, and no pings prints [].
pakyas check logs backup-nightly --limit 200 --format json \ | jq -r '.[] | select(.ping_type == "fail") | .time'check sync
Section titled “check sync”pakyas check syncFetches every check in the organization and replaces the local slug cache used by ping and monitor. ping and monitor look a cached slug up again after an hour on their own; run check sync after deleting or recreating checks in the dashboard so pings don’t go to a stale public ID in the meantime.
See Also
Section titled “See Also”- CLI Configuration - Global flags, formats, and the slug cache
- project - Choose where new checks are created
- ping and monitor - Send pings