Manage your compliance program from the terminal—list controls, review tests,
upload evidence, and more—using the same Vanta API that powers your account.
Install · Authenticate · Quick start · Development
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/OpenVanta/cli/main/scripts/install.sh | bashOptional flags:
# Install a specific version
curl -fsSL https://raw.githubusercontent.com/OpenVanta/cli/main/scripts/install.sh | bash -s -- --version v0.2.0
# Install to a custom directory
curl -fsSL https://raw.githubusercontent.com/OpenVanta/cli/main/scripts/install.sh | bash -s -- --install-dir ~/.local/binConfirm the install:
vanta versionStandalone binaries are published for Linux, macOS, and Windows. macOS builds are signed and notarized.
vanta loginIn a terminal, vanta login defaults to signing in with your Vanta account in the browser (beta). To use an API client ID and secret, create an OAuth client in the Vanta developer portal and choose option 2. With piped input, vanta login goes directly to the client credentials prompts. Credentials are stored in the OS keychain when available (macOS Keychain or Windows Credential Manager), matching the previous Go CLI (com.vanta.cli / oauth). Your API base is saved to ~/.vanta/config.json.
To sign out, run vanta logout. It removes the saved credentials.
To sign in as yourself, press Enter or choose option 1 at the vanta login prompt. Use --browser to go directly to browser sign-in.
vanta login --browserApprove access in the browser window that opens. The CLI then calls the API as you, limited to what your Vanta role allows, and refreshes its token automatically. vanta logout also revokes the sign-in. If the browser can't reach the machine running the CLI (for example over SSH), add --no-open, open the printed URL yourself, and paste back the URL the browser was redirected to.
Browser sign-in is rolling out gradually and may not be enabled for your workspace yet. If sign-in fails with server_error, run vanta login and choose option 2 to use client credentials.
The CLI keeps one login at a time. Signing in with the browser replaces saved client credentials, and signing in with client credentials replaces (and revokes) a browser sign-in.
You can also pass credentials via environment variables or flags:
| Option | Flag | Environment variable |
|---|---|---|
| Client ID | --client-id |
VANTA_CLIENT_ID |
| Client secret | --client-secret |
VANTA_CLIENT_SECRET |
| OAuth scope | --scope |
VANTA_OAUTH_SCOPE |
| API base URL | --api-base |
VANTA_API_BASE |
Web app URL (--browser only) |
--web-base |
VANTA_WEB_BASE |
A client secret from a flag or environment variable always uses client credentials, even after a browser sign-in.
Default API base: https://api.vanta.com/v1. The API base must be one of the Vanta regions: https://api.vanta.com/v1, https://api.eu.vanta.com/v1, https://api.aus.vanta.com/v1 or https://api.vanta-gov.com/v1. Any other value is rejected before credentials are used.
Default web app URL: https://app.vanta.com
Default scope: vanta-api.all:read vanta-api.all:write
# List controls
vanta controls list --page-size 50
# Get a policy
vanta policies get --id code-of-conduct-bsi
# List controls for a framework
vanta frameworks list-controls --id soc2
# Find tests that need attention
vanta tests list --status-filter NEEDS_ATTENTION| Resource | Command |
|---|---|
| Controls | vanta controls |
| Policies | vanta policies |
| Documents | vanta documents |
| Tests | vanta tests |
| People | vanta people |
| Business units | vanta business-units |
| Issues | vanta issues |
| Personnel notification settings | vanta personnel-notification-settings |
| Program scopes | vanta program-scopes |
| Vendor assessment types | vanta vendor-assessment-types |
| Vendor risk attributes | vanta vendor-risk-attributes |
| Groups | vanta groups |
| Frameworks | vanta frameworks |
| Users | vanta users |
| Vulnerabilities | vanta vulnerabilities |
| Vulnerable assets | vanta vulnerable-assets |
| Vulnerability remediations | vanta vulnerability-remediations |
| Contracts | vanta contracts |
| Risk scenarios | vanta risk-scenarios |
| Monitored computers | vanta monitored-computers |
| Vendors | vanta vendors |
| Discovered vendors | vanta discovered-vendors |
| Integrations | vanta integrations |
| Event logs | vanta event-logs |
| Customer Trust accounts, questionnaires, exports, and tags | vanta customer-trust |
| Knowledge Base answers and resources | vanta knowledge-base |
| Trust Center configuration, content, access, and subscribers | vanta trust-centers |
Run vanta <resource> --help for the full list of actions on each resource.
| Flag | Description |
|---|---|
--dry-run |
Print the request without sending |
--pretty |
Pretty-print JSON output (on by default; --no-pretty prints compact JSON, also in agent mode) |
--verbose |
Log request details to stderr |
--agent-mode |
Optimize output for AI coding agents (TOON; auto-detected in known agent runtimes, --no-pretty switches back to JSON) |
The CLI periodically checks GitHub Releases for a newer version (cached for 24h in ~/.vanta/update-check.json) and prints a notice on stderr when one is available. Checks are skipped for dev builds, non-TTY stderr, CI, agent mode, or when VANTA_NO_UPDATE=1.
To upgrade:
curl -fsSL https://raw.githubusercontent.com/OpenVanta/cli/main/scripts/install.sh | bashRequires Node 22+ and pnpm 12. Bun is required to build standalone binaries.
pnpm install
pnpm generate # OpenAPI → src/generated
pnpm dev version
pnpm typecheck
pnpm test
pnpm build # generate + bundle for Node
VANTA_VERSION=0.2.0 pnpm build:binariesThe typed API client is generated from api-spec.json with @hey-api/openapi-ts.