LinuxCommandLibrary

gh-codespace

Connect and manage your codespaces in GitHub.

TLDR

Create a codespace in GitHub interactively

$ gh codespace create
copy


List all available codespaces
$ gh codespace list
copy


Connect to a codespace via SSH interactively
$ gh codespace ssh
copy


Transfer a specific file to a codespace interactively
$ gh codespace cp [path/to/source_file] remote:[path/to/remote_file]
copy


List the ports of a codespace interactively
$ gh codespace ports
copy


Display the logs from a codespace interactively
$ gh codespace logs
copy


Delete a codespace interactively
$ gh codespace delete
copy


Display help for a subcommand
$ gh codespace [code|cp|create|delete|edit|...] --help
copy

SYNOPSIS

gh codespace [flags]

COMMANDS

gh-codespace-code(1)

Open a codespace in Visual Studio Code

gh-codespace-cp(1)

Copy files between local and remote file systems

gh-codespace-create(1)

Create a codespace

gh-codespace-delete(1)

Delete a codespace

gh-codespace-list(1)

List your codespaces

gh-codespace-logs(1)

Access codespace logs

gh-codespace-ports(1)

List ports in a codespace

gh-codespace-ssh(1)

SSH into a codespace

gh-codespace-stop(1)

Stop a running codespace

SEE ALSO

gh(1)

Copied to clipboard