W3cubDocs

/Yarn

yarn login

Store registry username and email.

yarn login

Running this command will prompt you for your username and email for the npm registry. It will not ask for your password. Later when you run a command that requires authentication such as yarn publish, you will have to enter your password to do so.

yarn login
yarn login vx.x.x
question npm username: my-username
question npm email: my-username@example.com
✨  Done in 6.03s.

Using yarn logout you can delete your username and email.

© 2016–2017 Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/cli/login