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
| 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 | Something went wrong. |
3 | validation | The schema or the values did not pass. |
Related
penv check: Report schema problems and missing values.penv gen: Write the typed file for a language target.penv guard: Write the harness rules that keep agents out of .env.- The .env.schema format
- How penv works