Installation
The Vault CLI is a single binary. Install it using the install script for your platform.
macOS & Linux
Section link for macOS & LinuxRun the install script:
curl -fsSL https://download.veevavault.dev/cli/install.sh | bashThe 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.
Windows
Section link for WindowsRun the install script in PowerShell:
irm https://download.veevavault.dev/cli/install.ps1 | iexThe 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.
PATH Handling
Section link for PATH HandlingThe 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.
Download Failures
Section link for Download FailuresIf 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 ForbiddenThe 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.
Install Options
Section link for Install OptionsBoth 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 | iexSkip 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))) -YesFor edge cases where you can't use the install script, learn more about downloading the CLI binary directly for your platform.
Configuration Directory
Section link for Configuration DirectoryThe 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-cliwhenXDG_CONFIG_HOMEis set to an absolute path, and$HOME/.config/vault-cliotherwise. - On Windows,
veeva\vault-cli\configunder 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.
Verify the Installation
Section link for Verify the InstallationConfirm the CLI is on your PATH:
vault --versionYou should see the installed version and platform printed, for example:
vault CLI 26.2.4-715 (macos/aarch64)Upgrade
Section link for UpgradeRun vault upgrade to upgrade the CLI to the latest version in place.
Uninstall
Section link for UninstallTo remove the CLI binary, stored logins, and settings:
vault uninstallYou will be prompted to confirm. To skip the prompt in a non-interactive shell:
vault uninstall --yes