EnvDoctor
ENV101+Complete User Guide
Recovery

Recovery paths: lost .env, wrong profile, stale example

How to restore a repo to known-good config state.

Step-by-step

  1. Archive current state to .env.bak.
  2. Delete data/index.db if corrupted.
  3. Copy .env.example; refill required secrets.
  4. Run envdoctor check; every issue should cite exact source path.
  5. Commit restored example; notify team.

When env changed without git

Diff against .env.example; roll forward only intentional changes; never silently merge.