{"id":37165809,"url":"https://github.com/tannerryan/gist","last_synced_at":"2026-01-14T19:39:21.387Z","repository":{"id":57592697,"uuid":"163625689","full_name":"tannerryan/gist","owner":"tannerryan","description":"Unofficial command line tool for file uploads to GitHub gist.","archived":false,"fork":false,"pushed_at":"2022-11-01T18:12:51.000Z","size":82,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T12:06:25.198Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tannerryan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-30T23:50:24.000Z","updated_at":"2023-11-11T11:54:18.000Z","dependencies_parsed_at":"2022-09-14T09:20:49.025Z","dependency_job_id":null,"html_url":"https://github.com/tannerryan/gist","commit_stats":null,"previous_names":["thetannerryan/gist"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tannerryan/gist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tannerryan%2Fgist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tannerryan%2Fgist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tannerryan%2Fgist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tannerryan%2Fgist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tannerryan","download_url":"https://codeload.github.com/tannerryan/gist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tannerryan%2Fgist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang"],"created_at":"2026-01-14T19:39:20.817Z","updated_at":"2026-01-14T19:39:21.377Z","avatar_url":"https://github.com/tannerryan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gist - simplified code sharing\n[![Build\nStatus](https://img.shields.io/travis/TheTannerRyan/gist.svg?style=flat-square)](https://travis-ci.org/TheTannerRyan/gist)\n[![Go Report\nCard](https://goreportcard.com/badge/github.com/thetannerryan/gist?style=flat-square)](https://goreportcard.com/report/github.com/thetannerryan/gist)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-5673AF.svg?style=flat-square)](https://godoc.org/github.com/TheTannerRyan/gist)\n[![GitHub\nlicense](https://img.shields.io/github/license/TheTannerRyan/gist.svg?style=flat-square)](https://github.com/TheTannerRyan/gist/blob/master/LICENSE)\n\nGist is an unofficial toolkit for file uploads to GitHub gist. The purpose of\ngist is to provide a simple command-line tool for sharing content on GitHub's\ngist platform.\n\n## Table of Contents\n * [Installation](#installation)\n * [Configuration](#configuration)\n * [Usage](#usage)\n * [Examples](#examples)\n * [License](#license)\n\n## Installation\n\n### macOS (via Homebrew)\n```sh\nbrew update\nbrew install TheTannerRyan/bin/gist\n```\n### Manual\nDownload the [latest](https://github.com/TheTannerRyan/gist/releases/latest)\nrelease for your platform (Darwin/macOS, Linux, Windows). Unpack the tar, and\ncopy the binary to a directory that is in the PATH. Here is an example on macOS\n(Darwin):\n```sh\nwget https://github.com/TheTannerRyan/gist/releases/download/v2.0.0/gist-darwin_amd64.tar.gz\ntar -xzf gist-darwin_amd64.tar.gz\nmv gist /usr/local/bin\n```\nThe `/usr/local/bin directory` will work with most variants of UNIX. For\nWindows, you will have to add the parent directory to the system path.\n\n## Configuration\nTo use gist, you need to create a Github personal access token. To create a\ntoken, go to the [token settings](https://github.com/settings/tokens). Click the\n\"generate new token\" button and enter any description. For the scope, just\nselect \"gist\". Then click generate token.\n\nOnce you have a token, you should set the `GIST_KEY` environment variable to the\ntoken value. If you do not want to use an environment variable, you will have to\ncopy and paste the token each time you would like to upload content.\n\n## Usage\n### Global usage\n```sh\n$ gist --help\nNAME:\ngist - unofficial toolkit for file uploads to GitHub gist\n\nUSAGE:\ngist [global options] command [command options] [arguments...]\n\nVERSION:\n2.0.0\n\nAUTHOR:\nTanner Ryan (https://github.com/TheTannerRyan/gist)\n\nCOMMANDS:\n    public, p   upload one or more public files\n    secret, s   upload one or more secret files (shh! it's a secret)\n    license, l  show licensing information\n    help, h     Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n--help, -h     show help\n--version, -v  print the version\n```\n### Upload usage (same for secret)\n```sh\n$ gist p --help\nNAME:\ngist public - upload one or more public files\n\nUSAGE:\ngist public [command options] [arguments...]\n\nOPTIONS:\n--token value, -t value        required GitHub Gist access token [$GIST_KEY]\n--clipboard, -c                read from clipboard\n--name value, -n value         comma separated file name override for Gist\n--description value, -d value  gist description\n```\n### Aliases\nAll of the commands have short and long versions:\n```\np / public\ns / secret\nh / help\n```\nThe flags also have aliases:\n```\n-t / --token\n-c / --clipboard\n-n / --name\n-d / --description\n```\n\n## Examples\nThe interface behaves the way it looks:\n```sh\n# single file (secret)\ngist s hello.txt\n\n# multiple files (public)\ngist p hello1.txt hello2.txt\n\n# all text files\ngist p *.txt\n\n# rename single\ngist p old.txt -n=new.txt\n\n# rename multiple\ngist p bad1.txt bad2.txt good3.txt -n=good1.txt,good2.txt\n\n# upload with gist description\ngist p story.log -d=\"this is my daily log\"\n\n# upload without GIST_KEY environment variable\ngist p file.txt -t=\"abc123...\"\n\n# upload from stdin\ncat network.log | gist p\ngist p \u003c network.log\n\n# upload from clipboard\ngist p -c\n```\nNote: If single or multiple files are being provided, and there are no file name\noverrides, the original file names will be used. For stdin and the clipboard, if\nno name is provided, the file will be uploaded as `gistfile1.txt`.\n\n## License\nCopyright (c) 2019 Tanner Ryan. All rights reserved. Use of this source code is\ngoverned by a BSD-style license that can be found in the LICENSE file.\n\nAto Araki's Go clipboard library is under a BSD 3-clause license. Jeremy Saenz's\nGo command line library is under a MIT license. Once again, all rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftannerryan%2Fgist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftannerryan%2Fgist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftannerryan%2Fgist/lists"}