Penv Cloud
Start free
Docs
Referencesince 1.0.0

penv init

Create .env.schema from your .env and keep .env out of git

Create .env.schema from your .env and keep .env out of git.

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.
1errorUnclassified failure. The message on stderr names the cause.
3validationThe schema or the values did not pass.