Usage
| Argument / Option | Description |
|---|---|
[NAME] | Named installed service. Looks up that service file to determine config path and status. |
list | List all installed services and standalone cordon processes. |
--config, -c | Check the instance using this config file. Mutually exclusive with --scope. |
--scope | project or user; selects which config file to inspect. |
--verbose, -v | Show detailed instance information. |
--quiet, -q | Suppress output and use exit code only. Cannot be combined with names, subcommands, or --verbose. |
- Running cordon processes
- Listening ports
- Installed service status
- Health endpoint responses
- Token enforcement status and warnings (missing tokens, unenforced scopes)
./cordon.toml is missing, cordon status falls back to installed services:
- If exactly one installed service exists, it inspects that service automatically
- If multiple installed services exist, it shows the service list and asks you to pick one by name
Quiet mode
| Exit code | Meaning |
|---|---|
| 0 | Cordon is running and healthy |
| 1 | Cordon is not responding, or config exists but can’t be parsed |
/health endpoint.
This is used by the Claude Code health-check hook to detect when cordon is down. It’s also useful in scripts, CI, and shell prompts: