Skill v1.0.3
currentAutomated scan100/1002 files
version: "1.0.3" name: glab-packages description: List, upload, download, and delete 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 or downloading generic package files, deleting packages, or using glab packages commands. Triggers on GitLab packages, package registry, glab packages, npm packages in GitLab, Maven packages in GitLab, generic package upload, generic package download, delete package.
glab packages
List packages in a GitLab project's package registry, upload/download generic package files, and delete package registry entries by ID.
glab packages list / ls lists project package registries. The current command surface also includes upload / ul for generic package uploads, download / dl for generic package downloads, and delete / rm for package deletion by numeric ID.
Quick start
# List all packages in the current projectglab packages list# Aliasglab packages ls# List packages from another projectglab packages list -R owner/repo# Upload a file as a generic package versionglab packages upload ./build/app.zip --name my-package --version 1.0.0# Download a generic package fileglab packages download --name my-package --version 1.0.0 --filename app.zip# Delete a package by numeric ID after listing packagesglab packages delete 12345 --yes
Filtering
# Filter by package name substringglab packages list --name my-package# Filter by package typeglab packages list --package-type npmglab packages list --package-type mavenglab 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
# Select a page and page sizeglab packages list --page 2 --per-page 10# JSON output filtering is available through the global --jq support on this commandglab 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
# Upload a local file under its original filenameglab packages upload ./build/app.zip --name my-package --version 1.0.0# Store the uploaded file under a different package filenameglab packages upload ./build/app.zip --name my-package --version 1.0.0 --filename release.zip# Alias and explicit target projectglab 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.
Download generic package files
# Download a package file to the current directoryglab packages download --name my-package --version 1.0.0 --filename app.zip# Download into a directory, keeping the original file nameglab packages download -n my-package --version 1.0.0 --filename app.zip --path ./downloads/# Download to an exact path, renaming the fileglab packages download -n my-package --version 1.0.0 --filename app.zip --path ./downloads/renamed.zip# Skip checksum verification only when you intentionally accept the integrity riskglab packages download -n my-package --version 1.0.0 --filename app.zip --no-verify# Alias, overwrite an existing target, and explicit project targetingglab packages dl -n my-package --version 1.0.0 --filename app.zip --force -R owner/repo
Download is limited to generic package files and requires --name, --version, and --filename. By default glab verifies the downloaded file against registry checksum metadata and fails if the destination already exists. Use --path for a directory or exact output filename, --force to overwrite, and --no-verify only when checksum verification is intentionally bypassed.
Delete packages
# Find the package ID firstglab packages list --name my-package# Delete by numeric package ID; prompts for confirmationglab packages delete 12345# Skip confirmation for automation after independently confirming the IDglab packages delete 12345 --yes# Aliasglab packages rm 12345
Delete operates on a package's numeric ID, not the package name/version. Use glab packages list (preferably with JSON/--jq in scripts) to identify the ID, then pass --yes only when the target package has been verified.
Reference
See references/commands.md for command synopsis and flags.