PMS with cli

Automate it to do what?

Also is it possible to add a function to export Playlists as text and import it?

Anything is possible. There is already a request for importing playlist. Option to use existing m3u for playlist feature I don’t know if there is one to export the list.