Skip to content

vault login

Authenticate to a Vault and manage stored credentials.

Authenticate to a Vault. Without credential flags, opens a browser window for SSO login. With --access-token, --session-id, or --password, authenticates directly without a browser.

vault login [--dns <DNS>] [--username <USERNAME>] [--access-token] [--session-id] [--password]
OptionTypeRequiredDescription
--dns <DNS>stringRequired for --access-token, --session-id, and --passwordVault DNS (for example, myorg.veevavault.com)
--username <USERNAME>stringOptionalUsername or email. Seeds the SSO login form, or the username for basic auth
--access-tokenflagOptionalLog in with an API access token. The token is read from a hidden prompt or piped stdin
--session-idflagOptionalStore a pre-existing session ID. The value is read from a hidden prompt or piped stdin
--passwordflagOptionalLog in with a username and password. The password is read from a hidden prompt or piped stdin

This command also accepts the global options.

vault login --dns myorg.veevavault.com
vault login --dns myorg.veevavault.com --access-token

The CLI prompts for the token with echo disabled.

vault login --dns myorg.veevavault.com --username user@example.com --password

The CLI prompts for the password with echo disabled.


End the active session on the Vault side and remove stored local credentials and session token.

vault logout [<DNS>] [--all]
OptionTypeRequiredDescription
<DNS>stringOptionalVault DNS to log out of. If omitted, logs out of the active vault
--allflagOptionalLog out of every stored vault