GH-ALIAS-SET(1) GitHub CLI GH-ALIAS-SET(1) (NAME) gh-alias-set - (SYNOPSIS) gh alias set [flags] (DESCRIPTION) gh . . $1 . . - . . ! --shell sh . (piping) (redirection) . (OPTIONS) --clobber -s, --shell (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # : Command Prompt (double quotes) $ gh alias set pv 'pr view' $ gh pv -w 123 #=> gh pr view -w 123 $ gh alias set bugs 'issue list --label=bugs' $ gh bugs $ gh alias set homework 'issue list --assignee @me' $ gh homework $ gh alias set 'issue mine' 'issue list --mention @me' $ gh issue mine $ gh alias set epicsBy 'issue list --author="$1" --label="epic"' $ gh epicsBy vilmibm #=> gh issue list --author="vilmibm" --label="epic" $ gh alias set --shell igrep 'gh issue list --label="$1" | grep "$2"' $ gh igrep epic foo #=> gh issue list --label="epic" | grep "foo" (SEE ALSO) gh-alias(1) Sep 2026 GH-ALIAS-SET(1)