Create and grant permissions in database with acl in cakephp 4.2

Can I create permissions in database and not by cli with acl? How can I do that?

The database structure is pretty well documented, and you should know how to write records to the database, so put those together?

AFAIK you can have either permissions to models, in which you need a model and its primary id
or routes permissions, the cli works fine to generate them.

You could edit/create those by hand, but you need the right values for the tree or fix them with recover()

I created a recursive loop to show the three in web UI to allow/reject permissions to certain requesters, its kind of a mess but its doable