gh codespace

Connect to and manage codespaces

Subcommands

NameDescription
codeOpen a codespace in Visual Studio Code
cpThe cp command copies files between the local and remote file systems
createCreate a codespace
deleteDelete codespaces based on selection criteria. All codespaces for the authenticated user can be deleted, as well as codespaces for a specific repository. Alternatively, only codespaces older than N days can be deleted. Organization administrators may delete any codespace billed to the organization
editEdit a codespace
jupyterOpen a codespace in JupyterLab
listList codespaces of the authenticated user. Alternatively, organization administrators may list all codespaces billed to the organization
logsAccess codespace logs
portsList ports in a codespace
rebuildRebuild a codespace
sshSSH into a codespace
stopStop running a codespace