Development
GitHub CLI
Issues, PRs, Actions, releases and gists via GitHub REST API
✓ 14 tests passed
Install
$ pip install cli-anything-github
About
Full GitHub automation via PyGithub. Create issues and pull requests, trigger GitHub Actions workflows, manage releases, gists and repository metadata — all with JSON output for AI agent pipelines.
Requirements
GITHUB_TOKEN (Personal Access Token)
Command Reference
| Command | Arguments | Description |
|---|---|---|
detect |
Verify GitHub token | |
repo list |
--org ORG --limit N |
List repositories |
repo create |
--name NAME --private --desc DESC |
Create repository |
issue list |
OWNER/REPO --state open|closed |
List issues |
issue create |
OWNER/REPO --title T --body B --label L |
Create issue |
pr list |
OWNER/REPO --state open|closed |
List pull requests |
pr create |
OWNER/REPO --title T --head BRANCH --base main |
Create PR |
release list |
OWNER/REPO |
List releases |
release create |
OWNER/REPO --tag v1.0 --title T --notes N |
Create release |
actions list-workflows |
OWNER/REPO |
List GitHub Actions workflows |
actions trigger |
OWNER/REPO WORKFLOW_ID --ref main |
Trigger workflow |
gist create |
FILE --desc DESC --public |
Create gist |
Usage Examples
# Install
$ pip install cli-anything-github
# Health check
$ github-cli detect
# Get capabilities schema (Agent-ready, no token needed)
$ github-cli schema
# Run with JSON output (for AI Agent integration)
$ github-cli --json detect
# Example JSON response:
{"number":42,"title":"Fix login bug","state":"open","url":"https://github.com/..."}
Agent Integration
# Python — call from AI Agent
import subprocess, json
result = subprocess.run(
["github-cli", "--json", "detect"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
print(data)
# Discover all commands without credentials:
schema = subprocess.run(
["github-cli", "schema"],
capture_output=True, text=True
)
capabilities = json.loads(schema.stdout)