I wrote a powershell script a few years to extract all my Classic Knowledge Articles into a JSON file (one JSON file per Article Type). It worked very well - and I was then able to use powershell to chunk the export into smaller files with only 200 records so I could reimport them.
After not using this script for a year or two, I just tried running it again, and found that sfdx was only exporting 200 records.
The line in my script to perform the export is like so:
sfdx force:data:tree:export -q "$query" -d $config.sourceOrg --targetusername $config.sourceOrg
The query it uses is dynamically generated - but the query is fine as when I run it in dev console I get the full number of articles returned.
Has the behaviour for SFDX Tree Export changed? And why is it only exporting 200 records? I see that it is supposed to have a maximum of 2000 records, not 200.