yii2 gii command line to create crud code example
Example 1: yii2 gii command line to create model
$ ./yii gii/model --tableName=city --modelClass=City
Example 2: genrate crud using command yii2
yii gii/crud --modelClass=app\models\service --searchModelClass=app\models\ServiceSearch --controllerClass=app\controllers\ServiceController --viewPath=@app\views\service