GH-PR-COMMENT(1) GitHub CLI manual GH-PR-COMMENT(1) (NAME) gh-pr-comment - (SYNOPSIS) gh pr comment [ | | ] [flags] (DESCRIPTION) . . --attach . ![alt](./login.png) . . . (Alt text) # --attach './login.png#The login error state'. . . . (OPTIONS) --attach '#' -b, --body -F, --body-file ( "-" ) --create-if-none . --edit-last --delete-last --edit-last -e, --editor -w, --web --yes --delete-last (OPTIONS INHERITED FROM PARENT COMMANDS) -R, --repo <[HOST/]OWNER/REPO> [HOST/]OWNER/REPO (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # $ gh pr comment 13 --body "Hi from GitHub CLI" # "#" $ gh pr comment 13 --attach './login.png#The login error state' # $ gh pr comment 13 --attach ./before.png --attach ./after.png (SEE ALSO) gh-pr(1) Sep 2026 GH-PR-COMMENT(1)