I’ve seen a couple references to exporting lists from the command line, but I can’t find any specific documentation about whether this is possible and, if so, how to do it.
I found one example and tried that with a couple lists, one pretty small and one with a few thousand people. The output from the first (smaller) one was just the column headers / field names, the output from the larger one was the headers plus one subscriber record. Nothing about that one record stood out to me as a reason it would have been selected while the rest weren’t.
Just for background, this is for one piece of a home-baked ETL process. I’m getting subscriber data from another source and importing that into phpList after some manipulation, but I want to avoid importing anyone already in the database for two specific lists. I’ve been manually exporting the existing-subscriber data for those lists using Advanced search, and my code uses that (CSV) data to exclude existing subscribers from the import set. This is cumbersome to do frequently (e.g., daily). My ultimate goal is to have hands-off automation handle everything, so I want to script the export of subscriber data from those two lists.
FWIW, I did look at using the REST API for what I’m trying to do, but I didn’t find what I needed.