Jump to content

Cli/ref/mw gitlab auth login

From mediawiki.org
< Cli‎ | ref

mw gitlab auth login

[edit]

Authenticate with a GitLab instance

Synopsis

[edit]

Authenticate with a GitLab instance. You can pass in a token on standard input by using --stdin. The minimum required scopes for the token are: api, write_repository.

mw gitlab auth login [flags]

Examples

[edit]
# start interactive setup
$ glab auth login
# authenticate against `gitlab.com` by reading the token from a file
$ glab auth login --stdin < myaccesstoken.txt
# authenticate with a self-hosted GitLab instance
$ glab auth login --hostname salsa.debian.org

Options

[edit]
  -h, --hostname string   The hostname of the GitLab instance to authenticate with
      --stdin             Read token from standard input
  -t, --token string      Your GitLab access token
      --use-keyring       Store token in your operating system's keyring

Options inherited from parent commands

[edit]
      --help             Help for this command
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

[edit]