Skip to content

Generation

via Console

Generate elements in the console using commands:

ddev craft gen [name] # e.g. ./craft gen posts
./craft gen [name] # e.g. ./craft gen posts

New data will be printed to the terminal by default, use --save to save to the database. The --size option generates the specified number of elements.

via Console Panel