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
| Flag | What it does |
|---|---|
--force | Overwrite an existing .env.schema. |
--guards <guards> | Guard exactly these harnesses instead of the installed ones. |
--no-guards | Write no harness rules at all. |
--output <output> | Write the generated typed file here, relative to the repository root. |
Exit codes
| Code | Name | What it means |
|---|---|---|
0 | ok | The command did what it says. |
1 | error | Unclassified failure. The message on stderr names the cause. |
3 | validation | The schema or the values did not pass. |
Related
penv check: Find problems in .env.schema and missing values.penv gen: Write the typed file for your language (ts, py, go, rust, php, java, csharp).penv guard: Write the rules that keep AI tools out of .env.- The .env.schema format
- How penv works