reoclo env
reoclo env ls [options]reoclo env set [options] <KEY=VAL...>reoclo env rm [options] <key>reoclo env get [options] <key>All env subcommands operate on a single application. Pass --app <idOrSlug> to select it.
Lists the keys defined for an application. Values are write-only via the API and are not returned.
$ reoclo env ls --app apiDATABASE_URLREDIS_URLSENTRY_DSNLOG_LEVELset <KEY=VAL...>
Section titled “set <KEY=VAL...>”Sets one or more environment variables. Existing keys are overwritten.
reoclo env set --app api DATABASE_URL=postgres://...reoclo env set --app api LOG_LEVEL=debug FEATURE_X=onFor values that contain spaces or shell metacharacters, quote them or use --from-file:
reoclo env set --app api WELCOME_MSG='Hello, world'reoclo env set --app api --from-file .env.production(--from-file reads KEY=VALUE lines, ignoring comments and blank lines.)
A successful set does not redeploy the application. Trigger a deploy when you want the new values to take effect:
reoclo env set --app api LOG_LEVEL=inforeoclo apps deploy apirm <key>
Section titled “rm <key>”Removes a single environment variable.
reoclo env rm --app api OLD_FLAGget <key>
Section titled “get <key>”Always exits non-zero with a hint pointing to the dashboard. Values are write-only; reading them back is intentionally not supported via the API. View secrets in the dashboard’s Environment tab if you need to retrieve a value.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Network or server-side error |
| 2 | Bad arguments (e.g. set without KEY=VAL) |
| 3 | Authentication failure |
| 4 | Read attempted via get |
| 5 | App or key not found |
Related
Section titled “Related”reoclo apps deploy— apply env changes by redeploying