snippetbashTip
gh codespace — Connect and manage your codespaces in GitHub. More information: <https://cli.github.com/manual/gh_co
Viewed 0 times
commandandcodespacesgh codespacecliconnectmanageyour
Problem
How to use the
gh codespace command: Connect and manage your codespaces in GitHub. More information: <https://cli.github.com/manual/gh_codespace>.Solution
gh codespace — Connect and manage your codespaces in GitHub. More information: <https://cli.github.com/manual/gh_codespace>.Create a codespace in GitHub interactively:
gh {{[cs|codespace]}} createList all available codespaces:
gh {{[cs|codespace]}} {{[ls|list]}}Connect to a codespace via SSH interactively:
gh {{[cs|codespace]}} sshTransfer a specific file to a codespace interactively:
gh {{[cs|codespace]}} cp {{path/to/source_file}} remote:{{path/to/remote_file}}List the ports of a codespace interactively:
gh {{[cs|codespace]}} portsDisplay the logs from a codespace interactively:
gh {{[cs|codespace]}} logsDelete a codespace interactively:
gh {{[cs|codespace]}} deleteDisplay help for a subcommand:
gh {{[cs|codespace]}} {{code|cp|create|delete|edit|...}} {{[-h|--help]}}Code Snippets
Create a codespace in GitHub interactively
gh {{[cs|codespace]}} createList all available codespaces
gh {{[cs|codespace]}} {{[ls|list]}}Connect to a codespace via SSH interactively
gh {{[cs|codespace]}} sshTransfer a specific file to a codespace interactively
gh {{[cs|codespace]}} cp {{path/to/source_file}} remote:{{path/to/remote_file}}List the ports of a codespace interactively
gh {{[cs|codespace]}} portsContext
tldr-pages: common/gh codespace
Revisions (0)
No revisions yet.