AI Search - Wrangler CLI commands to manage instances
Cloudflare AI Search now supports a wrangler ai-search command namespace for managing instances from the command line. Create, list, update, delete, search, and get statistics on AI Search instances directly via CLI with optional JSON output for scripting.
AI Search supports a wrangler ai-search command namespace. Use it to manage instances from the command line.
The following commands are available:
| Command | Description |
|---|---|
wrangler ai-search create |
Create a new instance with an interactive wizard |
wrangler ai-search list |
List all instances in your account |
wrangler ai-search get |
Get details of a specific instance |
wrangler ai-search update |
Update the configuration of an instance |
wrangler ai-search delete |
Delete an instance |
wrangler ai-search search |
Run a search query against an instance |
wrangler ai-search stats |
Get 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.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for macOS 2026.8.2100.0
GA release for macOS Cloudflare One Client with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster connects with lower memory use, and numerous reliability fixes across DNS, reauthentication, and client stability.
Cloudflare One Client for Windows 2026.8.2100.0
This GA release improves split tunnel reliability, adds support for non-RFC 1918 local networks, optimizes connection performance with faster reconnections and lower memory usage, and includes numerous bug fixes for DNS, registration, and network handling. The client now features a service recovery mechanism that automatically restarts on system unlock and better handles large hosts files without blocking traffic.
Cloudflare One Client for Linux 2026.8.2100.0
New GA release for Linux with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster tunnel reconnections, and lower memory usage. Includes numerous stability and reliability fixes for DNS, reconnection behavior, and crash issues.