# oclif: 7.2 out of 10

A strong pick. 5th of 10 in [CLI frameworks and prompts](https://elestia.ai/opensource/cli/index.md).

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

- **Overall: 7.2** (likely 6.2 to 8.2)
  - Claude Opus 5.5 (6.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): 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 many: 4.2** (likely 3.1 to 5.3)
  - Claude Opus 5.5 (4.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): 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 lot: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.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): 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 time: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.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 widely: 4.6** (likely 3.5 to 5.7)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (4.1): 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.
- **Vouched for: 7.4** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (7.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): 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.
- **Safe: 6.4** (likely 5.3 to 7.5)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.7): 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

- Downloads, 4 weeks: 66M
- In a year: ×4.0
- GitHub stars: 319
- Commits, 12 months: 316
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/oclif/core
- npm: https://www.npmjs.com/package/@oclif/core

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
