CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
x-origin-cache: HIT
last-modified: Thu, 17 Jul 2025 21:46:50 GMT
access-control-allow-origin: *
etag: W/"68796f4a-1631b"
expires: Wed, 23 Jul 2025 08:52:26 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: CF55:B54B0:75133:8C33D:6880A06F
accept-ranges: bytes
age: 0
date: Wed, 23 Jul 2025 08:42:26 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210048-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753260146.908487,VS0,VE212
vary: Accept-Encoding
x-fastly-request-id: 267b981bc7ec8b76fb53b7899077cfca4936f41a
content-length: 9887
GitHub CLI | Take GitHub to the command line
CLI manual
gh codespace create
Create a codespace
gh codespace create [flags]
Options
-b
,--branch <string>
- Repository branch
-
--default-permissions
- Do not prompt to accept additional permissions requested by the codespace
-
--devcontainer-path <string>
- Path to the devcontainer.json file to use when creating codespace
-d
,--display-name <string>
- Display name for the codespace (48 characters or less)
-
--idle-timeout <duration>
- Allowed inactivity before codespace is stopped, e.g. "10m", "1h"
-l
,--location <string>
- Location: {EastUs|SouthEastAsia|WestEurope|WestUs2} (determined automatically if not provided)
-m
,--machine <string>
- Hardware specifications for the VM
-R
,--repo <string>
- Repository name with owner: user/repo
-
--retention-period <duration>
- Allowed time after shutting down before the codespace is automatically deleted (maximum 30 days), e.g. "1h", "72h"
-s
,--status
- Show status of post-create command and dotfiles
-w
,--web
- Create codespace from browser, cannot be used with --display-name, --idle-timeout, or --retention-period