Skip to content

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.

Terminal window
$ reoclo env ls --app api
DATABASE_URL
REDIS_URL
SENTRY_DSN
LOG_LEVEL

Sets one or more environment variables. Existing keys are overwritten.

Terminal window
reoclo env set --app api DATABASE_URL=postgres://...
reoclo env set --app api LOG_LEVEL=debug FEATURE_X=on

For values that contain spaces or shell metacharacters, quote them or use --from-file:

Terminal window
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:

Terminal window
reoclo env set --app api LOG_LEVEL=info
reoclo apps deploy api

Removes a single environment variable.

Terminal window
reoclo env rm --app api OLD_FLAG

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.

CodeMeaning
0Success
1Network or server-side error
2Bad arguments (e.g. set without KEY=VAL)
3Authentication failure
4Read attempted via get
5App or key not found