| name | glab-packages |
| description | List and upload GitLab project package registry packages with glab. Use when inspecting packages, filtering GitLab package registry entries by package name/type, paginating package registry results, uploading generic package files, or using glab packages commands. Triggers on GitLab packages, package registry, glab packages, npm packages in GitLab, Maven packages in GitLab, generic package upload. |
glab packages
List packages in a GitLab project's package registry and upload files as generic packages.
Added in glab v1.103.0. glab packages list / ls lists project package registries. glab v1.104.0 added glab packages upload / ul for generic package uploads.
Quick start
glab packages list
glab packages ls
glab packages list -R owner/repo
glab packages upload ./build/app.zip --name my-package --version 1.0.0
Filtering
glab packages list --name my-package
glab packages list --package-type npm
glab packages list --package-type maven
glab packages list --package-type generic
Supported package types from glab help:
composer, conan, debian, generic, golang, helm, maven, npm, nuget, pypi, terraform_module
Pagination and automation
glab packages list --page 2 --per-page 10
glab packages list --jq '.[].name'
Use -R/--repo when running outside the target project's Git checkout. Prefer structured output/--jq for scripts rather than parsing text tables.
Upload generic package files
glab packages upload ./build/app.zip --name my-package --version 1.0.0
glab packages upload ./build/app.zip --name my-package --version 1.0.0 --filename release.zip
glab packages ul ./build/app.zip -n my-package --version 1.0.0 -R owner/repo
Upload stores the file as a generic package in the target project's package registry. --name and --version are required; --filename defaults to the local file basename. Use -R/--repo for uploads outside the target project checkout.
Reference
See references/commands.md for command synopsis and flags.