gh api --method PUT /repos/owner/repo/topics --field names[]='devops'

Category: GitHub CLI

gh api --method PUT /repos/owner/repo/topics --field names[]='devops'

Set repository topics using PUT via gh api

Sets repository topics using a PUT API call.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.