Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glab-auth: add page #7612

Merged
merged 6 commits into from
Feb 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
glab-auth: Add page
  • Loading branch information
reinhart1010 committed Jan 5, 2022
commit 773543d2d0e6ee0327cff4d5c4a2c680bd144289
20 changes: 20 additions & 0 deletions pages/common/glab-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# glab auth

> Authenticate with a GitLab host from the command-line.
> More information: <https://glab.readthedocs.io/en/latest/auth/index.html#synopsis>.
reinhart1010 marked this conversation as resolved.
Show resolved Hide resolved

- Log in with interactive prompt:

`glab auth login`

- Log in with a token from standard input (created in https://gitlab.com/-/profile/personal_access_tokens):
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`echo {{your_token}} | glab auth login --stdin`
mfrw marked this conversation as resolved.
Show resolved Hide resolved

- Check if you are logged in:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`glab auth status`

- Log in with a specific GitLab instance:
reinhart1010 marked this conversation as resolved.
Show resolved Hide resolved

`glab auth login --hostname {{gitlab.example.com}}`