#symlink #monorepo #env #wasi #env-file #file-source #cli

app lenv-rs

Manage symlinks from a root file to multiple destinations

2 releases

0.1.1 Oct 19, 2024
0.1.0 Oct 19, 2024

#446 in Configuration

Download history 253/week @ 2024-10-15 28/week @ 2024-10-22 7/week @ 2024-11-05

288 downloads per month

MIT license

730KB
91 lines

lenv-rs

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.

Usage

In the root of your project:

  1. Create a .env (or other named) file you want to symlink
  2. Create a .lenv file with the destination locations to symlink to, such as:
project/a/.env
project/b/.env
  1. Execute cargo install lenv-rs to install lenv
  2. Execute lenv link to create symlinks

Use the -help flag to see all usage instructions.

Dependencies

~33–46MB
~848K SLoC