.nh .TH "GT-SCHEMA" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-schema - Print the JSON fields that commands output .SH SYNOPSIS \fBgt schema [...] [flags]\fP .SH DESCRIPTION Print the fields that --json selects, with their JSON types, for every command that outputs JSON, or for the commands under the one named. The output is JSON and can be filtered with --jq. See gt help formatting for what scripts may rely on. .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for schema .SH OPTIONS INHERITED FROM PARENT COMMANDS \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--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .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 schema issue list $ gt schema --jq '.commands[] | select(.command == "gt pr view") | .fields[].name' .EE .SH SEE ALSO \fBgt(1)\fP