Tvheadend server, export m3u playlist

Hello to all Smile

excuse my bad english. I would know how to export the playlist, in m3u format, from tvheadendserver. I read that It’s possible from command line but I don’t know how to do. Can anyone help me please?

I need It because my tvheadend client doesn’t work; after I configure It, my raspberry (on wich I installed OSMC) start the pvr scan and then crash. I tried many times and I almost sure that the configuration is correct so I decided to use Simple IPTV PVR client instead tvheadend client.