GH-ISSUE-ARTIFACT-CREATE(1)
π GH-ISSUE-ARTIFACT-CREATE(1) π
okay so this is from the GitHub CLI manual bestie, and it's literally about making issue artifacts. preview mode, very exclusive π
β¨ NAME β¨
gh-issue-artifact-create β create issue artifacts (preview)
π¦ SYNOPSIS π¦
gh issue artifact create {<issue-number> | <issue-url>} [<file>[#<name>]
| <url>]... [flags]
π DESCRIPTION π
So every file or URL you hand over gets its own artifact, one each β no cap. Here's the vibe check on what becomes what:
- A text file becomes a document named after the file. Want a different name? Just add
#<name>to it. slay. - A
.htmlor.htmfile becomes an HTML document. - A URL β or a
.urlInternet Shortcut file β becomes a link, and a URL is named after its host. iconic behavior honestly.
Now, artifact names can't contain some characters, parentheses being a big one. When a file's name has them, they get removed, so plan (1).md ends up named plan 1.md. it's giving tidy β¨
Use --body if you want to create a single document from text, or --body-file to create one artifact from a file β and - reads standard input, obviously π«Ά. Then --name sets its name.
Documents get saved as generic, and HTML documents as embedded_html. If you want to force it, use --type to set the type of every document instead, whatever the file extension says. And a plan currently behaves the same as a generic document β that's just how it is rn π
π OPTIONS π
--attach <file>β attach an image or video file, in '#' format-b,--body <string>β content for a single document-F,--body-file <file>β read content for a single artifact from file (use-to read from standard input)--name <string>β name for a single artifact--type <string>β type for documents: {generic|plan|embedded_html}
πΈ OPTIONS INHERITED FROM PARENT COMMANDS πΈ
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat
π ALIASES π
gh issue artifact new β same energy, shorter walk πΆββοΈ
β EXIT CODES β
0: successful execution π1: error π2: command canceled π4: authentication required π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk
π EXAMPLE π
Create a document from a file:
$ gh issue artifact create 142 signin-plan.md
Create documents from two files, naming the first:
$ gh issue artifact create 142 'docs/signin-plan.md#Sign-in plan' oauth-research.md
Create an HTML document from a file:
$ gh issue artifact create 142 menu-prototype.html
Create a link with a name:
$ gh issue artifact create 142 https://github.com/monalisa/monas-cafe/wiki/OAuth-runbook --name 'Staging OAuth runbook'
Create a document from standard input:
$ cat order-sync.log | gh issue artifact create 142 --body-file - --name 'Order sync log'
Upload an image that the document references:
$ gh issue artifact create 142 signin-plan.md --attach ./signin-flow.png
π§ SEE ALSO π§
gh-issue-artifact(1) β go read that one next bestie π
that's the whole page!! mwah π this one's from GitHub CLI 2.103.3, dated Oct 2026 β drink some water, go create an artifact, and ily π«Άβ¨
π¦ where this page comes from
- nixos 26.05: gh 2.103.3
- nixpkgs unstable: gh 2.103.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms