gist icon indicating copy to clipboard operation
gist copied to clipboard

Command line tool for creating github gists

Gist

Command line tool for publishing gists

Usage:

# read from stdin
cat file.sh | gist

# set file name
cat file.sh | gist -f "myfile.sh"

# make public
cat file.sh | gist -p

# multiple files
gist *.js

Install:

go get github.com/icholy/gist

For auth, the tool looks for an environment variable called GITHUB_TOKEN You can generate one at: https://github.com/settings/tokens

export GITHUB_TOKEN="blah blah blah"