#14526·cli

[设计] `gh 问题艺术品编辑`

作者: BagToad创建于 2026年9月25日更新于 2026年9月28日
标签enhancementgh-issue
What is changing
  • Help: Help for gh issue artifact edit
Source & reproduction
bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number or URL. With only --attach, the attachments are appended to the current content. ' 033[0;1;39mUSAGE\033[0m  gh issue artifact edit {<issue> <artifact-number> | <artifact-url>} [flags]  033[0;1;39mFLAGS\033[0m  --attach file Attach an image or video file, in '\''<file>#<image alt text>'\'' format -b, --body string New content; for a link, a URL -F, --body-file file Read new content from file (use "-" to read from standard input) --name string New name  033[0;1;39mINHERITED FLAGS\033[0m  --help Show help for command -R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format  033[0;1;39mEXAMPLES\033[0m  # Rename an artifact $ gh issue artifact edit 142 2 --name '\''OAuth callback plan v2'\''  # Replace a document's content with a file $ gh issue artifact edit 142 2 --body-file 2-OAuth-callback-plan.md  # Point a link at a new URL $ gh issue artifact edit 142 3 --body https://GitHub.com/monalisa/monas-cafe/wiki/OAuth-runbook-v2  # Append a screenshot to a document $ gh issue artifact edit 142 2 --attach  ...  ```

---

<details><summary>Source & reproduction</summary>

```bash
printf 'Rename an issue artifact or replace its content. The type never changes, so a link's new content must be an http(s) URL or a .url Internet Shortcut file. Name the artifact by its issue and number, or by its URL. <issue> is an issue number