Monorepo Setup
lazyenv detects monorepo structure from .env.example files.
Folder Structure
Section titled “Folder Structure”lazyenv scans for .env.example files and creates corresponding secret paths:
my-monorepo/├── apps/│ ├── web/│ │ └── .env.example # → secret path: /apps/web│ ├── api/│ │ └── .env.example # → secret path: /apps/api│ └── admin/│ └── .env.example # → secret path: /apps/admin├── packages/│ └── shared/│ └── .env.example # → secret path: /packages/shared└── .env.example # → secret path: / (root)Auto‑detection
Section titled “Auto‑detection”When you run lazyenv init, it scans .env.example files, builds folder mappings, and writes .lazyenv/config.json.
Working with folders
Section titled “Working with folders”Sync all folders
Section titled “Sync all folders”lazyenv syncSync specific folder
Section titled “Sync specific folder”lazyenv sync --folder apps/webPull all folders
Section titled “Pull all folders”lazyenv pullPull specific folder
Section titled “Pull specific folder”lazyenv pull --folder apps/apiConfiguration
Section titled “Configuration”{ "projectId": "abc-123", "workspaceFolders": [ { "path": ".", "secretPath": "/", "envFile": ".env.example", "keys": ["DATABASE_URL"] }, { "path": "apps/web", "secretPath": "/apps/web", "envFile": "apps/web/.env.example", "keys": ["NEXT_PUBLIC_API_URL"] } ]}