| GT-ALIAS-SET(1) | gitea-cli Manual | GT-ALIAS-SET(1) |
NAME
gt-alias-set - Create a shortcut for a gt command
SYNOPSIS
gt alias set <name> <expansion> [flags]
DESCRIPTION
Create a shortcut for a gt command
OPTIONS
--clobber[=false] Replace an existing alias of the same name
-h, --help[=false] help for set
OPTIONS INHERITED FROM PARENT COMMANDS
--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
EXAMPLE
# 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
SEE ALSO
| Nov 2026 | gitea-cli |