Repository navigation
Use gh codespace code --web to restart a codespace in the browser - #47013
Conversation
gh has no codespace open subcommand, so the documented command fails with 'unknown flag: --web'. gh codespace code --web opens the codespace in the web client.
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
There was a problem hiding this comment.
🟢 Approval recommended
The review found no active issues, and the documentation now uses the valid gh codespace code --web command consistently.
No open issues 🎉
What changed in this PR
Corrects the Codespaces restart documentation to use the valid gh codespace code --web command for opening a codespace in the browser.
Changes:
- Replaced the invalid command in the explanatory bullet and corresponding shell code block.
| File | Description |
|---|---|
| content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md | Updates the browser-based codespace restart instructions to use gh codespace code --web. |
Review effort: Lite
subatoi
left a comment
There was a problem hiding this comment.
Many thanks for spotting that and raising a fix, @Manishram-ai; I'll get this merged now
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
Closes: N/A
In the CLI version of "Restarting a codespace", the browser option tells you to run
gh codespace open --web. gh has nocodespace opensubcommand, so that command fails:Without
--webyou getunknown command "open" for "gh codespace". The codespace subcommands are registered inpkg/cmd/codespace/root.go, and there's noopenamong them. Opening a codespace in the browser isgh codespace code --web, which "Opening an existing codespace" already uses.What's being changed (if available, include any code snippets, screenshots, or gifs):
In
content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md,gh codespace open --webbecomesgh codespace code --webin the bullet and in its code block. Nothing else on the page changes.Check off the following: