Ops 📡

Sync

Sync .env files with dotenvx-ops.

  • Create project
  • Add .env.x file
  • Run sync

Create project

Go to /new/project and create your project.

ops.dotenvx.com

On the next screen you'll see a copy of your .env.x file.

ops.dotenvx.com

Add .env.x file

Add your .env.x file to your project's root.

.env.x

# motdotla/your-project/.env.x
DOTENVX_PROJECT_ID=prj_664c683dddf155a6480d524aa7a5e42d

# 1. Add this .env.x file to your project's root
# 2. Commit it safely to code
# 3. Sync with dotenvx-ops sync

The DOTENVX_PROJECT_ID uniquely identifies your project and lives inside your .env.x file.

Also add a .env file – if you haven't already.

.env

# .env
HELLO=World

Run sync

Finally, run dotenvx-ops sync.

$ dotenvx-ops sync
✔ synced [motdotla/your-project]

That's it! Your project's .env files have been synced.

ops.dotenvx.com