Docs
Referencesince 1.0.0-alpha.3

CLI reference

Every penv command, grouped by what you are doing.

penv gets the right values into the right process at the right time. This reference documents penv 1.0.0-alpha.3.

Start with the global options, which every command takes.

First minute

Declare what the app needs, then run it.

CommandWhat it does
penv initRead .env, write .env.schema, and keep .env out of the repository
penv lsList keys, types and which ones have a value
penv checkReport schema problems and missing values
penv runValidate, then run a command with the values in its environment only

With a team

Values in the cloud instead of a file on one laptop.

CommandWhat it does
penv loginSign in with a device code; the credential goes to the OS keychain
penv logoutRemove the stored credential
penv pushMove local values to the cloud and delete .env
penv pullWrite a plain .env from the cloud
penv setWrite one value without echoing it
penv unsetRemove one value
penv machineMachine identities
penv machine enrollBind a server keypair from a one-time secret

Typed access

The schema, and the file your language reads it through.

CommandWhat it does
penv genWrite the typed file for a language target
penv schemaPrint the schema as JSON

Coding agents

What an agent may see, and what it has to ask for.

CommandWhat it does
penv guardWrite the harness rules that keep agents out of .env
penv hookRun as a harness hook; a payload it cannot read is refused
penv revealPrint one value; an agent session needs a person's approval

Distribution

Keeping the binary and the shell current.

CommandWhat it does
penv upgradeReplace this binary from the latest release
penv completionsPrint the shell completion script
penv helpPrint the command manifest