Wrangler CLI·续

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search namespace get

Get details of an AI Search namespace

npmyarnpnpm

npx wrangler ai-search namespace get <NAME>
yarn wrangler ai-search namespace get <NAME>
pnpm wrangler ai-search namespace get <NAME>
  • <NAME> string required

The name of the AI Search namespace. - --json boolean default: false

Return output as clean JSON

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search namespace update

Update an AI Search namespace

npmyarnpnpm

npx wrangler ai-search namespace update <NAME>
yarn wrangler ai-search namespace update <NAME>
pnpm wrangler ai-search namespace update <NAME>
  • <NAME> string required

The name of the AI Search namespace to update. - --description string Updated description for the namespace (max 256 chars). - --json boolean default: false

Return output as clean JSON

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search namespace delete

Delete an AI Search namespace

npmyarnpnpm

npx wrangler ai-search namespace delete <NAME>
yarn wrangler ai-search namespace delete <NAME>
pnpm wrangler ai-search namespace delete <NAME>
  • <NAME> string required

The name of the AI Search namespace to delete. - --force boolean alias: --ydefault: false

Skip confirmation

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search jobs list

List indexing jobs for an AI Search instance

npmyarnpnpm

npx wrangler ai-search jobs list <NAME>
yarn wrangler ai-search jobs list <NAME>
pnpm wrangler ai-search jobs list <NAME>
  • <NAME> string required

The name of the AI Search instance. - --namespace string alias: --ndefault: default

The namespace the instance belongs to. - --json boolean default: false

Return output as clean JSON - --page number default: 1

Page number of the results, can configure page size using "per-page" - --per-page number Number of jobs to show per page

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search jobs create

Trigger a new indexing job for an AI Search instance

npmyarnpnpm

npx wrangler ai-search jobs create <NAME>
yarn wrangler ai-search jobs create <NAME>
pnpm wrangler ai-search jobs create <NAME>
  • <NAME> string required

The name of the AI Search instance. - --namespace string alias: --ndefault: default

The namespace the instance belongs to. - --description string Optional description for the indexing job. - --json boolean default: false

Return output as clean JSON

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search jobs get

Get details of an AI Search indexing job

npmyarnpnpm

npx wrangler ai-search jobs get <NAME> <JOB-ID>
yarn wrangler ai-search jobs get <NAME> <JOB-ID>
pnpm wrangler ai-search jobs get <NAME> <JOB-ID>
  • <NAME> string required

The name of the AI Search instance. - <JOB-ID> string required

The ID of the indexing job. - --namespace string alias: --ndefault: default

The namespace the instance belongs to. - --json boolean default: false

Return output as clean JSON

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search jobs cancel

Cancel an in-progress AI Search indexing job

npmyarnpnpm

npx wrangler ai-search jobs cancel <NAME> <JOB-ID>
yarn wrangler ai-search jobs cancel <NAME> <JOB-ID>
pnpm wrangler ai-search jobs cancel <NAME> <JOB-ID>
  • <NAME> string required

The name of the AI Search instance. - <JOB-ID> string required

The ID of the indexing job to cancel. - --namespace string alias: --ndefault: default

The namespace the instance belongs to. - --force boolean alias: --ydefault: false

Skip confirmation

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

ai-search jobs logs

List log entries for an AI Search indexing job

npmyarnpnpm

npx wrangler ai-search jobs logs <NAME> <JOB-ID>
yarn wrangler ai-search jobs logs <NAME> <JOB-ID>
pnpm wrangler ai-search jobs logs <NAME> <JOB-ID>
  • <NAME> string required

The name of the AI Search instance. - <JOB-ID> string required

The ID of the indexing job. - --namespace string alias: --ndefault: default

The namespace the instance belongs to. - --json boolean default: false

Return output as clean JSON - --page number default: 1

Page number of the results, can configure page size using "per-page" - --per-page number Number of log entries to show per page

<details>

<summary>

Global flags

</summary>

  • <code>--v</code><code>boolean</code> alias: --version

Show version number - <code>--cwd</code><code>string</code>Run as if Wrangler was started in the specified directory instead of the current working directory - <code>--config</code><code>string</code> alias: --c

Path to Wrangler configuration file - <code>--env</code><code>string</code> alias: --e

Environment to use for operations, and for selecting .env and .dev.vars files - <code>--env-file</code><code>string</code>Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files - <code>--install-skills</code><code>boolean</code> default: false

Install Cloudflare skills for detected AI coding agents before running the command - <code>--profile</code><code>string</code>Use a specific auth profile

</details>

Was this helpful?

YesNo

On this page

Wrangler CLI·续 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai-search/wrangler-commands/#page","headline":"Wrangler CLI","description":"Manage AI Search instances from the command line using Wrangler.","url":"https://developers.cloudflare.com/ai-search/wrangler-commands/","inLanguage":"en","image":"https://developers.cloudflare.com/ai-search/wrangler-commands/og.png?v=646a59c194e5f607","dateModified":"2026-07-08","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Use AI Search from agent and application frameworks, including the Vercel AI SDK, the Cloudflare Agents SDK, and LangChain. title: Agents image: https://developers.cloudflare.com/ai-search/agent-sdks/og.png?v=5531aefcf41e2b65


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ai-search/llms.txt
Use this file to discover all available pages before exploring further.