notmuch-tag(1) on Linux
The text 8790dba976fc, as Debian 12 (Bookworm) shipped it.
add/remove tags for all messages matching the search terms
Flags it lists
-
--batch -
--input -
--remove-all