Creating a gist from the command-line Posted on 2011-01-02 by Marc 2 GitHub's Gist API doesn’t yet have an API call for creating a new gist. So to write a command-line utility to create gists, I had to do a little old-fashioned screen scraping with Python and mechanize.