oclif
A strong pick. 5th of 10 CLI frameworks and prompts.
oclif (@oclif/core) is Salesforce's full framework for large, multi-command Node.js CLIs. It gives you file-based commands, typed flags, generated help, plugins and testing helpers. It is a solid, well-maintained pick for big CLIs that need plugins, but it is heavy and too much for small tools, where Commander or citty is the better choice.
Best for: Teams building a large, long-lived, multi-command CLI that end users or other teams extend with plugins.
Scores
Overall7.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
For large, plugin-extensible CLIs it is the strongest Node framework and is well funded and maintained. For most new CLIs, Commander, citty or CAC are lighter and simpler, and you still need Clack or Inquirer for prompts. That narrow fit, plus its weight and yearly majors, keeps it below the category defaults.
- dev.to/thegdsks/building-a-production-typescript-cli-in-2026-oclif-vs-commander-vs-custom-9ah: Recommends oclif for team-extended CLIs, Commander for small ones
- grizzlypeaksoftware.com/library/cli-framework-comparison-commander-vs-yargs-vs-oclif-utxlf9v9: Comparison framing oclif as the full framework vs parsers
- peers downloadsLast4Weeks: Commander and yargs far larger; citty and CAC growing faster
GPT-6.2 Sol: 7.8, likely 6.8 to 8.8
oclif is a strong pick for a new Node.js 22+ CLI that needs plugins, shared hooks, and consistent help across many commands. Active Salesforce maintenance and production use support that choice, while Commander.js is a better default for straightforward argument parsing. Slightly below-median download growth, gaps in release safeguards, and limited independent v5 evidence keep the score below the top tier.
- oclif.io/docs/features: Plugins, hooks, generated help, and installer tooling.
- github.com/tj/commander.js: A simpler command and argument API for small tools.
- github.com/salesforcecli/cli/blob/main/package.json: The current core release ships in Salesforce CLI.
- github releasesLastYear, scorecard score and medianDownloadsRatio: Frequent releases, mixed safeguards, and growth just below the catalog median.
Needed by many4.2
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Many JS developers write a small CLI now and then, but few need a full framework with plugins and file-based routing. oclif serves the large multi-command niche, not the typical script. It also covers argument parsing and help, but prompts and rich terminal UI are out of scope.
- dev.to/thegdsks/building-a-production-typescript-cli-in-2026-oclif-vs-commander-vs-custom-9ah: Recommends oclif only past ~3 commands or when plugins are needed
- pkgpulse.com/guides/best-cli-frameworks-nodejs-2026: Positions oclif as the heavyweight option among CLI frameworks
GPT-6.2 Sol: 4.3, likely 3.2 to 5.5
Node.js is widely used, and CLI tooling applies to internal automation, SDKs, and developer products. oclif is most useful when a CLI needs a command tree and extension points. The survey measures runtime use, so the share of developers who need that architecture is an estimate.
- 2025.stateofjs.com/en-US/other-tools: Node.js leads reported runtime use.
- oclif.io/docs/introduction: Node-focused framework with runtime plugins.
- github.com/oclif/core/releases/tag/5.0.0: Version 5 raised the minimum to Node.js 22.
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
For large CLIs it is the most complete Node framework: typed flags, generated help, plugins, hooks, packaging through the oclif tool, and test helpers. Its limits are its weight, slow cold start, an opinionated structure, and no full prompt library. For small tools a lighter peer does the job better.
- dev.to/thegdsks/building-a-production-typescript-cli-in-2026-oclif-vs-commander-vs-custom-9ah: Typed flag inference and runCommand test helper; ~8MB+ install, dense scaffold, no bundled prompts
- github.com/Shopify/cli/issues/2090: User reports slow startup in an oclif-based CLI
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
Version 5.1.12 combines typed parsing, flag validation, useful generated help, and a mature plugin model. Its examples make the standard command pattern easy to follow, though evidence on coding-agent accuracy is thin. Core provides basic terminal output, and richer prompts and layouts need libraries such as Inquirer.js or Ink. A current report shows a positional argument ordering bug, and the independent startup comparison covers v4.
- oclif.io/docs/flags: Typed examples, custom parsing, and help metadata.
- oclif.io/docs/features: Generated help, plugins, hooks, and JSON output.
- github.com/oclif/core/blob/5.1.12/src/ux/index.ts: Core offers spinners, colors, and stream output.
- github.com/SBoudrias/Inquirer.js: Dedicated interactive prompts.
- github.com/vadimdemedes/ink: Dedicated React rendering for terminals.
- github.com/oclif/core/issues/1667: Open argument ordering report against 5.1.12.
- johal.in/comparison-commander-12-vs-yargs-18-vs-oclif: Independent v4 comparison reports slower startup than Commander and yargs.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The repository had 316 commits and 50 releases in the last year, with few open issues. Salesforce funds it because its own CLI depends on it. The one drawback is a roughly yearly major version: v5 in August 2026 dropped Node versions below 22.
- github commitsLastYear / releasesLastYear: 316 commits, 50 releases in a year
- github openIssues / closedIssues: 12 open vs 204 closed issues
- github.com/mitre/saf/pull/9721: 5.0.0 release notes: requires Node >=22, TypeScript 6 upgrade
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
Salesforce maintains oclif and ships it in its own CLI. The core repo recorded 316 commits and 50 releases in the past year, a stronger maintenance signal than Clipanion's quiet year. Several pull requests have been open for months, and a user has requested a v4 security backport because v5 dropped Node.js 20. Recent releases use a service account, and individual release access remains unclear.
- github commitsLastYear, releasesLastYear and peers: 316 commits and 50 releases for oclif. Clipanion recorded zero commits.
- oclif.io/docs/how_we_work: Salesforce documents its maintenance and triage practices.
- github.com/oclif/core/pulls: Several contributions have been open for months.
- github.com/oclif/core/issues/1666: Open backport request from a Node.js 20 user.
- github.com/oclif/core/actions/workflows/onRelease.yml: Recent publish runs were triggered by the Salesforce release bot.
Used widely4.6
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
About 66M downloads in four weeks, but many of these come from installs of the Salesforce, Shopify and Heroku CLIs, not from direct choices. Downloads grew 4.0x, close to the 4.1 median, so its share is flat. It has about 3,600 dependent repos and 1,600 packages, far below Commander or yargs but comparable to citty and Clipanion.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 66.5M vs 16.5M, ratio ~4.0 vs median 4.1
- dependents: 3,613 repos, 1,643 packages
- github stars: 319 stars on core repo, but the main oclif repo holds more
GPT-6.2 Sol: 4.1, likely 3.0 to 5.4
Downloads rose from 16.5 million to 66.5 million over comparable four-week periods, a 4.04× increase against the 4.1× median. That suggests a slight loss of relative ground, even as oclif outpaced Commander and yargs on raw growth. The 3,613 dependent repos and 1,643 packages show an established user base, well below Commander and yargs on observed repos. Automated installs and plugins inflate download totals, and repository coverage and social activity give only a partial view of direct choices.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo and medianDownloadsRatio: 4.04× growth versus the 4.1× catalog median.
- dependents and peers: Fewer observed repos than citty, Clipanion, Commander, or yargs.
- github stars, hackerNews and bluesky: 319 core stars, zero matched HN stories, and one Bluesky link.
- github.com/oclif/oclif: The separate generator and release-tool repo has about 9,600 stars.
- github.com/salesforcecli/cli/blob/main/package.json: One shipped CLI brings core and several companion plugins together.
Vouched for7.4
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Large, well-known CLIs run on it in production: Salesforce CLI, Heroku CLI, Shopify CLI and balena-cli. Independent comparisons consistently name it the pick for complex, plugin-based CLIs. It has little survey or community buzz (no HN stories, one Bluesky post).
- github.com/balena-io/balena-cli/pull/3136: balena-cli upgrading to @oclif/core v5
- github.com/Shopify/cli/issues/2090: Shopify CLI is built on oclif
- levelup.gitconnected.com/oclif-ink-rust-and-the-framework-decision-that-shapes-everything-13f2c18539ec: Independent write-up weighing oclif for production CLIs
- hackerNews / bluesky: 0 HN stories, 1 Bluesky post
GPT-6.2 Sol: 7.7, likely 6.6 to 8.7
Salesforce CLI ships core 5.1.12, and Shopify CLI and Adobe I/O CLI provide independent examples of production use. Both external manifests still reference v4, so independent evidence for v5 is thinner. A developer reports choosing oclif for on-demand commands and plugin discovery, while the available survey gives runtime context and little evidence about oclif satisfaction.
- github.com/salesforcecli/cli/blob/main/package.json: Salesforce CLI pins core 5.1.12.
- github.com/Shopify/cli/blob/main/packages/cli/package.json: Shopify CLI uses core v4 and explicit command discovery.
- github.com/adobe/aio-cli/blob/master/package.json: Adobe I/O CLI uses core v4 and oclif plugins.
- reddit.com/r/node/comments/12mi7r7/does_vite_make_sense_to_build_node_clis: A developer describes selecting oclif for lazy loading and plugins.
- 2025.stateofjs.com/en-US/other-tools: Runtime survey provides context for Node.js use.
Safe6.4
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
No known advisories ever, and the MIT licence is permissive. The Scorecard is only 4.6, with zeros for token permissions, pinned dependencies, security policy and SAST. It pulls in 18 direct dependencies, a larger surface than minimal parsers.
- advisories total: 0 advisories
- scorecard score: 4.6 with several zero checks
- npm dependencies: 18 direct dependencies
- npm license: MIT
GPT-6.2 Sol: 6.7, likely 5.5 to 7.9
Core uses the permissive MIT licence, and OSV lists zero advisories for the package itself. Version 5.1.12 took the Minimatch patch within two weeks of disclosure, and the publish workflow uses npm trusted publishing. The 18 direct dependencies and a 4.6 OpenSSF Scorecard leave room for improvement, especially in code review, token permissions, workflow pinning, and the security policy. Recent runs show one release bot, while the number of people able to trigger a publish remains unclear.
- npm license and dependencies: MIT licence and 18 direct dependencies.
- advisories total and scorecard checks: Zero package advisories. Code review scored 3, and token permissions, pinning, and security policy scored 0.
- github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249: October 27 advisory names Minimatch 11.0.1 as patched.
- github.com/oclif/core/releases/tag/5.1.12: November 9 release adopts the patched dependency.
- github.com/oclif/core/blob/5.1.12/.github/workflows/onRelease.yml: Trusted publishing is enabled through a reusable workflow on the main branch.
- github.com/oclif/core/actions/workflows/onRelease.yml: Recent publish runs are attributed to the same service account.
Good
- File-based command routing and generated help scale cleanly to dozens of commands.
- Plugin architecture that lets users install extra commands at runtime, proven in the Salesforce, Heroku and Shopify CLIs.
- Flag types are inferred in TypeScript, and testing helpers capture output without mocking.
- Actively maintained by a funded team at Salesforce, with frequent releases.
Bad
- Heavy install size and dense scaffolding make it overkill for small or single-command tools.
- Startup time from loading many modules is slower than with minimal parsers.
- It has no full interactive prompt library, so you add Inquirer or Clack yourself.
- Major versions come about yearly (v5 in 2026 requires Node 22+), so upgrades take regular work.
The numbers
- npm downloads, 4 weeks
- 66M ×4.0 in a year
- GitHub stars
- 319
- Commits, 12 months
- 316
- npm version
- 5.1.12 Nov 2026
- Versions, 12 months
- 50
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (oclif/core), npm (@oclif/core), OSV and the OpenSSF Scorecard.