gh alias set prd 'pr view'

Category: GitHub CLI

gh alias set prd 'pr view'

Create a short alias for a gh command

Defines prd as a word that expands to gh pr view, so gh prd 123 shows a PR. Aliases can embed flags, like 'pr list --state merged'. They live in gh's config and work exactly like built-in commands.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.