From fc966221f841ba11cdbf206debb780e68f39d14b Mon Sep 17 00:00:00 2001 From: Manish Ram Date: Thu, 19 Nov 2026 14:52:51 -0800 Subject: [PATCH] Use gh codespace code --web to restart a codespace in the browser 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. --- .../stopping-and-starting-a-codespace.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md b/content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md index d793581a774a..00adcd661331 100644 --- a/content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md +++ b/content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md @@ -74,10 +74,10 @@ When you restart a codespace you can choose to open it in {% data variables.prod gh codespace code ``` -* To restart a codespace and open it in your browser, use the `gh codespace open --web` subcommand and then choose the codespace you want to restart from the list that's displayed. +* To restart a codespace and open it in your browser, use the `gh codespace code --web` subcommand and then choose the codespace you want to restart from the list that's displayed. ```shell copy - gh codespace open --web + gh codespace code --web ``` {% endcli %}