Skip to content

Installation

The Vault CLI is a single binary. Install it using the install script for your platform.

Run the install script:

curl -fsSL https://download.veevavault.dev/cli/install.sh | bash

The script prompts for an install directory. The default is /usr/local/bin if it exists and is writable, otherwise ~/.local/bin. If the directory is not on your PATH, the script prints the export PATH=... line to add to your shell profile.

The install script automatically selects the native binary for your platform. On Linux, it picks the ARM64 binary on ARM64 machines and the x86_64 binary otherwise. The Linux x86_64 binary is statically linked and runs on older distributions.

Run the install script in PowerShell:

irm https://download.veevavault.dev/cli/install.ps1 | iex

The default install directory is %LOCALAPPDATA%\VeevaCLI. The script adds the install directory to your user PATH. Restart your terminal after installing.

vault.exe does not require the Visual C++ Redistributable.

The script checks whether the install directory, or an equivalent %VAR% reference that expands to the same path, is already on the user PATH before appending it, so re-running the installer won't create duplicate entries. If it can't safely update PATH, it leaves PATH unchanged, prints Could not add <install_dir> to your PATH: the Path value has unsupported type <kind>., and exits 1. In that case, add the install directory to your PATH manually. Otherwise, open a new terminal, or restart the one you installed from, for the PATH change to take effect.

If the artifact download fails, install.ps1 prints the download URL and the cause, for example:

Failed to download the windows-x86_64 release artifact from <url>: HTTP 403 Forbidden

The cause is an HTTP status and reason phrase. When PowerShell reports no reason phrase, only the status prints, for example HTTP 599. For failures without an HTTP status, such as a refused or dropped connection, the cause is the underlying .NET exception type and message, for example System.Net.Sockets.SocketException: Connection refused.

Errors from install.ps1 always print as a single plain-text line to stderr, without PowerShell's usual At line: position information, CategoryInfo, or FullyQualifiedErrorId details, whether you run the script as a file or through irm | iex.

Both scripts support the following options.

Custom install directory: Set VAULT_INSTALL_DIR before running the script:

curl -fsSL https://download.veevavault.dev/cli/install.sh | VAULT_INSTALL_DIR=~/bin bash
$env:VAULT_INSTALL_DIR = "C:\Tools\vault"; irm https://download.veevavault.dev/cli/install.ps1 | iex

Skip the install directory prompt: Pass -y (macOS/Linux) or -Yes (Windows) to install to the default directory. On Windows, a non-interactive session installs to the default directory without prompting.

curl -fsSL https://download.veevavault.dev/cli/install.sh | bash -s -- -y
& ([scriptblock]::Create((irm https://download.veevavault.dev/cli/install.ps1))) -Yes

For edge cases where you can't use the install script, learn more about downloading the CLI binary directly for your platform.

The CLI resolves a configuration directory for storing your login credentials and settings:

  • On macOS, $HOME/Library/Application Support/com.veeva.vault-cli.
  • On Linux, $XDG_CONFIG_HOME/vault-cli when XDG_CONFIG_HOME is set to an absolute path, and $HOME/.config/vault-cli otherwise.
  • On Windows, veeva\vault-cli\config under your Roaming AppData folder (%APPDATA%).

When VAULT_CLI_CONFIG_DIR is set, it replaces the default on every platform. VAULT_CLI_HOME_DIR does not affect this path.

Confirm the CLI is on your PATH:

vault --version

You should see the installed version and platform printed, for example:

vault CLI 26.2.4-715 (macos/aarch64)

Run vault upgrade to upgrade the CLI to the latest version in place.

To remove the CLI binary, stored logins, and settings:

vault uninstall

You will be prompted to confirm. To skip the prompt in a non-interactive shell:

vault uninstall --yes