The Real Roadblocks to AI in CX

Hygraph CLI: manage your schema in code, and enable multiverse mode

The Hygraph CLI is in beta. Manage your schema as code in your repo, review every change before it runs, and reuse one schema across brands, markets, and products.
Paul Biggs

Written by Paul 

Dec 02, 2026
Mobile image

We’re excited to roll out the new Hygraph CLI in beta. As a developer, your schema is now in the palm of your hand, and your coding agent's. You can easily see and manage the whole structure directly in code, so all the connections between the models, all the relationships, are in plain sight.

With Hygraph’s Command Line Interface (CLI), you get a new set of superpowers to extend or reuse schemas for new features, products, brands, or markets, while also keeping your schema in sync with Hygraph Studio so your team can keep doing tweaks through our UI.

Your content model lives as a file in your code repository, next to your app or website, and every change is listed and reviewed before it touches your project. This is especially helpful in multi-player mode, when multiple engineers and agents are working on a project in parallel.

In practice, this means you describe your Hygraph schema in TypeScript, look at what would change, and apply it as one migration. The schema changes in a PR, with a diff, reviewed by one of your teammates, or their agent.
Jonas Faber
Jonas FaberStaff Engineer at Hygraph
related partner logo

#Why we built the Hygraph CLI

This spawned from our company mission to structure noise into knowledge, a problem that creeps into every content team’s daily operations. Before, there was a lack of visibility into your schema from a high-level view, especially at scale or across multiple devs and agents. Now, with this blueprint, your schema as code, all your data is stored in one file for a complete overview of everything. It will help your team in a number of ways right out of the gate:

  • Duplication & reusability: each new brand, market, or client project no longer requires a model rebuild by hand.
  • Model drift: as projects evolve, “the standard” no longer lives in someone’s head, but in your repo.
  • Change management: rolling one change out to multiple projects now comes with easy preview and review.

Watch the CLI in action:

YouTube video player - YouTube thumbnail

Playing this video loads it from YouTube, which may store data in your browser.

#When to use the Hygraph CLI

This is great for teams operating in a multiverse: multiple brands, multiple markets, or multiple sites, leveraging a shared schema. It also helps agencies build repeatable setups for multiple clients, and teams in multi-player environments keeping staging and production in sync while using AI coding agents.

Here is a helpful table to help understand which of our tools to use in which situations:

What it’s for Differences with the CLI
Hygraph Studio Editors work with content, and developers make schema tweaks in our visual editor. Content work stays in Studio, but now with the CLI, your schema lives in a config file in version control, you preview each change, and you can apply the same config to other environments or projects.
Management SDK Allows developers to generate scripts for specific schema changes step by step, plus webhooks, workflows, and UI elements. In the CLI you describe the result you want, and Hygraph plans out the steps. The SDK is still the right fit for one-off scripts.
MCP server Lets an AI assistant change your schema from a chat. The CLI adds a review step. The assistant writes the changes, and the CLI applies them once a person approves it.

#How to use the CLI

The CLI fits into how your team already works, from launching new projects to reviewing changes your AI agents make.

Depending on your setup, the CLI can help in a few different ways.

  • Spin up a new region or product in seconds. One shared schema file gives a new project the whole schema with one command. Changes to the shared part reach every project, and each project can still add its own parts.
  • No surprises in production. Every change shows up as a list that a teammate reviews like any code change. The CLI refuses to apply an outdated list, and it never deletes content without explicit confirmation.
  • Start from what you have. One command turns an existing project into a config file, so you don’t have to rebuild anything.
  • AI with a checkpoint. A developer asks Claude Code or Cursor for a schema change, the AI edits the file, and a person approves the list before anything runs.

#What’s next

The Hygraph CLI is available in beta today. The get started guide walks you through the full workflow, from export to plan and apply. Running several brands or markets? See how to share one schema across projects.

While we're in beta, we recommend starting on a staging environment. For now, the CLI manages your schema only, not content or settings like webhooks.

Your feedback shapes what we build en route to GA (general availability). Tell us what works, what's missing, and what you'd like the CLI to do next in our Slack community or reach out to your Hygraph account team.

Blog Author

Paul Biggs

Paul Biggs

Principal, Product Marketing

Paul spearheads Product Marketing at Hygraph, where he focuses on the convergence of content management and AI agents, and the future of digital experiences — as consumers move from clicks to conversations. 

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.