Auth0 CLI Does Not List All Tenants - Failed to Find Tenant

Problem statement

The Auth0 CLI doesn’t list all my tenants. When I try to switch to another tenant via auth0 tenants use, I get the error failed to find tenant.

Solution

The Auth0-CLI maintains a local copy of tenants that you have authenticated against. When you list tenants then this is the list that is queried.

To get access to another tenant, first authenticate against it via auth0 login and select it from the list of available tenants (this should list all the tenants you have access to). This tenant will then be stored locally and auth0 tenants list will then show it. The list tenants command shows the list of authenticated tenants as opposed to all tenants you may have access to.

Reference Materials