teatea
A lightweight CLI client for Gitea API.
Installation
go get github.com/ssig33/teatea@latest
Configuration
Set the following environment variables:
GITEA_TOKEN: Your Gitea API tokenGITEA_HOST: Your Gitea instance URL (e.g.,https://gitea.example.com)
Usage
Create a repository
Create a repository with the current directory name:
teatea create
Create a repository with a specific name:
teatea create myrepo
Create a private repository:
teatea create -p
teatea create -p myrepo
Git remote management
The tool automatically manages git remotes:
- If no
originexists, it sets the created repository asorigin - If
originexists but nogitearemote exists, it adds agitearemote - If both exist, no remote changes are made
Requirements
- Must be run inside a git repository
- Environment variables
GITEA_TOKENandGITEA_HOSTmust be set
License
WTFPL
Languages
Go
100%