Referencesince 1.0.0
penv check
Find problems in .env.schema and missing values
Find problems in .env.schema and missing values.
Usage
penv check [--env <env>] [--strict] [--pin-hosts] [key]Every command also takes the global options.
Arguments
| Argument | Required | What it is |
|---|---|---|
[key] | no | Check one key instead of all of them. |
Flags
| Flag | What it does | Environment variable |
|---|---|---|
--env <env> | The environment to check. | PENV_ENV |
--strict | Fail when code reads a variable .env.schema does not declare. | |
--pin-hosts | Pin the hosts each computed @hosts reaches in [hosts], printing the ones that changed. Human only: an agent session cannot pass it. |
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. |
2 | auth | Not signed in, or we rejected the credential. |
3 | validation | The schema or the values did not pass. |
6 | environment_refused | This identity may not read that environment. |
Related
penv ls: List your keys and show which ones have a value.penv init: Create .env.schema from your .env and keep .env out of git.- The .env.schema format