---
name: "gt-alias-set"
section: "1"
platform: "linux"
package: "gitea-cli"
version: "1.0.0-1"
release: "Arch Linux 2026-11-07"
platforms: ["linux"]
url: "https://carta.tech/man/gt-alias-set"
---

# gt-alias-set(1)

Create a shortcut for a gt command

## 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

**[gt-alias(1)](/man/gt-alias/1.md)**
