GT-EXTENSION-CREATE(1) gitea-cli Manual GT-EXTENSION-CREATE(1)

gt-extension-create - Create a new extension

gt extension create <name> [flags]

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.

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

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

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

$ gt extension create hello
$ gt extension create hello --precompiled=go

gt-extension(1)

Nov 2026 gitea-cli