Referencesince 1.0.0
penv push
Send your local .env to the cloud, then delete the file
Send your local .env to the cloud, then delete the file.
Usage
penv push [--env <env>] [--org <org>] [--prune]Every command also takes the global options.
Flags
| Flag | What it does | Environment variable |
|---|---|---|
--env <env> | The environment to write to. | PENV_ENV |
--org <org> | The organisation that owns a project penv is about to create. | |
--prune | Delete cloud keys the schema no longer lists. 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. |
5 | no_credential | No credential is available and none can be obtained. |
6 | environment_refused | This identity may not read that environment. |
Related
penv pull: Write a .env file from the cloud.penv set: Save one value (typed hidden, never shown).penv login: Sign in.- Local and cloud modes