AI Search supports a wrangler ai-search command namespace. Use it to manage instances from the command line. The following commands are available:
CommandDescriptionwrangler ai-search createCreate a new instance with an interactive wizardwrangler ai-search listList all instances in your accountwrangler ai-search getGet details of a specific instancewrangler ai-search updateUpdate the configuration of an instancewrangler ai-search deleteDelete an instancewrangler ai-search searchRun a search query against an instancewrangler ai-search statsGet usage statistics for an instance The create command guides you through setup, choosing a name, source type (r2 or web), and data source. You can also pass all options as flags for non-interactive use: wrangler ai-search create my-instance --type r2 --source my-bucket Use wrangler ai-search search to query an instance directly from the CLI: wrangler ai-search search my-instance --query "how do I configure caching?" All commands support --json for structured output that scripts and AI agents can parse directly. For full usage details, refer to the Wrangler commands documentation.
Fetched April 4, 2026