This add-on integrates GitLab Cli (glab) into your DDEV project.
ddev add-on get plopesc/ddev-glab-cli
ddev restart
After installation, make sure to commit the .ddev directory to version control.
For persistent login, the following environment variables need to be defined:
The full list of environment variables can be found at CLI documentation.
For other ways to authenticate, the following command can be executed:
ddev exec glab auth login
| Command | Description |
|---|---|
ddev exec glab --version |
Check the installed version |
ddev exec glab --help |
View available commands |
The full documentation about GitLab CLI can be gound at the GitLab CLI documentation page.
By default, the add-on installs the latest available GitLab CLI version. To pin a specific version, create a .ddev/docker-compose.glab-cli.yaml file with the desired version:
services:
web:
build:
args:
GLAB_VERSION: "1.80.0"
Then run ddev restart to rebuild the container with the specified version.
Contributed and maintained by @plopesc