github shell

Informationen (star/fork) von GitHub-Repositorys mit Linux-Befehlen abrufen

Shou Arisaka
1 Min. Lesezeit
2. Nov. 2025

Sie können die Anzahl der “Stars” und “Forks” eines Repositorys über die Befehlszeile abrufen.

#  e.g.ariya/phantomjs

# Anzahl der "Stars" für ein Repository abrufen
curl --silent 'https://api.github.com/repos/ariya/phantomjs' -H 'Accept: application/vnd.github.preview' | jq '.watchers'

# Anzahl der "Forks" für ein Repository abrufen
curl --silent 'https://api.github.com/repos/ariya/phantomjs' -H 'Accept: application/vnd.github.preview' | jq '.forks'

# Anzahl der "Issues" für ein Repository abrufen
curl --silent 'https://api.github.com/repos/ariya/phantomjs' -H 'Accept: application/vnd.github.preview' | jq '.open_issues'

# "Größe" eines Repositorys abrufen
curl --silent 'https://api.github.com/repos/ariya/phantomjs' -H 'Accept: application/vnd.github.preview' | jq '.size'

Diesen Artikel teilen

Shou Arisaka 2. Nov. 2025

🔗 Links kopieren