Other options to install the GitLab CLI
These installation instructions are either not officially supported by GitLab, or are maintained by the community.
mise-en-place
To manage a glab installation with mise:
Add the following to the
[tools]section of amiseconfiguration file:tomlglab = "latest"Run
mise install.
macOS
- Homebrew (officially supported)
- Install with:
brew install glab - Update with:
brew upgrade glab
- Install with:
- MacPorts:
- Install with:
sudo port install glab - Update with:
sudo port selfupdate && sudo port upgrade glab
- Install with:
- ASDF tool version manager:
- Install with:
asdf plugin add glab; asdf install glab latest; asdf global glab latest
- Install with:
Windows
- Homebrew (through Windows Subsystem for Linux) (officially supported)
- Install with:
brew install glab - Update with:
brew upgrade glab
- Install with:
- WinGet
- Install with:
winget install glab.glab - Update with:
winget install glab.glab
- Install with:
- Chocolatey
- Install with:
choco install glab - Update with:
choco upgrade glab
- Install with:
- scoop
- Install with:
scoop install glab - Update with:
scoop update glab
- Install with:
- ASDF tool version manager:
- Requires Windows Subsystem for Linux (WSL).
- Install with:
asdf plugin add glab; asdf install glab latest; asdf global glab latest
- Download an EXE installer or the
glab.exebinary from the releases page
Linux
- Download prebuilt binaries from the releases page
Homebrew
Installing from Homebrew is the officially supported installation method for Linux.
- Install with:
brew install glab - Update with:
brew upgrade glab
ASDF
To install with the ASDF tool version manager, run these commands:
asdf plugin add glab; asdf install glab latest; asdf global glab latestSnapcraft
To install glab from the Snap Store:
- Make sure you have snap installed on your Linux distribution.
- For the latest stable release:
sudo snap install glab - For the latest edge release (updated on every commit to
main):sudo snap install --edge glab - Grant
glabaccess to SSH keys:sudo snap connect glab:ssh-keys - Grant
glabaccess to the OS keyring for encrypted credential storage:sudo snap connect glab:password-manager-service. Without this connection,glab auth loginfalls back to plaintext storage. See credential storage.

Arch Linux
For Arch Linux, glab is available:
- From the
extra/glabpackage. - By downloading and installing an archive from the releases page.
- From the Snap Store, if snap is installed.
- Installing with the package manager:
pacman -S glab
Alpine Linux
glab is available on the Alpine Community Repository as glab.
When installing, use --no-cache so no apk update is required:
apk add --no-cache glabInstall a pinned version from edge
To ensure that by default edge is used to get the latest updates. We need the edge repository in /etc/apk/repositories.
Afterwards you can install it with apk add --no-cache glab@edge
We use --no-cache so an apk update is not required.
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
apk add --no-cache glab@edgeAlpine Linux Docker-way
Use edge directly
FROM alpine:3.13
RUN apk add --no-cache glabFetching latest glab version from edge
FROM alpine:3.13
RUN echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache glab@edgeFedora
Fedora users can find glab as glab in the official repositories.
Install it with the command dnf install glab.
Nix/NixOS
Nix (NixOS) users can install from nixpkgs with the command nix-env -iA nixos.glab.
WakeMeOps (Debian/Ubuntu)
glab also exists in the WakeMeOps repository:
# Add WakeMeOps repository
curl -sSL "https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository" | sudo bash
# Install glab
sudo apt install glabSpack
- To install:
spack install glab. - To update:
spack uninstall glab && spack install glab
Docker
A Docker image for glab is available at gitlab/glab:
docker pull gitlab/glabGitLab CI/CD
To use glab in a CI/CD pipeline, you must set the entrypoint of the image to the glab executable itself. For more information, see the GitLab documentation for Override the entrypoint of an image. An example .gitlab-ci.yml:
Example .gitlab-ci.yml:
example:
stage: test
image:
name: "gitlab/glab"
entrypoint: [""]
script:
- glab --versionShell completions
If your shell is not supported by glab completion, you can use Carapace-bin to get completions for glab and other CLI tools. To set up completions for your shell, follow the Carapace-bin installation instructions.