Difference between revisions of "Glab auth login"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[gh auth login]]
+
  [[glab auth login]]
 
  ? What GitLab instance do you want to log into? gitlab.com
 
  ? What GitLab instance do you want to log into? gitlab.com
 
  - Logging into gitlab.com  
 
  - Logging into gitlab.com  
Line 15: Line 15:
 
  ✓ Logged in as YOUR_USERNAME
 
  ✓ Logged in as YOUR_USERNAME
  
 +
 +
 +
error using api: GET https://your.domain.com/api/v4/user: 401 (Message: 401 [[Unauthorized]])
 +
 +
 +
[[glab repo list]]
  
 
== See also ==
 
== See also ==

Latest revision as of 15:54, 23 January 2023

glab auth login
? What GitLab instance do you want to log into? gitlab.com
- Logging into gitlab.com 

Tip: you can generate a Personal Access Token here https://gitlab.com/-/profile/personal_access_tokens
The minimum required scopes are 'api' and 'write_repository'.
? Paste your authentication token: **************************
? Choose default git protocol HTTPS
? Authenticate Git with your GitLab credentials? Yes
- glab config set -h gitlab.com git_protocol https
✓ Configured git protocol
- glab config set -h gitlab.com api_protocol https 
✓ Configured API protocol
✓ Logged in as YOUR_USERNAME


error using api: GET https://your.domain.com/api/v4/user: 401 (Message: 401 Unauthorized)


glab repo list

See also[edit]

Advertising: