GH-ISSUE-ARTIFACT-LIST(1)

πŸ“¦ version 2.103.3, in nixos 26.05, nixpkgs unstable

πŸ’… GH-ISSUE-ARTIFACT-LIST(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so real talk: this is a page from the GitHub CLI manual (yes, that GitHub CLI), and it's all about listing the artifacts hanging out on an issue. buckle up πŸ¦‹


✨ NAME ✨

gh-issue-artifact-list β€” literally just lists artifacts on an issue (and it's in preview, so like… behave accordingly πŸ™ˆ)


🌸 SYNOPSIS 🌸

gh issue artifact list {<issue-number> | <issue-url>} [flags]

you give it either an <issue-number> or an <issue-url>, plus whatever [flags] your heart desires πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

here's the vibe: this command lists the artifacts on an issue, and it does it in number order. every single artifact gets listed unless you go out of your way and set --limit. that's it, that's the whole plot 🫢


πŸ’… OPTIONS πŸ’…

  • -q, --jq <expression> β€” filter the JSON output with a jq expression. yes, the jq you know and love 😌
  • --json <fields> β€” spit out JSON with the fields you specify. you pick, it ships ✨
  • -L, --limit <int> (default 0) β€” max number of artifacts to fetch. default is 0, so by default you get everything β€” see above πŸ‘‘
  • -t, --template <string> β€” format the JSON output with a Go template. for the deets, peep gh help formatting πŸ“–
  • --type <string> β€” filter by type, and the type's gotta be one of: {generic|plan|link|embedded_html} πŸ”₯

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • -R, --repo <[HOST/]OWNER/REPO> β€” pick a different repo using the [HOST/]OWNER/REPO format. inherited from the parent, still slays πŸ’œ

πŸŽ€ ALIASES πŸŽ€

gh issue artifact ls

yup β€” ls is the short lil nickname, iykyk πŸ“


⭐ JSON FIELDS ⭐

here's the whole field roster, no cap:

body, bodyHtml, createdAt, creator, description, id, name, number, type, updatedAt, updatedByActor, url

pick from these when you're doing the --json thing πŸ’«


🧚 EXIT CODES 🧚

  • 0 β€” successful execution πŸŽ‰
  • 1 β€” error 😭
  • 2 β€” command canceled πŸ’€
  • 4 β€” authentication required πŸ”
NOTE: some specific commands may have additional exit codes, so like… check that command's help for more info, bestie 🫢

πŸ”₯ EXAMPLE πŸ”₯

# List the artifacts on issue 142
$ gh issue artifact list 142

# List only links
$ gh issue artifact list 142 --type link

# Print artifact numbers and names as JSON
$ gh issue artifact list 142 --json number,name

obsessed with how clean that is, honestly 🌸


πŸ‘‘ SEE ALSO πŸ‘‘


aaaaand that's the whole page, bestie πŸ’– this was GitHub CLI 2.103.3, dated Oct 2026 β€” no cap, that's the version and the date, go off πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from