Skip to content

v4.0.13

Choose a tag to compare

@stefanoverna stefanoverna released this 23 Apr 14:22
· 60 commits to main since this release

New

  • datocms schema:inspect [filter] — inspect DatoCMS models and modular blocks from the CLI. Supports filtering by API key/ID/display name (with fuzzy fallback), narrowing to models or blocks only, and selective inclusion of validators, appearance, default values, fieldsets, nested blocks, referenced models, and embedding models. Defaults to TOON output (compact, agent-friendly); pass --json for JSON piped to jq.

Improvements

  • cma:script validation — reject as never casts and @ts-ignore / @ts-expect-error / @ts-nocheck directives in addition to any / unknown, so the sandbox can't be bypassed. Validation errors now list every blocked pattern (including the active import allowlist) to make the rules discoverable.
  • cma:script output — drop progress spinners in stdin-mode. On TypeScript validation failure, point users to datocms cma:docs for client usage help.