Export user data via CLI

Right now I need to combine two different exports to get the results I need to import everything to my tool.
I’m exporting the .json file from the editor to get all the user data and then exporting the images via CLI so I could use “split-layers”.
Another thing I noticed is that there’s no option to export all layers via the editor so even my current method is a bit too annoying (Opening all the groups and making sure all the layers are selected and using “selected layers”).