Skip to content

tyhopp/lenv

Repository files navigation

lenv

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.

Installation

Download precompiled binaries from Releases.

Ports for various programming languages are available in lenv-ports:

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 lenv link to create symlinks

Use the -help flag to see all usage instructions.

WASI binary execution

The WebAssembly System Interface (WASI) binary can be executed with the Wasmtime runtime CLI with this command structure:

wasmtime --wasi cli --dir /absolute/path/to/project lenv-wasip1.wasm