- Install radar
- Log in
- Run dotenvx
Install Radar
Install Radar.
npm install @dotenvx/dotenvx-radar --save
npx dotenvx-radar help
Log In
Log in to Radar – creating your account.
npx dotenvx-radar login
✔ logged in [username]
Run Dotenvx
Run Dotenvx with Radar installed.
Given your app – or an example app like the following:
// index.js
require('@dotenvx/dotenvx').config()
// or import '@dotenvx/dotenvx/config' // for esm
console.log(`Hello ${process.env.HELLO}`)
Run dotenvx like this:
$ node index.js
[[email protected]] 📡 radar active
[[email protected]] injecting env (1) from .env
Hello World
That's it! Your environment variables are auto-observed and backed up by Radar.