gt-auth(1)

gt-auth1

Authenticate gt and git with gitea

Usage

gt auth [flags]

Overview

Authenticate gt and git with Gitea.

gt keeps the accounts of each instance in hosts.yml and their tokens in the system keyring, or in a private file when you choose so. One account per instance is active; --user or GITEA_CLI_USER selects another for a single command. GITEA_TOKEN, together with GITEA_CLI_HOST or GITEA_INSTANCE_URL, replaces the stored credentials of its instance for the active account too; it must belong to the account that --user or GITEA_CLI_USER names. See gt help environment for how commands select the instance.

Options

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

Options inherited from parent commands

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

From gitea-cli 1.0.0-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.