You use
Code:
calibredb list -s "search-term" -f ""
and pipe | the output through a filter to remove the first line, ("id") then pipe the resulting list of ids to
Code:
calibredb export [options]
In bash that would be
Code:
calibredb list -s "search-term" -f "" | tail -n +2 | calibredb export [options]
tail is a linux command to output only the last x lines (or start from line number +2) but I'm not sure how to do the equivalent on Windows, if you are using Windows.