@oclif/plugin-help

The standard help command plugin for oclif CLIs

Library
npm
v6.2.58
24stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
73/100Good
Development Activity96
Maintenance96
Community28
Maturity60
Momentum12

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
68/100Good
Architecture65
Code Quality72
Innovation45
Learning Curve90

@oclif/plugin-help drops a fully-featured help command into any CLI built on the oclif framework, rendering usage, flags, arguments, and nested command listings without the CLI author having to write formatting code themselves. It is maintained by Salesforce as one of oclif’s official plugins and is installed by nearly every oclif-based CLI, since oclif’s own generator scaffolds new projects with it pre-wired in.

The plugin itself is intentionally thin: it registers a single help command that delegates to @oclif/core’s Help class for the actual formatting logic, and supports showing help for the whole CLI or for a specific command, including a --nested-commands flag to expand deeply nested command trees.

What You Get

  • A ready-to-use help command registered automatically when the plugin is added to an oclif CLI’s dependencies
  • Support for showing top-level CLI help or help scoped to a specific command and its arguments/flags
  • A --nested-commands/-n flag to expand and display all nested subcommands in the output
  • Consistent formatting that matches oclif’s conventions (USAGE, ARGUMENTS, FLAGS, DESCRIPTION sections)
  • Zero-configuration integration — installing the plugin and adding it to the oclif config’s plugin list is the entire setup

Common Use Cases

  • Giving a new oclif-based CLI tool standard --help/help behavior without writing any formatting code
  • Providing command-specific help output (mycli help deploy) for CLIs with many subcommands
  • Displaying a full nested command tree for CLIs organized into topics and subtopics via --nested-commands

Under The Hood

Architecture: The plugin is deliberately minimal — src/index.ts exports a commands map with a single help entry, and src/commands/help.ts (22 lines) defines an oclif Command subclass that parses its command argument and --nested-commands flag, then calls loadHelpClass(this.config) from @oclif/core to obtain the actual Help renderer and invoke showHelp(). All formatting logic — column layout, ANSI coloring, topic/command tree traversal — lives upstream in @oclif/core, not in this package.

Tech Stack: TypeScript, built with tsc, with its only runtime dependency being @oclif/core (peer-aligned to the CLI’s own oclif version). Testing uses Mocha with chai and @oclif/test for command-output assertions. The oclif CLI itself is used at build time to generate the oclif.manifest.json and README command reference.

Code Quality: With only ~30 lines of source across two files, the plugin’s own code quality surface is small; the single test file (test/commands/help.test.ts) exercises the command’s argument/flag parsing and delegates the harder assertions to snapshot-style output checks. Linting uses eslint-config-oclif plus Prettier, matching the conventions shared across the whole oclif plugin family. Commit history shows very active, consistent maintenance (health score flags active development and consistent updates) driven largely by Salesforce’s oclif team and automated dependency bots.

API Design: There is effectively no API for consumers to learn — installing the package and listing it under an oclif CLI’s plugins array is the entire integration. The one user-facing surface is the help command’s CLI flags (--nested-commands), which follows the same flag conventions as every other oclif command, keeping the learning curve at zero for anyone already using oclif.

Used by 5 apps in this directory

TypeScript
96%
Other

Amplication

Developer Tools · AI Code Assistants · Automation

16,010

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
61
Repo Health
84
Technical
60
Dependency
Built with
TypeScript96%
Updated 1 months ago
TypeScript
49%
MPL 2.0

Artillery

Devops · Developer Tools

9,054

Cloud-scale load testing and functional testing for APIs, WebSockets, gRPC, and headless browsers, distributed across AWS Lambda or Fargate with zero infrastructure to manage.

View details
89
Repo Health
73
Technical
68
Dependency
Built with
TypeScript49%
JavaScript48%
Updated 5 days ago
TypeScript
99%
Other

byterover-cli

AI Agents · AI Code Assistants

4,941

A portable memory layer for AI coding agents — curate structured project knowledge into a version-controlled context tree that syncs across tools, machines, and teammates.

View details
77
Repo Health
83
Technical
71
Dependency
Built with
TypeScript99%
Updated 1 months ago
TypeScript
98%
MIT

GraphQL Hive

Developer Tools · Devops · Monitoring

485

Open-source GraphQL schema registry and observability platform with breaking change detection, federation support, and CI/CD integration for teams of any size.

View details
90
Repo Health
81
Technical
70
Dependency
Built with
TypeScript98%
Updated today
JavaScript
59%
AGPL 3.0

ToolJet

Low Code Platforms · No Code Platforms · AI Agents

40,458

Open-source AI-native platform to build and deploy internal tools, workflows, and AI agents with a visual drag-and-drop builder and 80+ data source integrations.

View details
94
Repo Health
81
Technical
65
Dependency
Built with
JavaScript59%
TypeScript33%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search