gh gist create script.py --public --desc 'Deploy helper'

Category: GitHub CLI

gh gist create script.py --public --desc 'Deploy helper'

Create a public gist with a description

Uploads script.py as a gist, --public makes it visible to anyone with the URL, and --desc attaches a short description. Gists are lightweight code snippets with their own git history. Secret gists remain private but are not encrypted.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.