We're moving the community chat, join us on Discord

arc env

Read and write environment variables. This allows apps to centrally store sensitive configuration data, such as API keys, outside of the codebase in revision control.


arc env [testing|staging|production] {VARIABLE_NAME} {VARIABLE_VALUE}


It is imperative that the ARC_APP_SECRET environment variable be set to something secret - especially in your production environment! This secret is used to encode HTTP sessions if you use the @architect/functions runtime helpers.


Display environment variables for the current app.arc

arc env

Save an environment variable to the staging environment

arc env staging FOO myvalue

Protip: values that contain special characters like email addresses should be wrapped in double quotes

Remove an environment variable

arc env remove staging FOO

Reserved names