OpenAICloudflare Developer PlatformJun 10, 2026, 12:00 AM

AI Search - Manage AI Search namespaces with Wrangler CLI

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

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, delete for 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 --json with list, create, get, and update to return structured output suitable for scripts and AI agents.
  • Instance-level commands support --namespace to operate on instances inside a specific namespace (e.g. wrangler ai-search list --namespace docs-production).
  • Practical for automation: combine --json, pagination flags, and --namespace in CI, agents, and orchestration scripts.

For full usage and examples, refer to the AI Search Wrangler commands documentation.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

AI Search - Wrangler CLIでAI Searchネームスペースを管理

AI Search - Wrangler CLIでAI Searchネームスペースを管理

AI SearchはネームスペースレベルのWranglerコマンドをサポートするようになり、ターミナル、スクリプト、エージェントワークフローからネームスペースを簡単に管理できるようになりました。以下のコマンドが利用可能です。

利用可能なコマンド

  • wrangler ai-search namespace list — AI Searchネームスペースを一覧表示
  • wrangler ai-search namespace create — 新しいAI Searchネームスペースを作成
  • wrangler ai-search namespace get — ネームスペースの詳細を取得
  • wrangler ai-search namespace update — ネームスペースの説明を更新
  • wrangler ai-search namespace delete — AI Searchネームスペースを削除

使用例

ネームスペースを作成

新しいアプリケーションやテナント用にネームスペースをCLIから直接作成できます。端末例:

wrangler ai-search namespace create docs-production --description "Production documentation search"

ネームスペースを一覧表示(ページネーションやフィルタリング)

名前や説明でフィルタしたり、ページネーションを指定して一覧表示できます。端末例:

wrangler ai-search namespace list --search docs --page 1 --per-page 10

構造化出力(自動化・AIエージェント向け)

--jsonlistcreategetupdate と併用すると、オートメーションやAIエージェントが直接解析できる構造化された出力を返します。

インスタンス操作でのネームスペース指定

インスタンスレベルのコマンドは --namespace フラグをサポートするようになったため、特定のネームスペース内のインスタンスとCLIからやり取りできます。端末例:

wrangler ai-search list --namespace docs-production

詳細

フル使用法の詳細については、AI Search Wrangler commands documentation を参照してください。