craft-cli 0.4.0: collection views for agents
craft-cli can now create and manage Craft collection views, including table, gallery, kanban, filters, sorting, grouping, hidden fields, field order, calculations, and the active view.
1 min read
craft-cli 0.4.0 is out. Release on GitHub.
This release adds first-class commands for Craft’s new collection view API:
craft col views <collectionId>
craft col views create <collectionId> --file view.json
craft col views update <collectionId> <viewId> --file view.json
craft col views active <collectionId> <viewId>
craft col views rm <collectionId> <viewId>Agents can now create and manage stored table, gallery, and kanban views, including filters, sorting, grouping, hidden fields, field order, column widths, calculations, and the active view.
The important caveat is that these endpoints manage view configuration only. They do not execute a view or return filtered rows. Use craft col items <collectionId> when the agent needs the collection data itself.
Upgrade
cd ~/dev/craft-cli
git pull
./install.sh
craft which kanban