Elestia Open Source Ratings
7.2

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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).

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.

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.

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.

CLI frameworks and prompts

  1. 8.6Commander.js
  2. 8.1Clack
  3. 8.1Ink
  4. 7.8Inquirer.js
  5. 7.2oclif
  6. 7.0yargs
  7. 6.6CAC
  8. 6.5citty
  9. 5.7meow
  10. 4.3Clipanion
Compare all 10 on six scores