CLI configure API token through LNMS

Installing LibreNMS with a 3rd party app like Oxidized requires an IP token that you can only generate through the webgui. This means you have to install the Libre server first, manually configure it then install the Oxidized server.

Having something like “lnms api-toke:add” would open up many possibility when deploying 3rd part tool integrations or creating plugins.

The way the API works now, you cannot do that because API tokens belong to a user. Maybe you could require a user to be specified on the cli, but that is kind of messy.

The real solution would be to get RBAC permissions implemented and allow roles to be assigned to tokens independent of users.

I would welcome anyone’s contribution to get RBAC implemented.