Skip to main content

조직의 codespace 나열

조직의 현재 활성 또는 중지된 codespace를 모두 나열할 수 있습니다.

이 기능을 사용할 수 있는 사용자

To list all of the current codespaces for your organization, you must be an organization owner.

Organizations on GitHub Team and GitHub Enterprise plans can pay for members' and collaborators' use of GitHub Codespaces. These organizations can then access settings and policies to manage codespaces paid for by the organization. For more information, see "Choosing who owns and pays for codespaces in your organization" and "GitHub’s plans."


As an organization owner, you can list all of the currently active and stopped codespaces for your organization. You might want to do this to check how many codespaces users are creating, to make sure they aren't incurring unnecessary costs. For information about pricing, see "About billing for GitHub Codespaces."

The easiest way to list the codespaces for an organization is by using GitHub CLI. You can also use the REST API, which provides more information about each codespace.

For information on how to see the current total Codespaces usage for your organization or enterprise, and generate a detailed report, see "Viewing your GitHub Codespaces usage."

Using GitHub CLI to list codespaces

To list all of the current codespaces for a specified organization, use the following command.

gh codespace list --org ORGANIZATION

This command returns a list that includes the following information for each codespace:

  • The name and display name
  • The user who created the codespace
  • The repository and branch
  • The current state of the codespace

To list all of the current codespaces for an organization that were created by a specific user, use the following command.

gh codespace list --org ORGANIZATION --user USER

Note: In the above commands, replace ORGANIZATION with the name of the organization you are querying. You must be an owner of the organization.

Using the REST API to list codespaces

You can use the /orgs/{org}/codespaces API endpoint as an alternative method of listing the current codespaces for an organization. This returns more information than GitHub CLI; for example, the machine type details.

For more information about this endpoint, see "Codespaces organizations."