.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-job-artifact - Download all artifacts from the most recent pipeline. .SH SYNOPSIS \fBglab job artifact [flags]\fP .SH DESCRIPTION Downloads all artifacts from the most recent successful pipeline. .PP \fB\fR is a branch name, tag, or merge request reference. For a branch or tag, use the name directly. For a merge request pipeline, replace \fB\fR with the merge request IID and use the format that matches the pipeline type: .IP \(bu 2 \fBrefs/merge-requests//head\fR: Pipeline on the latest commit of the source branch. .IP \(bu 2 \fBrefs/merge-requests//merge\fR: Pipeline on the merged result (pipelines for merged results). .SH OPTIONS \fB-l\fP, \fB--list-paths\fP[=false] Print the paths of downloaded artifacts. .PP \fB-p\fP, \fB--path\fP="./" Path to download the artifact files. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX glab job artifact main build glab job artifact main deploy --path="artifacts/" glab job artifact main deploy --list-paths glab job artifact refs/merge-requests/123/head build glab job artifact refs/merge-requests/123/merge build .EE .SH SEE ALSO \fBglab-job(1)\fP