Installation

Get genesis-env installed and ready to use in your project.

Global install (recommended)

From any directory:

bash
npm i -g genesis-env

From your project root (where .env.template will live):

bash
genv init
# edit .env.template
genv
genv validate

genesis-env is the long-form alias and still works.

Local project dependency

If you prefer a project-scoped install:

bash
npm i genesis-env

Run genv from the project root after install.

Verify installation

bash
genv --version

You should see 1.2.2 printed to your terminal.

Or run without installing: npx genesis-env

Next steps

  • Read the Commands reference for init, generate, validate, and flags.
  • Try the Playground to experiment with templates in the browser.
  • See Templates & .env for how template files relate to your local .env.