# Generate a plan and save to a specific directory
testpilot generate "Test search functionality" --outdir ./tests/search
```

## Options[​](#options "Direct link to Options")

| Option              | Description                                                                                   |
| ------------------- | --------------------------------------------------------------------------------------------- |
| `--context strings` | Path to a file containing context for pilot plan generation (can be specified multiple times) |
| `-h, --help`        | help for generate                                                                             |
| `--outdir string`   | Directory to write the generated pilot plan to                                                |

## SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [testpilot](/docs/testpilot/reference/cli/testpilot) - Testpilot CLI