logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gcli gists — manage Github Gists

Authors

       Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors.

Bugs

       This subcommand only works on GitHub.  It  is  not  implemented  for  GitLab,  as  GitLab  snippets  work
       differently.

       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.

gcli 2.3.0                                         2024-May-25                                     GCLI-GISTS(1)

Description

       Use  gcli  to  list,  create, download or delete Github Gists.  Without a subcommand specified, gcli will
       list Gists of the given or autodetected user account.

Examples

       List neutaaaaan's Gists:

             $ gcli gists -u neutaaaaan

       Paste a new gist named foobar and read from foobar.txt:

             $ gcli gists create foobar < foobar.txt

       Delete gist with id 3b546069d2856e6051bbe3c1080f1b5d:

             $ gcli gists delete 3b546069d2856e6051bbe3c1080f1b5d

       Print foobar.txt from Gist with id 3b546069d2856e6051bbe3c1080f1b5d into your pager:

             $ gcli gists get 3b546069d2856e6051bbe3c1080f1b5d foobar.txt | $PAGER

Name

       gcli gists — manage Github Gists

Options

-l, --long
               Print a long list instead of a short table.

       -s, --sorted
               Reverse the output such that most recent items appear at the bottom.

       -u, --userowner
               List Gists of the given user.

       -n, --countn
               Fetch at least n gists. Setting n to -1 will fetch all gists. Default: 30.  Note  that  on  users
               with  many gists fetching all gists can take a considerable amount of time and may result in rate
               limiting by the GitHub API.

See Also

git(1), gcli(1)

Subcommands

create  Paste a new Gist. The following flags can be specified:

               -f, --filefile
                       Read the content from the specified file instead of standard input.

               -d, --descriptiondescription
                       The description of the Gist to be created.

       delete  Delete a Gist. The following options can be specified:

               -y, --yes
                       Do not ask for confirmation before deleting the Gist. Assume yes.

       get     Download a file from a Gist. There are no options to this subcommand.

Synopsis

gcli [-s] [-l] [-nn] [-uuser]
       gclicreate [-ddescription] [-fpath] gist-file-namegclidelete [-y] gist-idgcligetgist-idfile-name

See Also