#14529·cli

RFC: `gh issue artifact`

Author: BagToadCreated Sep 25, 2026Updated Sep 28, 2026
Labelsenhancementgh-issue

This is the design for gh issue artifact, a new command group for working with issue artifacts from the terminal. Issue artifacts are Markdown documents and links attached to an issue. They aren't GitHub Actions artifacts, which gh run download handles.

Each subcommand has its own design issue, with its help text and the expected output for every scenario:

Command What it does Design
gh issue artifact list List the artifacts on an issue #14523
gh issue artifact view Show an artifact, or open a link in the browser #14524
gh issue artifact create Create artifacts from files, URLs or text #14525
gh issue artifact edit Rename an artifact or replace its content #14526
gh issue artifact delete Delete artifacts #14527
gh issue artifact download Save artifacts as files #14528

The screenshots in those issues are mockups

Shared behavior

These apply to every subcommand:

  • An artifact is addressed by its issue and its number on that issue, as in gh issue artifact view 142 2, or by its URL. Names don't have to be unique, so gh never looks an artifact up by name.
  • The issue argument takes a number or a URL, like other gh issue commands. Pull requests aren't supported.
  • GitHub Enterprise Server isn't supported.
  • Documents are generic or plan artifacts, and links are link artifacts. On disk, a link is an Internet Shortcut (.url) file, which opens in the browser on Windows and macOS.
  • list and view support --json, --jq and --template, with every field the API returns.
  • When piped, create, edit, delete and download print one tab-separated line per artifact: status, number, name or path, source, and the reason for a failure or skip. Any failure exits 1.
  • --attach uploads images and videos that a document references, like gh issue create --attach.
  • Existing gh issue commands don't change.

Feedback

Comment on the design issue for a subcommand, or here for anything that spans more than one.