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

# why

> Explain the commit, checkpoint, prompt, and session behind a file or line.

Explain the captured context behind a file or line.

```bash theme={null}
entire why FILE[:LINE] [flags]
```

Use `entire why` when you want to jump from a file or specific line to the commit, checkpoint, prompt, and session behind it.

## Flags

| Flag | Description |
| - | - |
| `--line LINE` | Explain a specific line, for example `12`. This is the same as `FILE:12`. |
| `--json` | Output explanation as JSON |

## Examples

```bash theme={null}
entire why overview.mdx
entire why overview.mdx:12
entire why overview.mdx --line 12
entire why overview.mdx:12 --json
```

## Continue With

> **[Investigate Why Code Exists](/learn/investigate-why-code-exists)**
>
> Use `entire why` in a full provenance investigation.

> **[checkpoint explain](/cli-reference/checkpoint#checkpoint-explain)**
>
> Inspect the full checkpoint context.
