GT-ALIAS-SET(1) gitea-cli Manual GT-ALIAS-SET(1)

gt-alias-set - Create a shortcut for a gt command

gt alias set <name> <expansion> [flags]

Create a shortcut for a gt command

--clobber[=false] Replace an existing alias of the same name

-h, --help[=false] help for set

--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr

--host="" Gitea instance URL, including any base path

--interactive[=false] Allow prompts with machine output

--no-input[=false] Disable prompts and implicit editor/browser interactions

--sudo="" Perform API requests as this user (requires an administrator account)

--user="" Account name on the selected instance

# gt il runs gt issue list --label bug
$ gt alias set il "issue list --label bug"
# $1 takes the first argument: gt review 13 runs gt pr review 13 --approve
$ gt alias set review 'pr review $1 --approve'
# Replace an existing alias
$ gt alias set il "issue list --assignee @me" --clobber

gt-alias(1)

Nov 2026 gitea-cli