How can I set my tenant's environment tag using the deploy CLI?

Problem statement

How can I set my tenant’s environment tag using the deploy CLI?

Solution

It’s not possible to set the environment flag using the deploy CLI. The deploy CLI relies on the Management API which does not have an endpoint for updating the environment tag.

Moreover, the environment tag is not part of the settings accessible via /api/v2/tenant/settings, and the dashboard UI uses its own internal endpoint for updating it.

This is most likely deliberate given that when you update the tag in the dashboard you must review it and confirm.

For now, you must update the environment tag going to your Auth0 Support Dashboard.