.nh .TH "GH-CODESPACE-REBUILD" "1" "Mar 2024" "" "GitHub CLI manual" .SH NAME .PP gh-codespace-rebuild - Rebuild a codespace .SH SYNOPSIS .PP \fBgh codespace rebuild [flags]\fR .SH DESCRIPTION .PP 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. .SH OPTIONS .TP \fB-c\fR, \fB--codespace\fR \fB\fR Name of the codespace .TP \fB--full\fR perform a full rebuild .TP \fB-R\fR, \fB--repo\fR \fB\fR Filter codespace selection by repository name (user/repo) .TP \fB--repo-owner\fR \fB\fR Filter codespace selection by repository owner (username or org) .SH SEE ALSO .PP \fBgh-codespace(1)\fR