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.
In the commands, replace CHAVE and valor with your own.
With the CLI:
uqbitz env list
uqbitz env set CHAVE=valor --secret
uqbitz env unset CHAVE