GH-CODESPACE-LIST(1)
π gh-codespace-list β the manual page, but make it make sense
okay so real quick β this is the gh-codespace-list page straight out of the GitHub CLI manual (we're on v2.102.0, don't @ me). Let's get into it bestie β¨
β¨ NAME β¨
gh-codespace-list β literally just, like, list your codespaces π
π¦ SYNOPSIS π¦
gh codespace list [flags]
that's it. that's the whole vibe. flags are optional, the codespaces are not π
πΈ DESCRIPTION πΈ
It lists the codespaces that belong to the authenticated user β aka you, the main character π.
Alternatively, if you're an organization administrator, you can list all the codespaces that are billed to the organization. like, all of them. the whole collection. slay for the admins fr fr π
just clocking that "organization administrators may" β that's an admin-only situation, not a you-situation unless you're actually an admin.
π OPTIONS π
-q,--jq <expression>β filter the JSON output using ajqexpression. yes you can pipe-and-jq it, icon behavior honestly π₯--json <fields>β output JSON with the fields you specify. you pick 'em, it prints 'em β¨-L,--limit <int>β max number of codespaces to list. default is30β so yes, there's a cap by default, that's not a bug π«Ά-o,--org <login>β the login handle of the organization you want to list codespaces for. heads up: this one's admin-only π-R,--repo <string>β repository name with owner, formatted likeuser/repo. keep the slash, bestie π-t,--template <string>β format the JSON output using a Go template. for the details, seegh help formattingπ¦-u,--user <username>β the username to list codespaces for. this is used with--org, so they're a duo, not a solo act π«Ά-w,--webβ list codespaces in the web browser instead. cannot be used with--useror--orgβ pick a lane ngl π«
π ALIASES π
because typing the whole thing is so much effort:
gh codespace lsgh cs ls
short, sweet, iconic β
π JSON FIELDS π
these are the fields you can get out of --json, in the exact order the page gives 'em:
createdAtdisplayNamegitStatuslastUsedAtmachineNamenameownerrepositorystatevscsTarget
no cap, that's the whole list π
π§ EXIT CODES π§
so you know what happened when it's done:
0β Successful execution π1β Error π2β Command canceled π4β Authentication required (go log in bestie) π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so like, don't come for me if there's a fifth one β check gh help π
π₯ SEE ALSO π₯
gh-codespace(1)β the big sibling page, go read it π«Ά
okay that's the whole thing! sourced from the GitHub CLI manual, v2.102.0, dated Oct 2026 β and yep, that's genuinely what GH-CODESPACE-LIST(1) says at the bottom. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms