GH-CODESPACE-LIST(1) GitHub CLI manual GH-CODESPACE-LIST(1)

# [NAME](#NAME)

gh-codespace-list - List codespaces

# [SYNOPSIS](#SYNOPSIS)

**gh codespace list \[flags]**

# [DESCRIPTION](#DESCRIPTION)

List codespaces of the authenticated user.

Alternatively, organization administrators may list all codespaces billed to the organization.

# [OPTIONS](#OPTIONS)

[**-q**, **--jq** **&lt;expression&gt;**](#q)

Filter JSON output using a jq expression

[**--json** **&lt;fields&gt;**](#json)

Output JSON with the specified fields

[**-L**, **--limit** **&lt;int&gt; (default 30)**](#L)

Maximum number of codespaces to list

[**-o**, **--org** **&lt;login&gt;**](#o)

The login handle of the organization to list codespaces for (admin-only)

[**-R**, **--repo** **&lt;string&gt;**](#R)

Repository name with owner: user/repo

[**-t**, **--template** **&lt;string&gt;**](#t)

Format JSON output using a Go template; see "gh help formatting"

[**-u**, **--user** **&lt;username&gt;**](#u)

The username to list codespaces for (used with --org)

[**-w**, **--web**](#w)

List codespaces in the web browser, cannot be used with --user or --org

# [ALIASES](#ALIASES)

gh codespace ls, gh cs ls

# [JSON FIELDS](#JSON_FIELDS)

**createdAt**, **displayName**, **gitStatus**, **lastUsedAt**, **machineName**, **name**, **owner**, **repository**, **state**, **vscsTarget**

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [SEE ALSO](#SEE_ALSO)

[**gh-codespace(1)**](/man/os/gh/gh-codespace.1)

Oct 2026

---

Document: gh-codespace-list(1) from gh 2.103.3-r1 (Chainguard OS)
Source: https://github.com/cli/cli
