Skip to content

check doctor Command

pakyas check doctor asks the server to analyze a check’s configuration and recent activity, and prints the findings with severity levels and suggested actions.

Terminal window
pakyas check doctor <CHECK> [FLAGS]
ArgumentDescription
CHECKCheck slug, check ID, or public ID
FlagDescription
--deepDeeper analysis (slower)
--fail-on <SEVERITY>Exit with code 1 if any finding is at or above this severity: error (default), warning, or info

With the global --format json, the report is printed as JSON. Any other format prints the human report.

CodeMeaning
0No findings at or above the --fail-on threshold
1Findings at or above the threshold, or the command failed (for example, check not found)
2Invalid arguments

With --format json, the report is printed before the command exits 1, so you can inspect .findings to tell findings apart from errors.

  • Overall status: healthy, attention_needed, or critical
  • Findings: issues with a severity (error, warning, info)
  • Evidence: details supporting each finding
  • Next actions: what to do about each finding
StatusMeaning
healthyNo issues detected
attention_neededWarnings that should be addressed
criticalErrors that need attention now

Human output looks like this:

DOCTOR 1b4e28ba "Nightly Backup"
Result: ! Attention needed
DIAGNOSIS
1) ! <finding title>
<description>
Evidence:
- <key>: <value>
Next actions:
- <suggested action>
Terminal window
# Basic diagnostic
pakyas check doctor backup-nightly
# Deeper analysis
pakyas check doctor backup-nightly --deep
# Fail a CI job on warnings or errors
pakyas check doctor backup-nightly --fail-on warning
# Only errors, as JSON
pakyas check doctor backup-nightly --format json \
| jq '.findings[] | select(.severity == "error")'

The JSON report has check_id, check_name, analyzed_at, deep, status, summary, and findings; each finding has code, severity, title, description, details, and suggested_actions.