| GCLI-RELEASES(1) | General Commands Manual | GCLI-RELEASES(1) |
gcli releases —
manage releases on git forges
gcli releases |
[-sl] [-n
n] [-o
owner -r
repo] |
gcli releases |
create -t
tagname [-n
name] [-c
commitish] [-a
asset] [-o
owner -r
repo] [-d]
[-p] |
gcli releases |
delete [-o
owner -r
repo] [-y]
release-id |
Use gcli releases to list, create or
delete releases for repositories on git(1) forges such as
GitLab, Gitea or GitHub. Without a subcommand specified,
gcli releases will list releases in the given or
autodetected repository. If you are the owner of that repo, you will also
see draft releases. You will not see those if you are not the owner of that
particular repository.
-s,
--sorted-l,
--long-o,
--owner owner-r.-r,
--repo repo-o.-n,
--count ncreateThe following flags can be specified:
-t,
--tag tagname-c for how to specify from
what the tag should be created.-n,
--name name-c,
--commitish commitish-o,
--owner owner-r. Use this if
you want to e.g. create the release in an organization and not your
own account.-r,
--repo repo-o.-a,
--asset asset-y,
--yesdeleteThe following options can be specified:
-r,
--repo repo-o.-o,
--owner owner-r. Use
this if you want to delete a release in a given organization and not
your own account.-y,
--yesDelete release with ID 54656866 in herrhotzenplotz/gcli-playground without asking for confirmation:
$ gcli releases delete --owner herrhotzenplotz \ --repo gcli-playground --yes 54656866
Create a new release named Foobar in herrhotzenplotz/gcli-playground. Create a new tag called banana based on the commit with the hash 0fed3c9 and upload foobar.tar.xz, barfoo.tar.gz and CHANGELOG as assets to the release.
$ gcli releases create --owner herrhotzenplotz \ --repo gcli-playground --tag banana --name Foobar \ --commitish 0fed3c9 --asset foobar.tar.xz \ --asset barfoo.tar.gz --asset CHANGELOG
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors.
Currently uploading release assets to GitLab doesn't work. Prereleases and draft releases are unsupported by GitLab. Using those flags in a GitLab forge type remote will produce warnings but still create the release.
Please report bugs via E-Mail to ~herrhotzenplotz/gcli-discuss@lists.sr.ht.
Alternatively you can report them on any of the forges linked at https://herrhotzenplotz.de/gcli. However, the preferred and quickest method is to use the mailing list.
| 2024-Feb-05 | gcli 2.2.0 |