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.

  1. In the project menu, open Environment.
  2. Click Add setting.
  3. In Type, choose Variable or Secret. Use Secret for a password, token or key.
  4. Fill in the Name and the Value and select the Target environments.
  5. Click Add configuration to save.
  6. 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