npm / @terrazzo/cli
@terrazzo/cli
What changed in @terrazzo/cli 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
12 breaking2 deprecations6 new APIs and options5 behavior and defaults1 tooling6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@terrazzo/cli 232 changes
Breaking changes 12
plugin-css now inherits alphabetize from options, changing how the setting is configured.
The listPermutations API is no longer provided for complex resolvers.
Border tokens have stricter requirements for all properties to be present.
Color values require components; channels is invalid.
Dimension values require object notation; zero is no longer expanded to pixels automatically, and
{ $value: 0 }is not allowed.Duration values require object notation.
Plugin lint runs once on the merged full set rather than on individual files; plugins using src must instead read sources.
Plugin lint authors should read from the sources array instead of the src context value.
Reimagined as a server-side resolver API for building a token machine.
TypeScript config files and plugins are fully supported, and terrazzo.config.ts is now the default.
The transform callback receives a Momoa node first and a context object second, and must return a Momoa node rather than raw JSON.
Typography values require fontFamily, fontSize, fontWeight, lineHeight, and letterSpacing at minimum.
Deprecations 2
Soft-deprecated in favor of core/valid-typography.
Introduces the replacement lint rule for core/required-typography-properties.
New APIs and options 6
The resolver API adds orthogonality detection, except for $extends.
Figma import supports OAuth access tokens through FIGMA_OAUTH_TOKEN; OAuth takes precedence over FIGMA_ACCESS_TOKEN when both are set.
Adds first-class support for remote and local JSON $refs, interchangeable with DTCG aliases.
Adds a new and improved native Figma import.
Adds type-safe JavaScript support for use with CSS-in-JS libraries.
Adds typography shorthand.
Behavior and default changes 5
The build plugin hook now executes in parallel with buildEnd.
The buildEnd plugin hook now executes in parallel with build.
The Sass plugin is improved.
Validation is handled by lint rules, making it individually configurable and optionally extendable.
May be undefined for tokens created with $ref.
Tooling 1
Adds full support for DTCG v2025.10, including resolvers.
Fixes and other changes 6
Fixes alias resolution for hidden local variables in Figma.
The build command now respects the --no-lint option.
Improves token aliases when the primitive or primary has a token but aliases do not, preventing dropped tokens in plugins.
Fixed legacy modeSelectors resolving to the default alias instead of the requested mode.
Fixes a runtime error when $extensions does not have a mode object.
Throws an error when the supplied config path points to a bad location.