---
name: "gt-extension-create"
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-extension-create"
---

# gt-extension-create(1)

Create a new extension

## NAME

gt-extension-create - Create a new extension

## SYNOPSIS

**gt extension create \<name\> \[flags\]**

## DESCRIPTION

Create the directory gt-NAME with a new extension in a fresh Git repository: an executable gt-NAME script, or with --precompiled=go a Go program and a workflow that publishes it as release assets with their checksums.txt. gt extension install . runs it while you work on it; build a Go extension with go build first.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for create

**--precompiled**=""\
 	Create a precompiled extension in **go** instead of a script

## OPTIONS INHERITED FROM PARENT COMMANDS

**--cwd**=""\
 	Working **directory** for repository discovery

**--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 extension create hello
$ gt extension create hello --precompiled=go
```

## SEE ALSO

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