Store credentials and repository connection information.
Purpose
The scm login command
connects you to a repository and creates a set of stored credentials
that other scm subcommands can use when connecting
to that repository.
Synopsis
scm login [ -r | --repository-uri ] repository URI [ -u | --username ] user ID in repository [ -P | --password ] password for user ID in repository [ -n | --nickname ] nickname for this combination of user ID and repository
Options and arguments
- [ -c | --cache ] cache
the password on prompt
- The password is saved, even if you are prompted for a password.
- [ -n | --nickname ] nickname
for this combination of user ID and repository
- You can create a nickname that is associated with the credentials
stored by scm login. The nickname can be used by
any other scm subcommand that requires a repository specification
(-r or --repository-uri).
- [ -P | --password ] password for user ID in repository
- The password for the specified user ID in
the named repository. If this option is not included on the command
line, you are prompted for a password. If you specified a repository
URI or nickname for which you have stored credentials using the scm
login command, this option is ignored.
- [ -r | --repository-uri ] repository URI
- Specifies the repository in which to take
this action. If you have stored repository credentials using the scm
login command, you can use the nickname you supplied for
these stored credentials
- [ -u | --username ] user ID in repository
- Specifies a user ID that exists in the named
repository. If you specified a repository URI or nickname for which
you have stored credentials using the scm login command,
this option is ignored.
Examples
Connect to repository https://jazzhost.example.com:9443/jazz/
and create stored credentials with a nickname of jazzhost:
C:\>scm login -r https://jazzhost.example.com:9443/jazz/ -u admin -P N87fX03z -n jazzhost
Logged in to https://jazzhost.example.com:9443/jazz/