LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

tea

Gitea command-line client

TLDR

Log in to a Gitea instance
$ tea login add --url [https://gitea.example.com] --token [your_token]
copy
List issues in the current repository
$ tea issues
copy
Create a new issue
$ tea issues create --title "[Bug report]" --body "[Description]"
copy
List pull requests
$ tea pulls
copy
Create a pull request
$ tea pulls create --title "[Feature]" --base [main] --head [feature-branch]
copy
Checkout a pull request locally
$ tea pulls checkout [42]
copy
List repositories
$ tea repos
copy
Clone a repository
$ tea clone [owner/repo]
copy

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 server
whoami
Display currently authenticated user
issues
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 issues
notifications
View and manage notifications
comment
Add comments to issues or pull requests
open
Open repository in web browser
clone
Clone a repository

INSTALL

sudo apt install tea
copy
sudo pacman -S tea
copy
sudo apk add tea
copy
sudo zypper install tea
copy
brew install tea
copy
nix profile install nixpkgs#tea
copy

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.

SEE ALSO

git(1), gh(1), glab(1), hub(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid