mirror of
https://gitea.com/gitea/tea
synced 2025-02-23 01:51:13 +01:00
add note for archlinux TEA package add note for alpine linux TEA package Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/143 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: techknowlogick <techknowlogick@gitea.io>
87 lines
3.2 KiB
Markdown
87 lines
3.2 KiB
Markdown
# <img alt='' src='https://gitea.com/repo-avatars/550-80a3a8c2ab0e2c2d69f296b7f8582485' height="40"/> *T E A*
|
|
|
|
[](https://opensource.org/licenses/MIT) [](https://gitea.com/gitea/tea/releases) [](https://drone.gitea.com/gitea/tea) [](https://discord.gg/Gitea) [](https://goreportcard.com/report/code.gitea.io/tea) [](https://godoc.org/code.gitea.io/tea)
|
|
|
|
## The official CLI interface for gitea
|
|
|
|
Tea is a command line tool for interacting on one or more Gitea instances.
|
|
It uses [code.gitea.io/sdk](https://code.gitea.io/sdk) and interacts with the Gitea API
|
|
|
|

|
|
|
|
## Installation
|
|
|
|
You can use the prebuilt binaries from [dl.gitea.io](https://dl.gitea.io/tea/)
|
|
|
|
|
|
To install from source, go 1.12 or newer is required:
|
|
```sh
|
|
go get code.gitea.io/tea
|
|
go install code.gitea.io/tea
|
|
```
|
|
|
|
|
|
If you have `brew` installed, you can install `tea` via:
|
|
|
|
```sh
|
|
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
|
|
brew install tea
|
|
```
|
|
|
|
Distribution packages exist for: **alpinelinux ([tea](https://pkgs.alpinelinux.org/packages?name=tea&branch=edge))** and **archlinux ([gitea-tea](https://aur.archlinux.org/packages/gitea-tea))**
|
|
|
|
## Usage
|
|
|
|
First of all, you have to create a token on your `personal settings -> application` page of your gitea instance.
|
|
Use this token to login with `tea`:
|
|
|
|
```sh
|
|
tea login add --name=try --url=https://try.gitea.io --token=xxxxxx
|
|
```
|
|
|
|
Now you can use the following `tea` subcommands.
|
|
Detailed usage information is available via `tea <command> --help`.
|
|
|
|
```sh
|
|
login Log in to a Gitea server
|
|
logout Log out from a Gitea server
|
|
issues List, create and update issues
|
|
pulls List, checkout and clean pull requests
|
|
releases Create releases
|
|
repos Operate with repositories
|
|
labels Manage issue labels
|
|
times Operate on tracked times of a repositorys issues and pulls
|
|
open Open something of the repository on web browser
|
|
```
|
|
|
|
To fetch issues from different repos, use the `--remote` flag (when inside a gitea repository directory) or `--login` & `--repo` flags.
|
|
|
|
## Compilation
|
|
|
|
Make sure you have installed a current go version.
|
|
To compile the sources yourself run the following:
|
|
|
|
```sh
|
|
git clone https://gitea.com/gitea/tea.git
|
|
cd tea
|
|
make
|
|
```
|
|
|
|
## Contributing
|
|
|
|
Fork -> Patch -> Push -> Pull Request
|
|
|
|
- `make test` run testsuite
|
|
- `make vendor` when adding new dependencies
|
|
- ... (for other development tasks, check the `Makefile`)
|
|
|
|
## Authors
|
|
|
|
* [Maintainers](https://github.com/orgs/go-gitea/people)
|
|
* [Contributors](https://github.com/go-gitea/tea/graphs/contributors)
|
|
|
|
## License
|
|
|
|
This project is under the MIT License. See the [LICENSE](LICENSE) file for the
|
|
full license text.
|