Docs
Referencesince 1.0.0-alpha.3

penv init

Read .env, write .env.schema, and keep .env out of the repository

Read .env, write .env.schema, and keep .env out of the repository.

Usage

penv init [--force] [--guards <guards>] [--no-guards] [--output <output>]

Every command also takes the global options.

Flags

FlagWhat it does
--forceOverwrite an existing .env.schema.
--guards <guards>Guard exactly these harnesses instead of the installed ones.
--no-guardsWrite no harness rules at all.
--output <output>Write the generated typed file here, relative to the repository root.

Exit codes

CodeNameWhat it means
0okThe command did what it says.
1errorSomething went wrong.
3validationThe schema or the values did not pass.