.nh
.TH "GT-MILESTONE-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual"
.SH NAME
gt-milestone-create - Create a milestone
.SH SYNOPSIS
\fBgt milestone create [
] [flags]\fP
.SH DESCRIPTION
Create a milestone. Without flags on a terminal, a form asks for the title, description
and due date. A milestone with the same title, ignoring case, is refused unless --force updates
it, since titles address milestones.
.SS JSON FIELDS
.EX
closed_issues, description, due_date, id, open_issues, state, title, url
.EE
.SH OPTIONS
\fB--deadline\fP=""
Due \fBdate\fR: YYYY-MM-DD, RFC3339 or Unix timestamp; only the date counts, as the end of that day in UTC; with --force, empty clears the deadline of an existing milestone
.PP
\fB-d\fP, \fB--description\fP=""
Milestone description
.PP
\fB-F\fP, \fB--description-file\fP=""
Read the description from \fBfile\fR, or - for stdin
.PP
\fB-e\fP, \fB--editor\fP[=false]
Write the description in the configured editor
.PP
\fB-f\fP, \fB--force\fP[=false]
Update the milestone if one with the same title exists
.PP
\fB-h\fP, \fB--help\fP[=false]
help for create
.PP
\fB--state\fP="open"
State of the new milestone {open|closed}
.PP
\fB-t\fP, \fB--title\fP=""
Milestone title
.SH OPTIONS INHERITED FROM PARENT COMMANDS
\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--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--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 milestone create v1.0 --deadline 2026-12-31 --description "First release"
$ gt milestone create --title v2.0 --editor
# Update the milestone if it exists
$ gt milestone create v1.0 --deadline 2027-01-31 --force
.EE
.SH SEE ALSO
\fBgt-milestone(1)\fP