Logs into a specific instance using a personal access token from the GITLAB_TOKEN shell variable, which keeps the secret out of your shell history. The --hostname flag targets self-hosted GitLab instead of gitlab.com. Create the token in GitLab under Preferences and Access Tokens with the api scope.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.