qawolf init scaffolds a project for writing flow files by hand. Most users should pull flows from QA Wolf instead — the platform is where flow creation, AI-powered test generation, and team collaboration live, and qawolf flows pull brings those flows into a local cache the CLI can run from. Reach for qawolf init only when you want to author flows locally without the platform.
Scaffold a new project
The command creates the following files:
qawolf.config.ts— a project configuration file generated for future use; the CLI does not read it yet.src/flows/example.flow.ts— a minimal web flow you can edit or delete..qawolf/.gitignore— ignores the contents of.qawolf/, such as flows pulled from the platform. Run artifacts inqawolf-output/are not covered.
package.json, the CLI creates one with "type": "module", the @qawolf/flows dependency, and a test:e2e script that runs qawolf flows run. If a package.json already exists, the CLI only adds the test:e2e script.
Write a flow
Flow files live anywhere in your project as long as they match the glob**/*.flow.{ts,js}. The example flow is a good starting point: