.nh .TH "GT-WEBHOOK-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-webhook-create - Create a webhook .SH SYNOPSIS \fBgt webhook create [] [flags]\fP .SH DESCRIPTION Create a webhook that delivers events to a URL, by default as JSON for push events. .PP Events: create, delete, fork, push, issues, issues_only, issue_assign, issue_label, issue_milestone, issue_comment, pull_request, pull_request_only, pull_request_assign, pull_request_label, pull_request_milestone, pull_request_comment, pull_request_review, pull_request_sync, pull_request_review_request, wiki, repository, release, package, status, workflow_run, workflow_job; issues and pull_request include every issue or pull request event. .PP Types: gitea, gogs, slack, discord, dingtalk, telegram, msteams, feishu, matrix, wechatwork, packagist. Slack webhooks need --config channel=#name (username, icon_url and color are optional). Gitea reads no other settings from --config, so set up discord, matrix and packagist webhooks in the web UI. .SS JSON FIELDS .EX active, branch_filter, content_type, created_at, events, id, type, updated_at, url .EE .SH OPTIONS \fB--active\fP[=true] Deliver events (use --active=false to create the webhook paused) .PP \fB--authorization-header\fP="" Authorization value (prefer file input) .PP \fB--authorization-header-file\fP="" Read authorization value from file or - .PP \fB--branch-filter\fP="" Branch glob for push events .PP \fB--clear-authorization\fP[=false] Send no authorization header; on edit, this removes the stored one .PP \fB--config\fP=[] Adapter-specific configuration, for example channel=alerts .PP \fB--events\fP=[push] Events that trigger the webhook, comma-separated .PP \fB-h\fP, \fB--help\fP[=false] help for create .PP \fB--secret\fP="" Signing secret (prefer --secret-file) .PP \fB--secret-file\fP="" Read signing secret from file or - .PP \fB--type\fP="gitea" Webhook adapter type {gitea|gogs|slack|discord|dingtalk|telegram|msteams|feishu|matrix|wechatwork|packagist} .PP \fB--url\fP="" Delivery URL .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--account\fP[=false] Manage the webhooks of your account .PP \fB--csv\fP[=""] Output CSV with the specified comma-separated \fBfields\fR, or all fields .PP \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--global\fP[=false] Manage the system webhooks of the instance (administrators) .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB-q\fP, \fB--jq\fP="" Filter JSON output using a jq \fBexpression\fR; implies --json .PP \fB--json\fP[=""] Output JSON with the specified comma-separated \fBfields\fR, or all fields .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--org\fP="" Manage the webhooks of an organization .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .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 webhook create https://ci.example.com/hooks/gitea --events push,pull_request # sign deliveries with a secret read from a file $ gt webhook create https://ci.example.com/hooks/gitea --secret-file secret.txt # notify a Slack channel about releases of an organization's repositories $ gt webhook create https://hooks.slack.com/services/T0/B0/X --org acme --type slack --config channel=#releases --events release .EE .SH SEE ALSO \fBgt-webhook(1)\fP