# `once query test-plan`

Export a replayable test plan with complete discovery and input bindings.

## Synopsis

```text
once query test-plan [OPTIONS]
```

## Options

| Flag | Value | Default | Description |
| --- | --- | --- | --- |
| `--changed-path` | `<PATH>` |  | Changed workspace-relative path. Repeat for multiple paths. |
| `--target` | `<TARGET>` |  | Create an explicit plan for this target instead of selecting by changed path. |
| `--shards` | `<COUNT>` |  | Upload the plan to the configured host and emit a CI shard matrix. |
| `--reference` | `<REFERENCE>` |  | Hosted execution reference. Defaults to `TUIST_SHARD_REFERENCE` or the CI run. |
