AI Search - Manage AI Search namespaces with Wrangler CLI
Key Points
- Namespace-level Wrangler commands
- Structured JSON output for automation
- Instance commands accept --namespace flag
Summary
AI Search adds namespace-level Wrangler CLI commands to manage namespaces from the terminal, scripts, CI pipelines, and agent workflows. You can list, create, get, update, and delete namespaces, and use machine-readable output for automation.
Key Points
- New namespace commands:
wrangler ai-search namespace list,create,get,update,deletefor managing AI Search namespaces. - Example: create a namespace:
wrangler ai-search namespace create docs-production --description "Production documentation search". - List with filtering and pagination:
wrangler ai-search namespace list --search docs --page 1 --per-page 10. - Use
--jsonwithlist,create,get, andupdateto return structured output suitable for scripts and AI agents. - Instance-level commands support
--namespaceto operate on instances inside a specific namespace (e.g.wrangler ai-search list --namespace docs-production). - Practical for automation: combine
--json, pagination flags, and--namespacein CI, agents, and orchestration scripts.
For full usage and examples, refer to the AI Search Wrangler commands documentation.