Improved schema extraction with watch mode, CLI config support, and key bug fixes

Published: January 19, 2026

v5.5.0
Sanity Studio

This release introduces developer experience improvements for schema extraction, including a new watch mode for automatic re-extraction and CLI configuration support. It also includes several bugfixes that improve UI behavior and resolve edge cases.

Watch mode for schema extraction

The sanity schema extract command now supports a watch mode that automatically re-extracts your schema when files change:

# Basic watch mode
sanity schema extract --watch

# Watch with custom paths
sanity schema extract --watch --watch-patterns "lib/**/*.ts"

This makes it easier to develop and test schema changes without manually running the extract command after each modification.

Configuring schema extraction in sanity.cli.ts

The sanity schema extract command now supports configuration via the CLI config file.

Example configuration in sanity.cli.js:

🐛 Notable bugfixes and improvements

  • Fixes issue where an object's input inside of modals was too close to the bottom edge
  • Restores autofocus on reference inputs after interacting
  • Fixes a bug where media library function examples added via the CLI were incorrectly seen as document functions
  • Paused scheduled drafts that have missed their intended publish date/time are now clearly flagged when viewing all paused scheduled drafts
  • Fixes a React does not recognize the `disableTransition` prop on a DOM element warning
  • Fixes an issue in the CLI where exports potentially would contain invalid multi-byte sequences

Related documentation