GH-CODESPACE-CREATE(1) GitHub CLI manual GH-CODESPACE-CREATE(1)

gh-codespace-create - Create a codespace

gh codespace create [flags]

repository branch

do not prompt to accept additional permissions requested by the codespace

path to the devcontainer.json file to use when creating codespace

display name for the codespace (48 characters or less)

allowed inactivity before codespace is stopped, e.g. "10m", "1h"

location: {EastUs|SouthEastAsia|WestEurope|WestUs2} (determined automatically if not provided)

hardware specifications for the VM

repository name with owner: user/repo

allowed time after shutting down before the codespace is automatically deleted (maximum 30 days), e.g. "1h", "72h"

show status of post-create command and dotfiles

create codespace from browser, cannot be used with --display-name, --idle-timeout, or --retention-period

gh-codespace(1)

Nov 2024