OS Manuals

gh-codespace-rebuild(1)

gh-codespace-rebuild - Rebuild a codespace

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

gh-codespace-rebuild - Rebuild a codespace

gh codespace rebuild [flags]

Rebuilding recreates your codespace.

Your code and any current changes will be preserved. Your codespace will be rebuilt using your working directory's dev container. A full rebuild also removes cached Docker images.

Name of the codespace

Perform a full rebuild

Filter codespace selection by repository name (user/repo)

Filter codespace selection by repository owner (username or org)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh-codespace(1)

Oct 2026

gh 2.102.1-r0 · os · ingested 2026-10-21