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

# template

> Inspect differences from the exact upstream Compose template recorded for a site.

Created sites retain `.libops/template.lock.yaml` with their exact upstream
template commit and contract digest. Use `template diff` to compare that source
with both the current upstream and the downstream site checkout:

```bash theme={null}
sitectl template diff
```

The command uses a temporary checkout and does not modify the site. Review the
two name-status diffs before choosing an upstream update or reconciling local
customizations.

## Reference

Inspect the upstream template recorded for this site

```bash theme={null}
sitectl template <command>
```

### `template diff`

Read .libops/template.lock.yaml, fetch the recorded repository into a temporary checkout, and show separate upstream and downstream name-status diffs. The site checkout is not modified.

```bash theme={null}
sitectl template diff
```
