2021-11-03 16:08:29 +00:00
|
|
|
# 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 codespace create`
|
|
|
|
|
|
|
|
- List all available codespaces:
|
|
|
|
|
|
|
|
`gh codespace list`
|
|
|
|
|
|
|
|
- Connect to a codespace via SSH interactively:
|
|
|
|
|
|
|
|
`gh codespace ssh`
|
|
|
|
|
2023-01-10 22:34:34 +00:00
|
|
|
- Transfer a specific file to a codespace interactively:
|
2021-11-03 16:08:29 +00:00
|
|
|
|
|
|
|
`gh codespace cp {{path/to/source_file}} remote:{{path/to/remote_file}}`
|
|
|
|
|
|
|
|
- List the ports of a codespace interactively:
|
|
|
|
|
|
|
|
`gh codespace ports`
|
|
|
|
|
2023-01-10 22:34:34 +00:00
|
|
|
- Display the logs from a codespace interactively:
|
2021-11-03 16:08:29 +00:00
|
|
|
|
|
|
|
`gh codespace logs`
|
|
|
|
|
|
|
|
- Delete a codespace interactively:
|
|
|
|
|
|
|
|
`gh codespace delete`
|
|
|
|
|
|
|
|
- Display help for a subcommand:
|
|
|
|
|
2023-01-10 22:34:34 +00:00
|
|
|
`gh codespace {{code|cp|create|delete|edit|...}} --help`
|