# testpilot generate
Source: https://www.jetify.com/docs/docs/testpilot/reference/cli/testpilot-generate

Generate a pilot plan from a prompt

```bash theme={null}
testpilot generate [test prompt] [flags]
```

## Description[​](#description "Direct link to Description")

<Info>
  This feature is experimental. It may generate erroneous or incorrect tests, and you should review
  any tests before executing or checking them in.
</Info>

Generate a pilot plan from a prompt. The prompt should describe the functionality to be tested, and
the command will generate a pilot plan with multiple test cases. For best results, include the URL
of the application under test in the prompt, as well as the expected behavior and any specific
scenarios to cover.

You can also provide additional context by specifying one or more files using the `--context`
option. This is useful for providing API documentation, example tests, or other relevant information
that can help the AI generate more accurate test cases.

## Examples[​](#examples "Direct link to Examples")

```bash theme={null}