Referencesince 1.0.0-alpha.3
penv run
Validate, then run a command with the values in its environment only
Validate, then run a command with the values in its environment only.
Usage
penv run [--env <env>] [--no-mask] [command...]Every command also takes the global options.
Arguments
| Argument | Required | What it is |
|---|---|---|
[command...] | no | The command to run. Completed as an executable and its arguments. Takes more than one. |
Flags
| Flag | What it does | Environment variable |
|---|---|---|
--env <env> | The environment to read. | PENV_ENV |
--no-mask | Leave the child's output unmasked. 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 | Something went wrong. |
3 | validation | The schema or the values did not pass. |
5 | no_credential | No credential is available and none can be obtained. |
6 | environment_refused | This identity may not read that environment. |
Related
penv check: Report schema problems and missing values.penv reveal: Print one value; an agent session needs a person's approval.- Environment variables
- Local and cloud modes
- Coding agents