tea
TLDR
Log in to a Gitea instance
SYNOPSIS
tea command [subcommand] [options]
DESCRIPTION
tea is a command-line client for interacting with Gitea servers. It provides functionality similar to GitHub's gh CLI, allowing management of repositories, issues, pull requests, and other entities directly from the terminal.
The tool uses context from the current git repository when available, detecting the remote Gitea server and repository automatically. It works best with an upstream/fork workflow where the local main branch tracks the upstream repository.
Multiple Gitea instances can be configured via tea logins add, with one set as default. Configuration is stored in $XDG_CONFIG_HOME/tea (typically ~/.config/tea).
Useful commands include tea pulls checkout to fetch and switch to a PR branch locally, and tea open to quickly open the current repository in a web browser.
PARAMETERS
--login, -l name
Use a specific login configuration--repo, -r owner/repo
Specify repository (default: detected from current directory)--output, -o format
Output format: simple, table, csv, tsv, yaml, json--help, -h
Show help for command--version, -v
Show version
COMMANDS
logins
Manage Gitea server authentications (add, list, delete, default)logout
Remove authentication from a Gitea serverwhoami
Display currently authenticated userissues
Create, list, and manage issues (create, list, edit, close, reopen)pulls, pr
Manage pull requests (create, list, checkout, merge, approve, reject)repos
Display and manage repositories (list, create, fork, delete, migrate)branches
Examine and manage branches (list, protect, unprotect)labels
Manage issue labels (create, list, update, delete)milestones
Track project milestones (create, list, close, reopen)releases
Manage releases (create, list, delete, edit, assets)organizations
Manage organizations (list, create, delete)times
Track time on issuesnotifications
View and manage notificationscomment
Add comments to issues or pull requestsopen
Open repository in web browserclone
Clone a repository
CAVEATS
tea assumes local git state is published to the remote before performing operations. Some commands require appropriate permissions on the Gitea server. The tool is designed specifically for Gitea and may not work with other forges.
HISTORY
tea was developed by the Gitea project as the official command-line interface for Gitea servers. Written in Go, it uses the Gitea SDK to interact with the Gitea API. The project is hosted on Gitea's own platform at gitea.com/gitea/tea.


