- Download an EXE installer or the `glab.exe` binary from the [releases page](https://gitlab.com/gitlab-org/cli/-/releases)
### Linux
- Download prebuilt binaries from the [releases page](https://gitlab.com/gitlab-org/cli/-/releases)
#### Homebrew
Installing from Homebrew is the officially supported installation method for Linux.
Homebrew is the officially supported method for macOS, Linux, and Windows (through [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install))
- Homebrew
- Install with: `brew install glab`
- Update with: `brew upgrade glab`
#### Snapcraft ([out of date](https://gitlab.com/gitlab-org/cli/-/issues/1127))
To install `glab` from the [Snap Store](https://snapcraft.io/glab):
1. Make sure you have [snap installed](https://snapcraft.io/docs/installing-snapd) on your Linux distribution.
1. Install the package: `sudo snap install --edge glab`
1. Grant `glab` access to SSH keys: `sudo snap connect glab:ssh-keys`
[](https://snapcraft.io/glab)
#### Arch Linux
For Arch Linux, `glab` is available:
- From the [`community/glab`](https://archlinux.org/packages/community/x86_64/glab/) package.
- By downloading and installing an archive from the
RUN echo"@edge http://dl-cdn.alpinelinux.org/alpine/edge/community">> /etc/apk/repositories
RUN apk add --no-cache glab@edge
```
#### Nix/NixOS
Nix (NixOS) users can install from [nixpkgs](https://search.nixos.org/packages?channel=unstable&show=glab&from=0&size=30&sort=relevance&query=glab) with the command `nix-env -iA nixos.glab`.
#### MPR (Debian/Ubuntu)
`glab` is available inside the [makedeb package repository](https://mpr.makedeb.org/packages/glab). To install, run the following:
```shell
git clone 'https://mpr.makedeb.org/glab'
cd glab/
makedeb -si
```
##### Prebuilt-MPR
The above method downloads glab from source and builds it before packaging it into a `.deb` package. If you don't want to compile or just want a prebuilt package, you can also install glab from the Prebuilt-MPR:
1. Set up [the Prebuilt-MPR on your system](https://docs.makedeb.org/prebuilt-mpr/getting-started/#setting-up-the-repository).
1. Install with the command `sudo apt install glab`.
#### Spack
### Other installation methods
- To install: `spack install glab`.
- To update: `spack uninstall glab && spack install glab`
Other options to install the GitLab CLI that may not be officially support or are maintained by the community are [also available](docs/installation_options.md)
info:To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
# Other options to install the GitLab CLI
These installation instructions are either not officially supported by GitLab, or
are maintained by the community.
## Table of contents
-[macOS](#macos)
-[Windows](#windows)
-[Linux](#linux)
-[Homebrew](#homebrew)
-[Snapcraft (currently out of date)](#snapcraft)
-[Arch Linux](#arch-linux)
-[Alpine Linux](#alpine-linux)
-[Install a pinned version from edge](#install-a-pinned-version-from-edge)
-[Alpine Linux Docker-way](#alpine-linux-docker-way)
RUN echo"@edge http://dl-cdn.alpinelinux.org/alpine/edge/community">> /etc/apk/repositories
RUN apk add --no-cache glab@edge
```
### Nix/NixOS
Nix (NixOS) users can install from [nixpkgs](https://search.nixos.org/packages?channel=unstable&show=glab&from=0&size=30&sort=relevance&query=glab) with the command `nix-env -iA nixos.glab`.
### MPR (Debian/Ubuntu)
`glab` is available inside the [makedeb package repository](https://mpr.makedeb.org/packages/glab). To install, run the following:
```shell
git clone 'https://mpr.makedeb.org/glab'
cd glab/
makedeb -si
```
#### Prebuilt-MPR
The above method downloads glab from source and builds it before packaging it into a `.deb` package. If you don't want to compile or just want a prebuilt package, you can also install glab from the Prebuilt-MPR:
1. Set up [the Prebuilt-MPR on your system](https://docs.makedeb.org/prebuilt-mpr/getting-started/#setting-up-the-repository).
1. Install with the command `sudo apt install glab`.
#### Spack
- To install: `spack install glab`.
- To update: `spack uninstall glab && spack install glab`