gh codespace list --json name,repository,state

Category: GitHub CLI

gh codespace list --json name,repository,state

List codespaces as JSON

Lists your codespaces with --json fields name, repository, and state for scripting. Field names come from the codespace API, so repository is the owning repo. Add --repo to filter by project or --limit to cap rows.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.