gcli-repos1
Manage remote repositories on various git forges
Usage
gcli [-s]
[-n
n]
[-o
owner]
gcli create
-r
name
[-d
description]
[-p]
gcli [-o
owner
-r
repo]
actions ...
Overview
gcli can be used to list or manage your own or an organization's repositories on git(1) forges such as Github, Gitea and GitLab. With no actions given, gcli will list repositories, either of the through -o specified owner or, if omitted, your own. Otherwise the given actions are executed on the specified or autodetected repository. See ACTIONS.
Options
-
-s, --sorted -
Reverse the output such that most recent items appear at the bottom.
-
-o, --owner owner -
Operate on the repository of the given owner. This option can only be used in combination with
-r. -
-r, --repo repo -
Operate on the given repository. This option can only be used in combination with
-ounless you are creating a repository. -
-y, --yes -
Do not ask for confirmation. Assume yes. Applies only to the
deleteaction. -
-n, --count n -
Fetch at least n repositories. Setting n to -1 will fetch all repositories. Default: 30. Note that on owners with many repositories fetching all of them can take a considerable amount of time and may result in rate limiting by the GitHub/GitLab API.
-
-d, --description description -
Set the description of a repo to be created.
-
-p, --private -
Create a private repo.
Actions
actions... may be one or more of the following:
delete[-y]-
Delete the repository. You will be asked for confirmation unless you set
-y. set-visibilitylevel-
Change the visibility level of the repository. level may be one of:
- private
-
Make the repository private.
- public
-
Make the repository public.
Examples
List your own repos:
$ gcli repos
List neutaaaaan's repositories:
$ gcli repos -o neutaaaaan
Delete vim/vim without confirmation:
$ gcli repos -o vim -r vim -y delete
Create a repository called emacs with a description and make it public:
$ gcli repos create -r emacs -d "welcome to the holy church of emacs."