- Centralized management — Define values once; reference them anywhere in the app.
- Secure storage — Sensitive values can be encrypted and hidden in the UI.
- Environment-specific values — Override defaults per deployment environment.
View Environment Variables
Go to Settings > Variables to see all variables defined for the app.Create an Environment Variable
- Go to Settings > Variables.
- Click + New Variable.
-
Fill in the following fields:
- Click Create.
Edit an Environment Variable
- In the Variables list, open the options menu for the variable.
- Select Edit.
- Update the fields as needed.
- Click Save.
Delete an Environment Variable
Deleting a variable removes it permanently. The Platform doesn’t resolve the references to the deleted variable. To delete, open the options menu for the variable, and select Delete.To remove a variable associated with a namespace, remove the namespace first.
Namespaces
A namespace is a logical group for organizing environment variables. Namespaces prevent naming conflicts and allow different modules to use variables with the same name independently. A Default namespace is available out of the box for every app. New variables are automatically assigned to the Default namespace. You can create and assign custom namespaces when needed.Create and Manage a Namespace
- Click Manage Namespaces and select + Create Namespace.
-
Fill in the following fields:
- Click Create.
You can’t delete a namespace that’s associated with a tool. You must remove all variables within the namespace to delete the namespace.
Access Environment Variables in Tools
To use an environment variable in a tool, the variable must belong to a namespace associated with that tool.- Go to the tool. Click Options > Manage Namespaces.
- Associate the relevant namespace and click Save.
- Reference the variable in a script using the format
env.<variable-name>.envis a reserved keyword. - To reference the variable in other fields such as prompts or parameters, use the format
{{env.<variable-name>}}.