Interact with Gogs servers via curl requests to their REST API v1.
Use ./gogs
to show available actions.
Use ./gogs <action>
to show required parameters.
Use ./gogs <action> <argument> ...
to run actions.
- create/delete/list/query user/organization repositories
- add/remove/list repository collaborators
- create/list organization teams
- add/remove/list organization team members
- add/remove organization team repositories
- fetch raw file content
- Gogs server URL
- Required in the form
https://try.gogs.io
- Via environment variable or file in this directory
- Required in the form
- Gogs API token
- Create at
https://YOUR.GOGS.SERVER/user/settings/applications
- Via environment variable or file in this directory
- Create at
(See config
section in ./gogs
)
The REST API does not yet allow some actions (like organization team deletion).
Similarly, this cli does not cover all avilable actions โ pull requests are welcome!