GT-SCHEMA(1) gitea-cli Manual GT-SCHEMA(1)

gt-schema - Print the JSON fields that commands output

gt schema [<command>...] [flags]

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.

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

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

-q, --jq="" Filter JSON output using a jq expression; implies --json

--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 schema issue list
$ gt schema --jq '.commands[] | select(.command == "gt pr view") | .fields[].name'

gt(1)

Nov 2026 gitea-cli