vagary CLI Reference
Generated from the registered command tree by node scripts/check-docs-drift.mjs --reference-platform. The same script runs in CI and fails the build when this page and the binary disagree, so what you read here is what vagary --help prints.
Global options on the root command: --version and --help. Every subcommand accepts --help.
vagary is the Vagary platform CLI (package @vagarylabs/vagary). Its first release is generally available: every command and flag on this page is a compatibility contract.
vagary auth
Sign vagary in and out (its own session, separate from other CLIs)
vagary auth <subcommand>
Subcommands: vagary auth migrate-state, vagary auth login, vagary auth logout, vagary auth whoami
vagary auth migrate-state
Move private CLI auth/context to ~/.vagaris without signing in; runtime data stays in place
vagary auth migrate-state [options]
| Option | Description | Default |
|---|---|---|
--dry-run | Check private files and collisions without moving state | |
--json | Print migration metadata only |
vagary auth login
Sign in through fleet identity
vagary auth login [options]
| Option | Description | Default |
|---|---|---|
--open | Open the approval URL in a browser (default: print URL only) | |
--no-open | Print the approval URL without opening a browser | |
--instance-admin | Require the authenticated identity to already hold instance-admin | |
--device | Sign in with a short code from ANY browser (RFC 8628); for servers and remote shells | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) |
vagary auth logout
Revoke and remove vagary's stored session for this API base
vagary auth logout [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) |
vagary auth whoami
Show who vagary's session is signed in as
vagary auth whoami [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) |
vagary context
Manage CLI client context profiles
vagary context <subcommand>
Subcommands: vagary context link, vagary context show, vagary context list, vagary context use, vagary context set, vagary context clear, vagary context export
vagary context link
Link local context to existing organization, project, and repository (creates no server-side rows)
vagary context link [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | Profile name (default: current profile) | |
--org <id> | Organization id (must already exist on server) | |
--project <id> | Project id (must already exist on server) | |
--repo <url> | Repository remote URL or local path | |
--branch <name> | Branch name | |
--json | Output raw JSON |
vagary context show
Show current context and, when the server is reachable, the live session it resolves to
vagary context show [options]
| Option | Description | Default |
|---|---|---|
--explain | Show which layer supplied each value (flag, environment, manifest, profile, default) and the service root, if any | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) |
vagary context list
List available context profiles
vagary context list [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--json | Output raw JSON |
vagary context use
Set the active context profile — explicit by construction (the profile is a required argument). A non-interactive command does not inherit this selection; it must still pass its own --profile.
vagary context use [options] <profile>
| Argument | Required | Description |
|---|---|---|
profile | yes | Profile name |
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--json | Output raw JSON |
vagary context set
Set values on a profile (default: the active profile). Setting 'the active profile' implicitly (no --profile named) is refused non-interactively — pass --profile explicitly.
vagary context set [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | Profile name (default: current profile) | |
--service-root <url> | Address of a dedicated Vagaris service; its API is found through discovery (pass "" to clear and return to Vagaris Cloud) | |
--api-base <url> | Explicit API endpoint; skips discovery | |
--company-id <id> | Default company ID | |
--api-key-env-var-name <name> | Env var containing API key (recommended) | |
--use | Set this profile as active | |
--json | Output raw JSON |
vagary context clear
Clear a profile's stored values, or --all to reset the entire context file. Clearing 'the active profile' implicitly (no profile named) is refused non-interactively — pass --profile explicitly.
vagary context clear [options] [profile]
| Argument | Required | Description |
|---|---|---|
profile | no | Profile to clear (defaults to the active profile — refused when non-interactive) |
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | Profile to clear (alternative to the positional argument) | |
--all | Reset the entire context file to defaults (every profile removed) | |
--json | Output raw JSON |
vagary context export
Export context profiles with credential metadata redacted (every profile by default, or one with --profile)
vagary context export [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | Export only this profile (default: every profile) | |
--json | Output raw JSON |
vagary node
Node identity and enrolment
vagary node <subcommand>
Subcommands: vagary node enroll, vagary node status, vagary node doctor, vagary node host, vagary node update, vagary node revoke, vagary node capabilities, vagary node cordon, vagary node drain, vagary node uncordon, vagary node sessions, vagary node rotate, vagary node enable, vagary node disable, vagary node install, vagary node upgrade
vagary node enroll
Request enrolment of this machine as a node; a person approves it with vagaris approve
vagary node enroll [options]
| Option | Description | Default |
|---|---|---|
--pair | Enrol without signing in here: show a code a person enters in a browser to connect this computer | |
--abandon-pending | Forget the enrolment approval this computer recorded, so enroll files anew | |
--yes | With --abandon-pending: consent without being asked (required with --json) | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node status
Show this node's enrolment status and health
vagary node status [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node doctor
Run node-specific health checks
vagary node doctor [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node host
Check this machine as a node host
vagary node host <subcommand>
Subcommands: vagary node host verify
vagary node host verify
Ask the installed node whether this machine is ready to run work (--wsl: run the reviewed WSL checks)
vagary node host verify [options]
| Option | Description | Default |
|---|---|---|
--recover | WSL checks: finish or undo an interrupted window | |
--abandon | WSL checks: abandon an interrupted window | |
--drill-pause <which> | Pause mid-window for a drill: 'wsl' (Drill C) | |
--wsl | Run the WSL ceiling script instead of the readiness check (non-elevated console) | |
--distro <name> | WSL distribution to check, e.g. Ubuntu-24.04 | |
--json | Print the result as JSON |
vagary node update
Report this machine's CLI version and runtimes to the server (signed by the installed node)
vagary node update [options]
| Option | Description | Default |
|---|---|---|
--adapter <type...> | Declare the adapter types this node will execute | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node revoke
Revoke this node's attestation
vagary node revoke [options]
| Option | Description | Default |
|---|---|---|
--reason <reason> | Reason for revocation | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node capabilities
List this machine's capabilities
vagary node capabilities [options]
| Option | Description | Default |
|---|---|---|
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node cordon
Stop this node taking new work; in-flight work continues
vagary node cordon [options]
| Option | Description | Default |
|---|---|---|
--node-id <id> | Act on this node instead of the current machine | |
--reason <reason> | Why (recorded in the audit trail) | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node drain
Stop new work on this node and let in-flight work finish
vagary node drain [options]
| Option | Description | Default |
|---|---|---|
--node-id <id> | Act on this node instead of the current machine | |
--reason <reason> | Why (recorded in the audit trail) | |
--wait | Block until the drain completes | |
--timeout <seconds> | With --wait, give up after this many seconds (exit 1) | "3600" |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node uncordon
Return this node to service
vagary node uncordon [options]
| Option | Description | Default |
|---|---|---|
--node-id <id> | Act on this node instead of the current machine | |
--reason <reason> | Why (recorded in the audit trail) | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node sessions
List the runs and live leases on this node
vagary node sessions [options]
| Option | Description | Default |
|---|---|---|
--node-id <id> | Act on this node instead of the current machine | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node rotate
Rotate this node's key through the installed node (or request it from its running background service)
vagary node rotate [options]
| Option | Description | Default |
|---|---|---|
--reason <reason> | Why (recorded when the background service is asked to rotate) | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |
vagary node enable
Turn on background execution on this computer (asks for consent and administrator rights)
vagary node enable [options]
| Option | Description | Default |
|---|---|---|
--yes | Consent without being asked | |
--accept-hyperv-reboot | Let setup turn on Hyper-V, which needs a restart (always asks to confirm) | |
--json | Print the result as JSON |
vagary node disable
Turn off background execution after running work finishes (asks for consent and administrator rights)
vagary node disable [options]
| Option | Description | Default |
|---|---|---|
--yes | Consent without being asked | |
--force | Stop running work instead of waiting for it (always asks to confirm) | |
--json | Print the result as JSON |
vagary node install
Install the Vagary Node component on this Windows machine from a signed release (never enrols or enables it)
vagary node install [options]
| Option | Description | Default |
|---|---|---|
--to <version> | Install exactly this version; refused unless the signed release approves it | |
--json | Print the result as JSON |
vagary node upgrade
Replace the installed Vagary Node component with another version the signed release approves (drain first; never enrols or enables it). This replaces the Node component only, never this CLI
vagary node upgrade [options]
| Option | Description | Default |
|---|---|---|
--to <version> | Move to exactly this version; refused unless the current signed release approves it | |
--rollback | Move to an earlier version the current signed release still lists (the newest one when --to is omitted) | |
--context <path> | Path to CLI context file | |
--profile <name> | CLI context profile name | |
--api-base <url> | Base URL for the Vagary platform API | |
--json | Output raw JSON | |
--verbose | Show technical details (service endpoints, failure causes) | |
-C, --company-id <id> | Company ID (overrides context default) |