Run apps with your secrets from the terminal

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.
npm install -g apivault@0.1.0 apivault login apivault run -- npm run dev
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, anddelete. - Environment exports:
apivault env exportandapivault env restorewhen local.envfiles are explicitly needed. - Local configuration:
apivault config get,set, andlistfor 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.