Skip to main content

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]
OptionDescriptionDefault
--dry-runCheck private files and collisions without moving state
--jsonPrint migration metadata only

vagary auth login​

Sign in through fleet identity

vagary auth login [options]
OptionDescriptionDefault
--openOpen the approval URL in a browser (default: print URL only)
--no-openPrint the approval URL without opening a browser
--instance-adminRequire the authenticated identity to already hold instance-admin
--deviceSign 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
--jsonOutput raw JSON
--verboseShow technical details (service endpoints, failure causes)

vagary auth logout​

Revoke and remove vagary's stored session for this API base

vagary auth logout [options]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>CLI context profile name
--api-base <url>Base URL for the Vagary platform API
--jsonOutput raw JSON
--verboseShow technical details (service endpoints, failure causes)

vagary auth whoami​

Show who vagary's session is signed in as

vagary auth whoami [options]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>CLI context profile name
--api-base <url>Base URL for the Vagary platform API
--jsonOutput raw JSON
--verboseShow 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

Link local context to existing organization, project, and repository (creates no server-side rows)

vagary context link [options]
OptionDescriptionDefault
--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
--jsonOutput raw JSON

vagary context show​

Show current context and, when the server is reachable, the live session it resolves to

vagary context show [options]
OptionDescriptionDefault
--explainShow 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
--jsonOutput raw JSON
--verboseShow technical details (service endpoints, failure causes)

vagary context list​

List available context profiles

vagary context list [options]
OptionDescriptionDefault
--context <path>Path to CLI context file
--jsonOutput 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>
ArgumentRequiredDescription
profileyesProfile name
OptionDescriptionDefault
--context <path>Path to CLI context file
--jsonOutput 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]
OptionDescriptionDefault
--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)
--useSet this profile as active
--jsonOutput 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]
ArgumentRequiredDescription
profilenoProfile to clear (defaults to the active profile — refused when non-interactive)
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>Profile to clear (alternative to the positional argument)
--allReset the entire context file to defaults (every profile removed)
--jsonOutput raw JSON

vagary context export​

Export context profiles with credential metadata redacted (every profile by default, or one with --profile)

vagary context export [options]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>Export only this profile (default: every profile)
--jsonOutput 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]
OptionDescriptionDefault
--pairEnrol without signing in here: show a code a person enters in a browser to connect this computer
--abandon-pendingForget the enrolment approval this computer recorded, so enroll files anew
--yesWith --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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>CLI context profile name
--api-base <url>Base URL for the Vagary platform API
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>CLI context profile name
--api-base <url>Base URL for the Vagary platform API
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--recoverWSL checks: finish or undo an interrupted window
--abandonWSL checks: abandon an interrupted window
--drill-pause <which>Pause mid-window for a drill: 'wsl' (Drill C)
--wslRun the WSL ceiling script instead of the readiness check (non-elevated console)
--distro <name>WSL distribution to check, e.g. Ubuntu-24.04
--jsonPrint 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--context <path>Path to CLI context file
--profile <name>CLI context profile name
--api-base <url>Base URL for the Vagary platform API
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--node-id <id>Act on this node instead of the current machine
--reason <reason>Why (recorded in the audit trail)
--waitBlock 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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--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
--jsonOutput raw JSON
--verboseShow 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]
OptionDescriptionDefault
--yesConsent without being asked
--accept-hyperv-rebootLet setup turn on Hyper-V, which needs a restart (always asks to confirm)
--jsonPrint 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]
OptionDescriptionDefault
--yesConsent without being asked
--forceStop running work instead of waiting for it (always asks to confirm)
--jsonPrint 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]
OptionDescriptionDefault
--to <version>Install exactly this version; refused unless the signed release approves it
--jsonPrint 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]
OptionDescriptionDefault
--to <version>Move to exactly this version; refused unless the current signed release approves it
--rollbackMove 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
--jsonOutput raw JSON
--verboseShow technical details (service endpoints, failure causes)
-C, --company-id <id>Company ID (overrides context default)