dotenvx

a better dotenv–from the creator of `dotenv`

README

dotenvx

a better dotenv–from the creator of [dotenv](https://github.com/motdotla/dotenv).

run anywhere (cross-platform)
multi-environment
encrypted envs

Quickstart


Install and use it in code just like dotenv.

  1. ```sh
  2. npm install @dotenvx/dotenvx --save
  3. ```
  1. ```js
  2. // index.js
  3. require('@dotenvx/dotenvx').config()

  4. console.log(`Hello ${process.env.HELLO}`)
  5. ```

or install globally - unlocks dotenv for any language, framework, or platform!

with brew 🍺


  1. ```sh
  2. brew install dotenvx/brew/dotenvx
  3. dotenvx help
  4. ```

with curl 🌐


  1. ```sh
  2. curl -sfS https://dotenvx.sh | sh
  3. dotenvx help
  4. ```

with docker 🐳


  1. ```sh
  2. docker run -it --rm -v $(pwd):/app dotenv/dotenvx help
  3. ```

docker pulls

or with github releases 🐙


  1. ```sh
  2. curl -L -o dotenvx.tar.gz "https://github.com/dotenvx/dotenvx/releases/latest/download/dotenvx-$(uname -s)-$(uname -m).tar.gz"
  3. tar -xzf dotenvx.tar.gz
  4. ./dotenvx help
  5. ```

github releases

includes homebrew installs

Run Anywhere


  1. ```sh
  2. $ echo "HELLO=World" > .env
  3. $ echo "console.log('Hello ' + process.env.HELLO)" > index.js

  4. $ node index.js
  5. Hello undefined # without dotenvx

  6. $ dotenvx run -- node index.js
  7. Hello World # with dotenvx
  8. > :-D
  9. ```