Export - Import devices from a LibreNMS on my new LibreNMS

Hello,

I have an instance of librenms and I want to make a new one. But I have more than 5000 pieces of equipment on it and I don’t really want to add them one by one… What should I do? Is it possible to export a list of devices via the API then import via the command: “lnms device:add [hostname or ip]” in a python script?

Best regards.