# Tea CLI Usage for Gitea

## Installation
- Tea is already installed at `/opt/data/bin/tea` in this environment.
- Config resides at `~/.config/tea/config.yml`.

## Basic Commands
- List logins: `tea login list`
- List PRs for a repo: `tea pr list --login <login> --repo <owner>/<repo> --limit <n>`
- View a PR: `tea pr view --login <login> --repo <owner>/<repo> <PR-number>`
- Diff of a PR: `tea pr diff --login <login> --repo <owner>/<repo> <PR-number>` (or use API with token)
- Add a comment: `tea comments add --repo <owner>/<repo> <issue-number> "<comment>"`

## Notes
- Use `--output json` for machine-readable output.
- Ensure you have the correct login configured (see `tea login list`).
- For API calls requiring authentication, you can pass the token from config via header: `Authorization: token <token>`.
