Manage Your AI Search Namespaces Straight From Wrangler CLI!
Hey there, it's me, Shiichan! Today I've got a fun little treat for all you terminal lovers. You can now manage AI Search namespaces straight from the Wrangler CLI.
Cloudflare ChangelogWhat was announced?
This one comes from the Cloudflare Changelog. New namespace-level Wrangler commands have been added for managing AI Search namespaces. That means you can build out your apps and agent workflows from the command line without opening the dashboard.
The story so far
Until now, handling namespace operations all from the command line was a bit of a hassle. With this update, everything from creating to deleting a namespace lives under wrangler, so it slots right into your usual terminal workflow.
What changes
The best part is that managing namespaces is now much easier to wire into scripts and CI. With the --json flag you can get results back as JSON, so you can parse the output inside an automation pipeline and pass it into the next step. No more clicking around by hand, and that feels great.
Dive Deep
Here are the five new namespace-level commands.
wrangler ai-search namespace list # list namespaces
wrangler ai-search namespace create # create a new namespace
wrangler ai-search namespace get # get namespace details
wrangler ai-search namespace update # update a namespace description
wrangler ai-search namespace delete # delete a namespace
For example, creating one looks like this.
wrangler ai-search namespace create docs-production --description "Production documentation search"
Listing supports pagination and search, so you can narrow things down like this.
wrangler ai-search namespace list --search docs --page 1 --per-page 10
On top of that, the instance-level commands now take a --namespace flag so you can target a specific namespace. You'll find all the details in the AI Search Wrangler commands documentation.
Wrap-up
- New Wrangler commands landed for managing AI Search namespaces
list/create/get/update/deletecover everything from creation to deletion- The
--jsonflag helps with automation, and listing can be filtered with--search,--page, and--per-page - Instance-level commands now support a
--namespaceflag to target a specific namespace
If you lean terminal over dashboard and want to fold AI Search into your CI or agent workflows, this update is right up your alley!