> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nsc github profile rebuild-base-image

Trigger a rebuild of a profile's custom base image.

`nsc github profile rebuild-base-image` kicks off a rebuild of the custom base image associated with a GitHub runner profile. This is useful after changing the profile's Dockerfile or other image configuration (for example via `nsc github profile update --dockerfile`), so that subsequent runners pick up the new image instead of the previously built one.

## Usage

```bash theme={null}
nsc github profile rebuild-base-image --profile_id <profile-id> [flags]
```

### Example

```bash theme={null}
nsc github profile rebuild-base-image --profile_id <profile-id>
```

## Required Flags

<h3 id="--profile_id-string">
  \--profile\_id string
</h3>

Profile ID whose base image to rebuild.

## Optional Flags

<h3 id="-o---output-string">
  -o, --output string
</h3>

Output format. Default: `plain`.

Supported values: `plain`, `json`.

## Related Topics

* [nsc github profile](/docs/reference/cli/github-profile) - Manage GitHub runner profiles
* [nsc github profile update](/docs/reference/cli/github-profile-update) - Update a profile's Dockerfile
