Skip to content

check Command

The check command manages checks in the active organization.

SubcommandDescription
check listList all checks in the organization
check createCreate a check
check showShow check details
check updateChange a check’s configuration
check pausePause monitoring
check resumeResume monitoring
check deleteDelete a check
check logsShow ping history
check syncRebuild the local slug cache
check inspectShow current state and configuration
check doctorDiagnose problems
check tailShow and follow timeline events

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_ID column of check list

Lookups search the whole organization, so you don’t need --project to address a check in a non-default project.

Lists every check in the organization.

Terminal window
pakyas check list
pakyas 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.

Terminal window
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.

ArgumentDescription
SLUGURL-friendly identifier: 1-100 lowercase letters, digits, and hyphens. Must be unique in the organization.
FlagDescription
--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-runValidate and show what would be created, without creating it
--jsonPrint the result as compact, single-line JSON (whatever --format says)
--quietPrint only the ping URL
-i, --interactivePrompt 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).

Terminal window
# Daily at 02:00 in the organization's timezone
pakyas check create backup-nightly --cron "0 2 * * *"
# Daily at 09:00 New York time, with a custom name and grace
pakyas check create daily-report --cron "0 9 * * *" --tz America/New_York \
--name "Daily Report" --grace 30m
# Every 5 minutes, in a specific project
pakyas check create api-heartbeat --every 5m --project infra
# Alerting thresholds, max runtime, tags
pakyas check create etl-hourly --every 1h --max-runtime 45m \
--alert-after-miss-pings 2 --alert-after-fail-pings 3 --tags etl,data
# Preview without creating
pakyas check create backup-nightly --cron "0 2 * * *" --dry-run
# Capture the ping URL in a script
PING_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-command

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_type is cron or simple (interval).
  • timezone is the check’s own timezone (--tz), or null.
  • effective_timezone is the timezone the schedule runs in, and timezone_source says where it came from: check (--tz), org (organization default), or utc_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.

Terminal window
pakyas check create backup-nightly --cron "0 2 * * *" --format json | jq -r '.public_id'
Terminal window
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.

Terminal window
pakyas check update <CHECK> [FLAGS]
FlagDescription
--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, --yesApply 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.

Terminal window
# Change the interval
pakyas check update api-heartbeat --every 10m -y
# Move a check to a cron schedule in a specific timezone
pakyas check update backup-nightly --cron "0 3 * * *" --tz Asia/Manila -y
# Switch back to an interval schedule
pakyas check update backup-nightly --every 1d -y
# Clear the description, replace tags
pakyas check update backup-nightly --description "" --tags db,prod -y
# Interactive editing
pakyas check update backup-nightly
Terminal window
pakyas check pause <CHECK>
pakyas check resume <CHECK>

A paused check expects no pings and sends no alerts. Use it during planned maintenance.

Terminal window
pakyas check delete <CHECK> [-y]
FlagDescription
-y, --yesSkip the confirmation prompt

Deleting cannot be undone. The check’s entry is also removed from the local slug cache.

Terminal window
pakyas check logs <CHECK> [--limit <N>]
FlagDescription
--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 pings

In 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 [].

Terminal window
pakyas check logs backup-nightly --limit 200 --format json \
| jq -r '.[] | select(.ping_type == "fail") | .time'
Terminal window
pakyas check sync

Fetches 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.