https://github.com/cli/cli/releases
gh auth login
gh gist create LOCAL_FILE -d "DESCRIPTION"
or
gh gist create LOCAL_FILE -d "DESCRIPTION" -p
gh gist list
gh gist edit GIST_ID LOCAL_FILE
gh api -H "Accept: application/vnd.github+json" -X POST /repos/OWNER/REPO/hooks --input - <<< '{
"name": "web",
"active": true,
"events": [
"page_build"
],
"config": {
"url": "URL",
"content_type": "json"
}
}'
gh api -H "Accept: application/vnd.github+json" /repos/OWNER/REPO/hooks
gh api -H "Accept: application/vnd.github+json" -X DELETE /repos/OWNER/REPO/hooks/ID