npm / @oclif/core
@oclif/core
What changed in @oclif/core 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
35 breaking1 security1 deprecations31 new APIs and options6 behavior and defaults16 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@oclif/core 57 changes
Breaking changes 1
Requires Node >=22 and drops EOL Node versions.
New APIs and options 1
Adds an environment variable to configure the stdin read timeout.
Fixes and other changes 5
Flag summaries are measured by display width, improving their handling of characters with varying display widths.
Constrain the load options accepted by execute.
Respect load options when execute runs.
Propagate the ignore manifest option.
When --json is enabled, errors use the error's oclif exit code.
@oclif/core 467 changes
Breaking changes 22
The default logger still uses DEBUG, but log namespaces now have the root namespace oclif; for example, use DEBUG=oclif:config:*.
Deep imports such as @oclif/core/lib/command.js no longer work.
Simplifies Interfaces.PJSON to a single type instead of separate CLI and Plugin types.
flush is removed from ux but remains available through this package subpath.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed; use ux.action.stop() instead.
Removed; use ux.stdout instead.
Removed from the ux module.
Removed from the ux module.
Renamed ux.logToStderr to ux.stderr.
Renamed ux.log to ux.stdout.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Removed from the ux module.
Security 1
Resolved a security vulnerability in the PowerShell path.
Deprecations 1
Warnings are now emitted for hidden, deprecated aliases.
New APIs and options 26
Exposes the root help formatter for developers to use.
Adds Args.option() for typed arg options.
Adds an API and basic logic for command-level constraints, including conditions.
Adds overloads that provide variadic argument return types.
Adds the multiple property to ArgProps for defining variadic arguments.
Allows an array of default values for varargs.
Implements variadic argument parsing with a shift/pop algorithm.
Flag relationships now support combinable and only, allowing developers to configure these relationships between flags.
Adds a JSON output theme key.
Adds a JSON output theme key.
Adds a JSON output theme key.
Adds a JSON output theme key.
Adds a JSON output theme key.
A logger can also be provided to Config when it is instantiated before run or execute.
Exports a Logger interface so developers can provide a custom logger for @oclif/core.
Adds a type representing everything allowed in the oclif section of package.json or an rc file.
Adds a JSON output theme key.
Allows providing a custom logger through loadOptions when calling execute.
Adds a JSON output theme key.
Adds a JSON output theme key.
Adds top-level package subpath exports so utilities can be imported without importing everything exported by @oclif/core.
Adds support for reading oclif configuration from supported rc files, while package.json remains required for name, version, and dependencies.
Adds the spinner theme key to customize spinner color.
Adds a JSON output theme key.
The action spinner color can now be configured using themes.
Adds a method to apply a color theme to arbitrary JSON.
Behavior and default changes 6
Validates variadic argument constraints at definition time.
Help text shows a ... suffix for variadic arguments.
Flag help now shows the environment variable associated with a flag, helping users identify how to configure it.
allowNo now supports aliases.
Custom help classes can now use target and identifier configuration so they can be bundled like commands and hooks.
An ESM plugin with tsx as a devDependency can now be auto-transpiled at runtime.
Fixes and other changes 11
Error messages are now included in --json output.
Causative errors are now also pretty-printed, making them easier to read.
A typo in a PowerShell command was fixed.
WSL handling is corrected.
Includes the multiple property in cached argument metadata.
Provides clearer messages when variadic arguments are invalid.
--flags-dir now works with third-party plugins.
Windows shell identification is more reliable.
Descriptions are retained when the summary is hidden in help.
Warn about unparsed arguments.
The help command indicates whether an argument is optional.
@oclif/core 316 changes
Breaking changes 12
Update bin scripts for ESM/CommonJS plugin interoperability and include the .js extension in references to them.
Various Config properties are now readonly, preventing developers from assigning to them.
Config.plugins is now a Map from plugin names to loaded Plugin instances instead of an array.
A new flag type infers its type from the provided options.
The global cli-ux object is renamed to ux.
The exported error-handling function for bin scripts is now asynchronous.
The parameter passed to default and defaultHelp callbacks is removed in favor of the noCacheDefault property.
Node.js 14 and Node.js 16 are no longer supported.
The _manifest method is now private.
The warn method is now private.
The toCached export has been removed.
ts-node is no longer a dependency; linked plugins must include it as a devDependency for auto-transpilation to work.
New APIs and options 4
Define single-character flag aliases using the charAliases property.
Returns a flat array of Plugin instances for callers that need the previous list form.
Set this flag or arg property to true to keep its default from being cached in the manifest.
Configure the spinner style when starting an action.