gh-cs
shorthand for codespaces management
TLDR
Create a codespace
SYNOPSIS
gh cs command [options]
DESCRIPTION
gh cs (codespaces) manages GitHub Codespaces from the command line. Codespaces are cloud-hosted development environments that provide full VS Code experience with configurable compute resources.
The command enables creating, connecting, and managing codespaces without visiting github.com. It supports SSH connections for terminal access and integration with local VS Code installations.
gh cs streamlines cloud development workflows directly from the terminal.
PARAMETERS
create
Create a new codespace.list
List available codespaces.ssh
SSH into a codespace.code
Open codespace in VS Code.stop
Stop a running codespace.delete
Delete a codespace.ports
Manage port forwarding.-c CODESPACE, --codespace CODESPACE
Target codespace name.-R REPO, --repo REPO
Repository for new codespace.--help
Display help information.
CAVEATS
Requires GitHub account with Codespaces access. Usage may incur charges. Codespaces have timeout and retention limits.
HISTORY
gh cs was added to the GitHub CLI to support Codespaces, GitHub's cloud development environment launched in 2020.
