LinuxCommandLibrary

gh-codespace

manage cloud-hosted development environments

TLDR

List codespaces

$ gh codespace list
copy
Create a codespace
$ gh codespace create
copy
Create for specific repo
$ gh codespace create -r [owner/repo]
copy
SSH into codespace
$ gh codespace ssh
copy
Stop a codespace
$ gh codespace stop -c [codespace_name]
copy
Delete a codespace
$ gh codespace delete -c [codespace_name]
copy
Open in VS Code
$ gh codespace code
copy

SYNOPSIS

gh codespace command [options]

DESCRIPTION

gh codespace manages GitHub Codespaces, cloud-hosted development environments. Create, connect, and manage codespaces from the CLI.

PARAMETERS

-r, --repo owner/repo

Repository.
-c, --codespace name
Codespace name.
-m, --machine type
Machine type.

SUBCOMMANDS

list

List codespaces.
create
Create a codespace.
ssh
SSH into codespace.
code
Open in VS Code.
stop
Stop a codespace.
delete
Delete a codespace.
ports
Manage ports.
logs
View logs.

SEE ALSO

gh(1), gh-repo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community