Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 51 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@astrojs/starlight-docsearch": "0.7.0",
"@astrojs/starlight-tailwind": "5.0.0",
"@cloudflare/vitest-pool-workers": "0.10.7",
"@cloudflare/workers-types": "4.20260317.1",
"@cloudflare/workers-types": "4.20260331.1",
"@expressive-code/plugin-collapsible-sections": "0.41.3",
"@expressive-code/plugin-line-numbers": "0.41.3",
"@floating-ui/react": "0.27.16",
Expand Down Expand Up @@ -140,7 +140,7 @@
"unist-util-visit": "5.0.0",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.2.4",
"wrangler": "4.75.0"
"wrangler": "4.79.0"
},
"engines": {
"npm": "11.9.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Create, manage, search AI Search instances with Wrangler CLI
description: Use the wrangler ai-search command namespace to manage AI Search instances from the CLI.
products:
- ai-search
date: 2026-04-01
---

[AI Search](/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:

```sh
wrangler ai-search create my-instance --type r2 --source my-bucket
```

Use `wrangler ai-search search` to query an instance directly from the CLI:

```sh
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](/ai-search/wrangler-commands/).
11 changes: 11 additions & 0 deletions src/content/docs/ai-search/wrangler-commands.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
pcx_content_type: reference
title: Wrangler commands
sidebar:
order: 5
description: Manage AI Search instances from the command line using Wrangler.
---

import { Render } from "~/components";

<Render file="wrangler-commands/ai-search" product="workers" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
{}
---

import { WranglerNamespace } from "~/components";

<WranglerNamespace namespace="ai-search" />
4 changes: 4 additions & 0 deletions src/content/release-notes/ai-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ link: "/ai-search/platform/release-note/"
productName: AI Search
productLink: "/ai-search/"
entries:
- publish_date: "2026-04-01"
title: Wrangler CLI support for AI Search
description: |-
Manage AI Search instances from the command line with the `wrangler ai-search` command namespace. Create, list, update, delete, search, and get usage statistics for instances without leaving your terminal. All commands support `--json` for structured output that scripts and AI agents can parse directly. Refer to [Wrangler commands](/ai-search/wrangler-commands/) for full usage details.
- publish_date: "2026-03-23"
title: Custom metadata filtering
description: |-
Expand Down
Loading