---
name: "gh-codespace"
section: "1"
platform: "linux"
package: "github-cli"
version: "2.102.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gh-codespace"
---

# gh-codespace(1)

Connect to and manage codespaces

## NAME

gh-codespace - Connect to and manage codespaces

## SYNOPSIS

**gh codespace \[flags\]**

## AVAILABLE COMMANDS

- **[gh-codespace-code(1)](/gh-codespace-code/1.md)**

  Open a codespace in Visual Studio Code

- **[gh-codespace-cp(1)](/gh-codespace-cp/1.md)**

  Copy files between local and remote file systems

- **[gh-codespace-create(1)](/gh-codespace-create/1.md)**

  Create a codespace

- **[gh-codespace-delete(1)](/gh-codespace-delete/1.md)**

  Delete codespaces

- **[gh-codespace-edit(1)](/gh-codespace-edit/1.md)**

  Edit a codespace

- **[gh-codespace-jupyter(1)](/gh-codespace-jupyter/1.md)**

  Open a codespace in JupyterLab

- **[gh-codespace-list(1)](/gh-codespace-list/1.md)**

  List codespaces

- **[gh-codespace-logs(1)](/gh-codespace-logs/1.md)**

  Access codespace logs

- **[gh-codespace-ports(1)](/gh-codespace-ports/1.md)**

  List ports in a codespace

- **[gh-codespace-rebuild(1)](/gh-codespace-rebuild/1.md)**

  Rebuild a codespace

- **[gh-codespace-ssh(1)](/gh-codespace-ssh/1.md)**

  SSH into a codespace

- **[gh-codespace-stop(1)](/gh-codespace-stop/1.md)**

  Stop a running codespace

- **[gh-codespace-view(1)](/gh-codespace-view/1.md)**

  View details about a codespace

## ALIASES

gh cs

## 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

**[gh(1)](/gh/1.md)**
