Penv Cloud
Start free
Docs
Referencesince 1.0.0

penv set

Save one value (typed hidden, never shown)

Save one value (typed hidden, never shown).

Usage

penv set [--env <env>] [--value <value>] <key>

Every command also takes the global options.

Arguments

ArgumentRequiredWhat it is
<key>yesThe key to write.

Flags

FlagWhat it doesEnvironment variable
--env <env>The environment to write to.PENV_ENV
--value <value>Refused: a value passed here lands in the shell history. Human only: an agent session cannot pass it.

Exit codes

CodeNameWhat it means
0okThe command did what it says.
1errorUnclassified failure. The message on stderr names the cause.
2authNot signed in, or we rejected the credential.
3validationThe schema or the values did not pass.
5no_credentialNo credential is available and none can be obtained.
6environment_refusedThis identity may not read that environment.
  • penv unset: Delete one value.
  • penv push: Send your local .env to the cloud, then delete the file.
  • penv reveal: Show one value; an AI agent needs your approval first.