How It Works
lazyenv treats .env.example as the contract and your secret store as the source of truth for values.
- Define keys in
.env.example. - Initialize a project (
lazyenv init) which writes.lazyenv/config.json. - Sync values to the store (
lazyenv sync). - Pull values locally (
lazyenv pull) when you need.envfiles. - Run commands with injected env (
lazyenv run).
Config layering (optional)
Section titled “Config layering (optional)”lazyenv loads config files from the current directory up to the repo root.
.lazyenv/config.jsoncan exist at multiple levels..lazyenv/config.local.jsonoverrides the sibling config and is intended to be git‑ignored.root: truein a config stops the upward search.
Folder mapping (monorepos)
Section titled “Folder mapping (monorepos)”Each .env.example file becomes a workspace folder mapping:
- local
path→ storesecretPath - keys can overlap across folders without collisions
See Workspace Folders for details.