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.