dotenv-vault

Documentation

The secrets manager for .env files – from the same people that pioneered dotenv.

Getting Started

Benefit immediately. Run the push command to sync your .env file right now.

# npx is likely already installed on your machine
npx dotenv-vault@latest push

Languages

Node.js

Use .env.vault with Node.js

Node.js Guides

Python

Use .env.vault with Python

Python Guides

Ruby

Use .env.vault with Ruby

Ruby Guides

Go

Use .env.vault with Go

Go Guides

PHP

Use .env.vault with PHP

PHP Guides

Rust

Use .env.vault with Rust

Rust Guides

Frameworks

Angular

Deploy an Angular App to Vercel

Read guide

Astro

Deploy an Astro.js App to Netlify

Read guide

Express.js

Use .env.vault with Express.js

Express Guides

Gatsby.js

Use .env.vault with Gatsby.js

Gatsby Guides

Nest.js

Use .env.vault with Nest.js

Read guide

Next.js

Use .env.vault with Next.js

Next.js Guides

Nuxt.js

Use .env.vault with Nuxt.js

Nuxt.js Guides

PM2

Use .env.vault with PM2

Read guide

Remix

Use .env.vault with Remix

Remix Guides

Serverless

Deploy a Serverless App to AWS Lambda

Read guide

SvelteKit

Deploy a SvelteKit App to Vercel

Read guide

Turborepo

Deploy a Turborepo App to Vercel

Read guide

Vite

Deploy Vite App to Vercel

Read guide

FastApi

Deploy a FastApi App to Heroku

Read guide

Flask

Deploy a Flask App to Heroku

Read guide

Ruby on Rails

Use .env.vault with Ruby on Rails

Rails Guides

Sinatra

Deploy a Sinatra App to Heroku

Read guide

Laravel

Use .env.vault with Laravel

Laravel Guides

Rocket

Use .env.vault with Rocket

Read guide

Platforms

AWS Lambda

Use .env.vault with AWS Lambda

AWS Lambda Guides

Cloud66

Deploy a Node.js App to Cloud66

Read guide

Digital Ocean

Deploy a Node.js App to Digital Ocean

Read guide

Docker

Use .env.vault with Docker & Docker Compose

Docker Guides

Edgio

Deploy a Nuxt.js App to Edgio

Read guide

Fly

Use .env.vault with Fly.io

Fly.io Guides

Gatsby Edge Network

Deploy a Gatsby.js App to Gatsby Edge Network

Read guide

Heroku

Use .env.vault with Heroku

Heroku Guides

Kamal

Use .env.vault with Kamal

Kamal Guides

Laravel Forge

Use .env.vault with Laravel Forge

Laravel Forge Guides

Netlify

Use .env.vault with Netlify

Netlify Guides

Northflank

Deploy a Next.js App to Northflank

Read guide

Railway

Deploy a Node.js App to Railway

Read guide

Render

Deploy a Node.js App to Render

Read guide

Vercel

Use .env.vault with Vercel

Vercel Guides

CI/CD

AWS Beanstalk

CI/CD in Node.js with AWS Beanstalk

Read guide

Bitbucket

CI/CD in Node.js with Bitbucket

Read guide

Buddy

CI/CD in Node.js with Buddy

Read guide

CircleCI

Use .env.vault with CircleCI

CircleCI Guides

Dagger

CI/CD in Node.js with Dagger

Read guide

GitHub Actions

Use .env.vault with GitHub Actions

GitHub Actions Guides

Gitlab CI/CD

CI/CD in Node.js with Gitlab CI

Read guide

Google Cloud Build

Use .env.vault with Google Cloud Build

Cloud Build Guides

Jenkins

CI/CD in Node.js with Jenkins

Read guide

Pulumi

CI/CD in Node.js with Pulumi

Read guide

Travis CI

CI/CD in Node.js with Travis CI

Read guide

Concepts

.env file

Learn about the .env file and how it secures your secrets for local development.

.env.vault file

Learn about the .env.vault file – how it is generated, how it securely holds secrets, and you can deploy more safely than alternative solutions with it.

.env.me credential

Learn about the message model and how to create, retrieve, update, delete, and list messages.

DOTENV_KEY

Learn about the DOTENV_KEY and how it decrypts the .env.vault to inject your secrets just-in-time to your application.