# Access multiple tenants from Auth0 CLI login

**URL:** <https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837>\
**Category:** Get Help\
**Tags:** tenants, management-api\
**Created:** [January 8, 2025, 1:02am UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837 "2025-01-08T01:02:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 8, 2025, 1:02am UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/1 "2025-01-08T01:02:35Z")

</div>

I am starting to use Auth0 CLI and it is generally working nicely, but I cannot choose a tenant when I login (auth0 login). It always defaults to the same tenant (which happens not to be our production tenant).

If I specify --domain on the auth0 login command, I end up with an “Activation Denied” error in the browser after confirming the code, etc.

Has anyone else run into this issue and how did you resolve it?

---

<div class="post-metadata">

**Author:** ![vigneshSivasamy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vigneshsivasamy/32/60008_2.png) [@vigneshSivasamy](https://community.auth0.com/u/vigneshSivasamy)\
**Post date:** [January 9, 2025, 2:10pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/3 "2025-01-09T14:10:56Z")

</div>

Hi,

Are you using a private cloud or a public cloud? I am encountering the same issue in the private cloud, where we can only log in to one tenant at a time using the client credentials method (such as domain Client ID and secret). If it’s a public cloud, I can log in as a user and access multiple tenants without any issues.

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 9, 2025, 8:22pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/4 "2025-01-09T20:22:31Z")

</div>

Hmm. We are public cloud.

When I use the “auth0 login” command (MacOS, terminal shell window) it logs in fine (as user) but always goes to our non-production tenant. There is no tenant choice dropdown available in the browser.

If I try to use “auth0 login --domain ” to login as user to a specific tenant, then that is when I end up with the “Activation Denied” page in the browser.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 10, 2025, 9:32pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/5 "2025-01-10T21:32:09Z")

</div>

Hi @timc

Welcome to the Auth0 Community!

Thank you for posting your question. I couldn’t reproduce this issue on my end, but I found this GitHub issue that may be a good hint → [unable to login to a different tenant · Issue #1003 · auth0/auth0-cli · GitHub](https://github.com/auth0/auth0-cli/issues/1003). Can you try to reinstall your package or check if you are using the latest version? In terms of switching between default tenants, you can use the `auth0 tenants use [tenant_name]` command or simply `auth0 tenants use` and pick the tenant from the dropdown. Also you can try to clear your browser cache and try to re-login.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![vigneshSivasamy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vigneshsivasamy/32/60008_2.png) [@vigneshSivasamy](https://community.auth0.com/u/vigneshSivasamy)\
**Post date:** [January 11, 2025, 3:17pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/6 "2025-01-11T15:17:17Z")

</div>

Not Sure if it is resolved if not use below commend. You can switch tenant by using this commend.

> auth0 tenants use [tenantdomain.us.auth0.com](http://tenantdomain.us.auth0.com)

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 11, 2025, 3:55pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/7 "2025-01-11T15:55:07Z")

</div>

Sorry, but the “auth0 tenants use” command doesn’t work for me because the “auth0 tenants list” command only lists the one tenant that I’m logged in to.

Also, clearing the browser cache for auth0 did not help either.

Here is what I do:

1. In MacOS terminal session, type “auth0 login”
2. Choose “as a user”
3. Press enter to open browser to log in
4. In browser (Safari), I see a “Device Confirmation” window
5. I click “Confirm” on the device confirmation window
6. I see an “App Authorization” window - there is a long list of things the app will have access to, but there is no drop down to choose from available tenants
7. I click “Accept”
8. I see a “Congratulations” browser window
9. In the terminal session, it says “Successfully logged in” and shows “Tenant: release-…”
10. “auth0 tenants list” shows only the one tenant that I am logged into

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 11, 2025, 3:58pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/8 "2025-01-11T15:58:09Z")

</div>

This is NOT solved. How do I unsolve my topic?

The github issue linked to only shows that somebody cloned the repo and ran it that way. Do I really have to do that?

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 11, 2025, 4:00pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/9 "2025-01-11T16:00:16Z")

</div>

I log in to auth0 in the browser with Google SSO, in case that matters.

---

<div class="post-metadata">

**Author:** ![vigneshSivasamy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vigneshsivasamy/32/60008_2.png) [@vigneshSivasamy](https://community.auth0.com/u/vigneshSivasamy)\
**Post date:** [January 11, 2025, 4:04pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/10 "2025-01-11T16:04:14Z")

</div>

There must be a dropdown on point number 6. I have attached a sample image from when I am logged in. You have access to both tenants in the same email, correct? Check my attached image.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/3/434020970f6893c4e3fd70ebf655ba80bfb91bbe.png)

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 11, 2025, 4:10pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/11 "2025-01-11T16:10:25Z")

</div>

That is my problem, there is no dropdown.

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 11, 2025, 4:11pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/12 "2025-01-11T16:11:46Z")

</div>

Here is my screen shot:

 ![Screenshot 2025-01-11 at 9.11.02 AM](https://global.discourse-cdn.com/auth0/original/3X/d/f/dfe38a8cb439038f66130539c20815def38030fe.png)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 15, 2025, 5:09pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/13 "2025-01-15T17:09:46Z")

</div>

Hi Folks,

To solve the issue from the thread, you, as a tenant member, need to have admin privileges to access the tenant settings from the Auth0 CLI.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![timc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/timc/32/70088_2.png) [@timc](https://community.auth0.com/u/timc)\
**Post date:** [January 15, 2025, 6:05pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/14 "2025-01-15T18:05:56Z")

</div>

Thank you, Dawid, for your investigation and response.

I don’t need to access tenant settings, though, I just want to be able to do the same things in the production tenant from the Auth0 CLI that I can already do in the Auth0 Dashboard - examine our users, create/delete users, reset MFA for our users, etc.

If that is not possible without Admin role/privilege in the production tenant, then I will see if I can get that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 29, 2025, 6:06pm UTC](https://community.auth0.com/t/access-multiple-tenants-from-auth0-cli-login/167837/15 "2025-01-29T18:06:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
