Block environment variables
Log in to add to favouritesPage last updated 17 August 2026
Environment variables let you provide configuration values, such as API endpoints or feature flags, to a Block's container at runtime, without needing to rebuild or redeploy the container image.
If a value is sensitive, such as an API key or credential, mark it as Secret when you add it, so it can't be viewed again once saved.
View environment variables
- Select Blocks in the sidebar to open the Blocks listing screen.
- Press on the Block you want to view. The Blocks version listing will be displayed.
- Select More actions in the top-right corner.
- Select Manage environment variables.
The environment variables screen lists each variable's name, value, status, and who last modified it and when.
Secret values are masked in the list and shown with a SECRET label instead of the value.
Environment variable status
Each variable shows one of the following statuses:
- New – the variable has been added but not yet applied to the container.
- Modified – the variable's value has changed but not yet been applied to the container.
- Applied – the variable matches what's currently running in the container.
Add an environment variable
- Select Add variable in the top-right corner.
- Enter a Name of up to 64 characters. Names can only contain letters, numbers, and underscores, and can't start with a number.
- Enter a Value for the variable.
- To hide the value once it's saved, turn on Secret.
- Select Add variable to save it.
Edit an environment variable
- Select ⋮ next to the variable, then select Edit.
- Enter the new Value.
- Select Save value.
The variable's name can't be changed once it's created.
Delete an environment variable
- Select ⋮ next to the variable, then select Delete.
- Select Delete variable to confirm, or Cancel to keep it.
Apply changes
Environment variable changes aren't applied to the container automatically. If there are changes waiting to be published, a message appears above the list, for example "You have 3 unapplied changes. Apply them to update running containers."
Select Apply changes to update the container and deploy the new values.