gh pr comment 123 --body-file review.md

Category: GitHub CLI

gh pr comment 123 --body-file review.md

Comment on a PR with text from a file

--body-file reads the comment body from a file, handy for long, formatted review notes prepared in an editor. Use a dash (-) as the file to read the body from standard input. Existing comments stay untouched unless you pass --edit-last.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.