CLI reference
Every clavis command, its flags, and examples you can copy. The same text is shown by clavis <command> --help. 129 commands in 11 groups.
New to Clavis?
Start with the quickstart: install the CLI, clavis login, clavis init, then clavis run npm run dev.
Get started
Sign in, link a folder to a project, and check who you are.
clavis loginSign in with a browser (device code)clavis logoutSign out and delete the saved tokenclavis whoamiShow the signed-in user and organizationsclavis initLink this directory to a projectclavis unlinkRemove the .clavis.yaml in this directoryclavis trust3 commandsTrust a server's self-signed certificate on this computerclavis doctorCheck this computer's Clavis setup and say how to fix problemsclavis promptPrint the linked project and environment for your shell promptRun and export
Give secrets to your app: run it with them, open a shell, write files, generate typed config, or share one value.
clavis runRun a command with secrets injected and output maskedclavis shellStart a subshell with secrets in the environmentclavis exportExport an environment's secretsclavis codegenGenerate typed config loaders from the project schemaclavis shareCreate a client-encrypted one-time share linkSecrets
Read, write, generate, version, roll back and override secrets.
Import and scan
Bring existing .env files and other secret managers in, and find secrets that leaked into code.
clavis importImport secrets from files or external providersclavis scanScan files for leaked Clavis tokens and secret valuesSchema and validation
Describe the keys an app needs, then check every environment against it.
clavis schema4 commandsManage the project secret schemaclavis checkValidate an environment against the project's secret schemaEnvironments
Create and compare environments, preview branches, freezes, and promotion.
Team and access
Members, machine identities, just-in-time access, and the audit log.
clavis members4 commandsInspect organization membersclavis identities3 commandsManage machine and workload identitiesclavis access7 commandsExplain, request, approve and review accessclavis audit1 commandsRead the organization audit logShared sets
Values shared by many projects, such as one Stripe key used by several apps.
Rotation, leases and syncs
Rotate secrets on a schedule, issue short-lived credentials, and push values to other platforms.
clavis rotation8 commandsSchedule and run secret rotationclavis lease7 commandsCreate and manage dynamic secret leasesclavis syncs7 commandsPush secrets to external systemsclavis tokens5 commandsManage org-wide platform tokens that syncs shareAI agents
Let coding agents use secrets through MCP without seeing their values.
clavis agents3 commandsManage AI agent identities and command allowlistsclavis mcpRun a Model Context Protocol server over stdioServer and administration
Run the server and look after it: first-run setup, password resets, backups, keys, upgrades.
clavis serverRun the Clavis serverclavis healthcheckCheck that the server on this machine is readyclavis setup-tokenPrint the one-time first-run setup tokenclavis admin10 commandsInstance administrationclavis healthShow organization health findingsclavis updateCheck for a new release and show how to upgradeclavis upgradeInstall the latest Clavis releaseclavis versionPrint version information