Install

Use dotenvx from the command line or directly in your code.

CLI

curl -sfS https://dotenvx.sh | sh

NPM

npm install @dotenvx/dotenvx

Windows

winget install dotenvx

Brew

brew tap dotenvx/brew
brew trust dotenvx/brew
brew install dotenvx

GitHub Releases

curl -L -o dotenvx.tar.gz "https://github.com/dotenvx/dotenvx/releases/latest/download/dotenvx-$(uname -s)-$(uname -m).tar.gz"
tar -xzf dotenvx.tar.gz
./dotenvx help

Docker

docker run --rm -v "$(pwd):/app" dotenv/dotenvx help

Standalone

curl -sfS --proto '=https' "https://dotenvx.sh/$(uname)/$(uname -m).tgz" | tar xz
sudo install -m 755 dotenvx /usr/local/bin
dotenvx --version

To pin a version, append ?version=vVERSION to the download URL, replacing VERSION with your desired release number. The install command puts dotenvx on your PATH at /usr/local/bin.

Node.js

npm install @dotenvx/dotenvx

Ruby

gem install dotenvx

Python

pip install python-dotenvx
Other methods

NPM global

npm install --global @dotenvx/dotenvx

NPX

npx @dotenvx/dotenvx --version

Wget

wget -qO- https://dotenvx.sh | sh

For usage, follow the Node.js guide. Deploying on Heroku? See the Heroku guide.