Improved schema extraction with watch mode, CLI config support, and key bug fixes
Published: January 19, 2026
v5.5.0
Sanity Studio
✨ Highlights
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:
export default defineCliConfig({
schemaExtraction: {
path: './types/schema.json',
enforceRequiredFields: true,
watchPatterns: ['./custom-schema/**/*.ts'],
workspace: 'my-workspace'
}
})🐛 Notable bugfixes
- Fixes issue where an object's input inside of modals were too close to the edge at the bottom
- Restores autofocus on reference inputs after interacting or adding it.
- 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 elementwarning - Fixes an issue in the CLI where exports potentially would contain invalid multi-byte sequences