Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch between multiple accounts when using CLI #1767

Closed
johnnypea opened this issue Mar 4, 2020 · 9 comments
Closed

Switch between multiple accounts when using CLI #1767

johnnypea opened this issue Mar 4, 2020 · 9 comments

Comments

@johnnypea
Copy link

I would like to switch between multiple Sanity.io accounts.

Something like sanity switch ACCOUNT would be useful. We can store multiple login tokens and tag/name them.

It's not very practical to log in every time I need to work on different project.

@vicmeow
Copy link
Contributor

vicmeow commented Mar 5, 2020

Thank you for submitting! This is a good idea and definitely sounds like something that will improve the DX 👍 We'll look into it 😊

@milosmalic
Copy link

@vicbergquist Is there a way to change account at all? Like manually deleting it in some config and running init again to authenticate?

@milosmalic
Copy link

@vicbergquist Is there a way to change account at all? Like manually deleting it in some config and running init again to authenticate?

Found sanity login command, forget about the question :-)

@jnrebelo
Copy link

Hello 🖐
Any updates on this feature?

It would really help the developer flow being able to switch accounts faster or being able to have multiple accounts logged in.
Currently working on projects from multiple accounts is a pain 😅

Thanks in advance

@AyourElwazani97
Copy link

@milosmalic works for me thanks

@codingChewie
Copy link
Contributor

Ran across this while learning about Sanity and had an issue when trying to build a project in the CLI and was getting an error regarding not being added when running the command:

sanity start

and after clicking the URL: http://localhost:3333

In the terminal, after the global installation of:

npm install -g @sanity/cli

If you've performed the init command:

sanity init

and you want to use a different account, in the terminal you can logout:

sanity logout 

then log into your other account.

@rexxars rexxars removed the CLI label Dec 14, 2022
@RitaDias RitaDias removed the dx label Dec 15, 2022
@kmelve
Copy link
Member

kmelve commented Jan 11, 2023

Hi!

We are currently working on improving our workflows and follow-up on our open GitHub repository. In that work, we have decided to close most issues older than the release of Sanity Studio v3.

We value your feedback, so if this issue is still important to you and relevant for Sanity Studio v3, please search for relevant open issues. If you can’t find any, open a new one and link to relevant comments in this thread. For questions about how to do something, please post them in the slack community.

@kmelve kmelve closed this as completed Jan 11, 2023
@dardoschuster
Copy link

Hi
Have same problem want to use client sanity and when y run localhost:/3333 says not authorized but shows the client account that allows me to access from Chrome what happens ???
Thanks

@dardoschuster
Copy link

Sorry I am using Github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants