50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
# Gitea CLI Setup
|
|
|
|
One-time installation and authentication setup for `tea` CLI.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
brew install tea
|
|
```
|
|
|
|
## Authentication
|
|
|
|
The `tea` CLI authenticates via `tea logins add`. Credentials are stored locally by tea.
|
|
|
|
```bash
|
|
tea logins add # Interactive login
|
|
tea logins add --url <url> --token <token> --name <name> # Non-interactive
|
|
tea logins list # Show configured logins
|
|
tea logins default <name> # Set default login
|
|
```
|
|
|
|
## Configuration
|
|
|
|
Config is stored at `~/Library/Application Support/tea/config.yml` (macOS).
|
|
|
|
To avoid needing `--login` on every command, set defaults:
|
|
|
|
```yaml
|
|
preferences:
|
|
editor: false
|
|
flag_defaults:
|
|
remote: origin
|
|
login: git.flowmade.one
|
|
```
|
|
|
|
## Example: Flowmade One Setup
|
|
|
|
```bash
|
|
# Install
|
|
brew install tea
|
|
|
|
# Add login (get token from https://git.flowmade.one/user/settings/applications)
|
|
tea logins add --name flowmade --url https://git.flowmade.one --token <your-token>
|
|
|
|
# Set as default
|
|
tea logins default flowmade
|
|
```
|
|
|
|
Now `tea` commands will automatically use the flowmade login when run in a repository with a git.flowmade.one remote.
|