amgi reads a collection from the terminal. Install it with cargo install --path cli.
search takes the same syntax as the app; see Searching.
Every command takes --json. search exits 1 when nothing matches, and --ids prints
only card ids. --dir (or AMGI_DIR) picks the collection; without it, amgi uses the
folder holding .amgi.sqlite at or above the current one, or else the folder last opened
in the app.