Advanced

dotenvx genexample

Generate a .env.example file from your current .env file contents.

$ echo "HELLO=World" > .env

$ dotenvx genexample
✔ updated .env.example (1)

.env.example

# .env.example
HELLO=""