ExpressionEngine Docs

make:widget

Widget Generator – Creates a new Dashboard Widget for an add-on

Options list:

    --addon=<value>
    -a <value>
        Folder for third-party add-on you want to add the widget to

Examples:

Generating a widget:

php eecli.php make:widget MyNewWidget --addon=my_existing_addon