nctl login git
nctl login git
Sign in to your git provider
nctl login git [flags]
Examples
# Login to Git provider (GitHub, GitLab, Bitbucket) using a token
nctl login git --provider github --username myuser --token ghp_xxx
# Login to GitLab with a custom domain and authentication token
nctl login git --provider gitlab --domain gitlab.example.com --username myuser --token glpat_xxx
# Login to Bitbucket using a username and token
nctl login git --provider bitbucket --username myuser --token bitbucket_xxx
# Login to a self-hosted GitLab instance with a domain
nctl login git --provider gitlab --domain gitlab.mycompany.com
# Login interactively to Git (prompt for username and token)
nctl login git --provider github
Options
--domain string custom domain for the VCS
-h, --help help for git
--provider string git provider (defaults to github) (default "github")
--token string git authentication token
--username string user id (email)
Options inherited from parent commands
-v, --v Level number for the log level verbosity
SEE ALSO
- nctl login - Provide authentication details to login