.nh .TH "GT-ALIAS-SET" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-alias-set - Create a shortcut for a gt command .SH SYNOPSIS \fBgt alias set [flags]\fP .SH DESCRIPTION Create a shortcut for a gt command .SH OPTIONS \fB--clobber\fP[=false] Replace an existing alias of the same name .PP \fB-h\fP, \fB--help\fP[=false] help for set .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX # 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 .EE .SH SEE ALSO \fBgt-alias(1)\fP