5 Commands für Volltextsuche, MongoDB-Aggregationen, Exports und Bulk-Operationen.
Commands
| Command | Alias | Zweck |
|---|---|---|
| search | find |
Volltextsuche + Model-Search |
| aggregate | agg |
MongoDB-Pipelines (7 Subcommands) |
| export | exp |
Datenexport mit Format-Wahl |
| batch | — | Bulk-Operationen |
| access | — | Zugriffsrechte überblicken |
Hero: ay aggregate
ay aggregate ist der mächtigste Query-Command. Er öffnet einen Wizard oder führt vordefinierte Pipelines aus:
ay aggregate wizard # Interaktiv
ay aggregate run <saved-pipeline> # Gespeicherte Pipeline
ay aggregate exec --model Orders \
--pipeline '[{"$match":{"status":"paid"}},{"$group":{"_id":"$country","total":{"$sum":"$amount"}}}]'
Subcommands: run, exec, list, save, validate, models, wizard.
Export-Beispiele
ay export consumers --format csv --filter '{"active":true}' -o consumers.csv
ay export orders --format json --date-range 2026-04-01..2026-04-30