php bin/console make:crud

Create CRUD for Doctrine entity class

Usage

make:crud [--with-tests] [--] [<entity-class>]

Arguments

entity-class   The class name of the entity to create CRUD (e.g. <fg=yellow>GrumpyKangaroo</>) 

Options

      --with-tests   Generate PHPUnit Tests 

Help

The make:crud command generates crud controller with templates for selected entity.

php bin/console make:crud BlogPost

If the argument is missing, the command will ask for the entity class name interactively.
To generate tailored PHPUnit tests, simply call:

php bin/console make:crud --with-tests

This will generate a unit test in tests/ for you to review then use
to test the new functionality of your app.