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

gh-codespace-list - List codespaces

gh codespace list [flags]

List codespaces of the authenticated user.

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

Filter JSON output using a jq expression
Output JSON with the specified fields
Maximum number of codespaces to list
The login handle of the organization to list codespaces for (admin-only)
Repository name with owner: user/repo
Format JSON output using a Go template; see "gh help formatting"
The username to list codespaces for (used with --org)
List codespaces in the web browser, cannot be used with --user or --org

gh codespace ls, gh cs ls

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

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.

gh-codespace(1)

Jun 2025