How do I set my site’s environment variables?
Who can: Owner, Administrator and Developer. The Viewer sees the list, without the values.
Your site’s environment variables are in the panel, on the project’s Environment screen.
- In the project menu, open Environment.
- Click Add setting.
- In Type, choose Variable or Secret. Use Secret for a password, token or key.
- Fill in the Name and the Value and select the Target environments.
- Click Add configuration to save.
- To change a setting, click Edit on its row. For a secret, the button is Rotate.
Changes take effect on the next deploy.
A secret value always shows masked and is not shown again after it is saved.
If the second command’s help shows --secret-key, replace CHAVE with the secret name and enter the value on one line at the hidden prompt. If your CLI version does not show the option, add the secret in the dashboard.
With the CLI:
uqbitz env list
uqbitz env set --help
uqbitz env set --secret-key CHAVE
uqbitz env unset CHAVE