Yii2 generate authItem from controller name and action

Let say I have number of controllers and their actions in backend, Is there a way to generate authItem from controller and their actions using command line or some easy method?

What is authItem? Like in RBAC?

I would like to recommend the following extension:

mdmsoft/yii2-admin

This is an RBAC Manager for Yii 2.

Although there might be a better RBAC manager than this, I’m not very sure, personally I’m using this and satisfied with the features of it.

Among other things, it enables you to scan your app and create auth items (route permissions) for controllers and actions.

Yeah RBAC.