publier doctor
Diagnose config, license, and environment issues.
Runs a short set of diagnostic checks and prints a summary with remediation hints. Always exits 0 — read the output to identify issues.
Usage
publier doctorChecks
- Config — validates that
publier.config.yamlexists and parses without errors. - Token — checks that a license token is present (via
PUBLIER_TOKENor~/.publier/auth.json) and not expired. - Environment — verifies that the runtime and required packages are installed.
Sample output
All checks passing:
publier doctor
✓ config publier.config.yaml — valid ✓ token Token present (expires 2026-07-15T14:30:00.000Z) ✓ environment Ready
All checks passed.With a missing token:
publier doctor
✓ config publier.config.yaml — valid ✗ token No token found in PUBLIER_TOKEN or ~/.publier/auth.json → Run `publier login` to sign in, or set PUBLIER_TOKEN in your environment. ✓ environment Ready
1 issue found.Exit codes
| Code | Meaning |
|---|---|
0 | Always. Read the output for issues. |