Manage symlinks from a root file to multiple destinations.
Useful for monorepos that use a single .env file as a source of truth for many child projects.
In the root of your project:
- Create a
.env(or other named) file you want to symlink - Create a
.lenvfile with the destination locations to symlink to, such as:
project/a/.env
project/b/.env
- Execute
uv add --dev lenv-pyto install lenv (or with another package manager) - Execute
uv run lenv linkto create symlinks
Use the -help flag to see all usage instructions.