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

# [NAME](#NAME)

gh-codespace - Connect to and manage codespaces

# [SYNOPSIS](#SYNOPSIS)

**gh codespace \[flags]**

# [AVAILABLE COMMANDS](#AVAILABLE_COMMANDS)

[**gh-codespace-code(1)**](#gh_codespace_code%281%29)

Open a codespace in Visual Studio Code

[**gh-codespace-cp(1)**](#gh_codespace_cp%281%29)

Copy files between local and remote file systems

[**gh-codespace-create(1)**](#gh_codespace_create%281%29)

Create a codespace

[**gh-codespace-delete(1)**](#gh_codespace_delete%281%29)

Delete codespaces

[**gh-codespace-edit(1)**](#gh_codespace_edit%281%29)

Edit a codespace

[**gh-codespace-jupyter(1)**](#gh_codespace_jupyter%281%29)

Open a codespace in JupyterLab

[**gh-codespace-list(1)**](#gh_codespace_list%281%29)

List codespaces

[**gh-codespace-logs(1)**](#gh_codespace_logs%281%29)

Access codespace logs

[**gh-codespace-ports(1)**](#gh_codespace_ports%281%29)

List ports in a codespace

[**gh-codespace-rebuild(1)**](#gh_codespace_rebuild%281%29)

Rebuild a codespace

[**gh-codespace-ssh(1)**](#gh_codespace_ssh%281%29)

SSH into a codespace

[**gh-codespace-stop(1)**](#gh_codespace_stop%281%29)

Stop a running codespace

[**gh-codespace-view(1)**](#gh_codespace_view%281%29)

View details about a codespace

# [ALIASES](#ALIASES)

gh cs

# [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(1)**](/man/os/gh/gh.1)

Oct 2026

---

Document: gh-codespace(1) from gh 2.102.0-r2 (Chainguard OS)
Source: https://github.com/cli/cli
