v0.1.0CLI
•1 min read

Run apps with your secrets from the terminal

CLISecurity
ApiVault CLI terminal interface and command execution
Run a process with API keys supplied as environment variables

The first release of the apivault CLI runs your application with secrets injected directly into its process environment, without writing a plaintext .env file to disk.

Shell
npm install -g apivault@0.1.0
apivault login
apivault run -- npm run dev
Note

This example installs the original release, which used the previous API domain. CLI v0.1.3 changed the default to apivault.tech. For current setup instructions, see the installation guide.

#Core features

  • Key management: apivault keys list, add, get, update, and delete.
  • Environment exports: apivault env export and apivault env restore when local .env files are explicitly needed.
  • Local configuration: apivault config get, set, and list for defaults in ~/.apivault/config.json.
  • Custom vault keys: supply a vault key for encrypted vaults that require one.

apivault run passes values to the child process without creating a plaintext .env file. The env export command explicitly writes an environment file; the child process can also write the values it receives.

Authentication tokens are stored in ~/.apivault/token.json, with 0600 permissions on Unix-like systems.

Learn more in the CLI documentation.