← 返回命令列表

Linux command

gh-codespace 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List codespaces

gh codespace list

Create a codespace

gh codespace create

Create for specific repo

gh codespace create -r [owner/repo]

SSH into codespace

gh codespace ssh

Stop a codespace

gh codespace stop -c [codespace_name]

Delete a codespace

gh codespace delete -c [codespace_name]

Open in VS Code

gh codespace code

说明

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

参数

-r, --repo _owner/repo_
Repository.
-c, --codespace _name_
Codespace name.
-m, --machine _type_
Machine type.

FAQ

What is the gh-codespace command used for?

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

How do I run a basic gh-codespace example?

Run `gh codespace list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --repo _owner/repo_ do in gh-codespace?

Repository.