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

Feature Request: Multi-context authenticated actions. #1172

Closed
joshmanders opened this issue Oct 17, 2016 · 1 comment
Closed

Feature Request: Multi-context authenticated actions. #1172

joshmanders opened this issue Oct 17, 2016 · 1 comment
Labels

Comments

@joshmanders
Copy link

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

Only single user

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

When I am working on package, I often publish different ones under different accounts, in any given moment I may be building a package for internal usage, but abstract parts of it out into a package for general usage under a different name. Currently my company runs under one name, I have my own name, and another account for scoped public packages. Context switching between all these accounts using npm is cumbersome, and I have made a wrapper script around it to help, but I'd like to see this ability native in Yarn.

So add support for a global --as flag, that allows me to basically yarn login for many accounts, say yarn login --as joshmanders and then the credentials are saved for that alias, and I can do yarn login --as mycompany and then when I publish I can do yarn publish --access public --as mycompany but keep default account to joshmanders

Please mention your node.js, yarn and operating system version.

Node v6.8.1
Yarn v0.15.1
macOS v10.12 (16A323)

@gsklee
Copy link
Contributor

gsklee commented May 23, 2017

@bestander close

The scale of this feature request means that it needs to go through the proper RFC process.

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

No branches or pull requests

4 participants