gtl env connect glab
Parent command: gtl env connect.
Add or update the .envrc GitLab block for glab. By default this sets GITLAB_HOST and unsets inherited token overrides so glab uses its stored credential for that host.
Aliases
gitlab
Usage
bash
gtl env connect glab <account> [flags]Examples
bash
gtl env connect glab work-glab --host gitlab.com
gtl env connect glab bot --host gitlab.com --gitlab-token-command 'security find-generic-password -w -s gitlab-bot'
gtl env connect glab work-glab --set-gitFull Help
text
Add or update the .envrc GitLab block for glab. By default this sets GITLAB_HOST and unsets inherited token overrides so glab uses its stored credential for that host.
Usage:
gtl env connect glab <account> [flags]
Aliases:
glab, gitlab
Examples:
gtl env connect glab work-glab --host gitlab.com
gtl env connect glab bot --host gitlab.com --gitlab-token-command 'security find-generic-password -w -s gitlab-bot'
gtl env connect glab work-glab --set-git
Flags:
--allow-new-account Skip current glab account validation
--git-email string Git user.email to set locally with --set-git (defaults to GitLab commit email/public email)
--git-name string Git user.name to set locally with --set-git (defaults to GitLab name/username)
--gitlab-token-command string Shell command that prints the selected GitLab token for GITLAB_TOKEN
-h, --help help for glab
--host string GitLab host (default: gitlab.com) (default "gitlab.com")
--set-git Also set local Git commit identity from the selected GitLab account