Generate
Generate fixture data files for your application collections. This creates reusable development and test datasets based on your current schema.
Generated fixtures are useful for populating empty projects with realistic records, relationships, and varied states so you can build against working data immediately.
By default, fixture generation creates a modest number of records per collection. You can increase or reduce volume depending on your needs.
Fixtures are stored in the data/fixtures directory. Fixtures are loaded automatically during testing with vela test. Fixtures load after seed data and can depend on seed data records.
Syntax
$ vela fixtures generate [options] Options
-c, --count <count>
Set how many records to generate for each collection.
Use smaller counts for quick local testing and larger counts for stress testing tables, dashboards, pagination, and filtering.
-s, --seed <seed>
Use a deterministic random seed.
This ensures the same fixture data is generated each time, which is useful for automated tests, reproducible bug reports, and shared team environments.
-f, --force
Overwrite existing fixture files and clear any currently loaded fixtures first.
Use when you want to fully replace prior generated datasets.
AI
ProThe fixtures generate command supports the --ai option for more realistic data generation.
$ vela fixtures generate --ai