Ops 📡

Basics

Learn the basics of dotenvx-ops in just a few minutes.

npm install @dotenvx/dotenvx-ops --save
npx dotenvx-ops help
  • Install ops
  • Log in
  • Run dotenvx

Install Ops

Install Ops.

npm install @dotenvx/dotenvx-ops --save
npx dotenvx-ops help

Log In

Log in to Ops – creating your account.

npx dotenvx-ops login
✔ logged in [username]

Run Dotenvx

Run Dotenvx with Ops 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 Ops radar feature.