# oclif

> Salesforce's open CLI framework for building Node.js command-line tools

Source: https://talira.ai/catalog/oclif-jc7mkd43
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Command-line tool
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Salesforce](https://talira.ai/orgs/salesforce.md)

oclif (Open CLI Framework) is a framework for building command-line tools in Node.js, from single-command tools with a few flags to large CLIs with subcommands. It grew out of the Salesforce CLI and was generalized for any CLI. The framework (@oclif/core) parses flags and arguments, loads only the command being run so large CLIs start as fast as small ones, generates --help and README documentation, supports plugins, lifecycle hooks and autocomplete, and is written in TypeScript. The companion oclif CLI scaffolds new CLIs and plugins, generates commands and hooks, and packages a CLI into installers for macOS, Windows and Debian that don't need Node installed, with optional auto-updates.

## Links

- Website: https://oclif.io/
- GitHub: https://github.com/oclif/core
- Docs: https://oclif.io/docs/introduction

## Problems it solves

- build a Node.js command-line tool with subcommands and flags
- scaffold a TypeScript CLI with tests and help output
- ship a Node CLI as an installer that doesn't need Node installed

## Features

- flag and argument parsing
- loads only the command being run, so large CLIs start fast
- auto-generated --help and README docs
- plugins, lifecycle hooks and autocomplete
- a generator that scaffolds TypeScript CLIs with tests
- packages CLIs into macOS, Windows and Debian installers

## Limitations

- It supports Node 18 and later (the LTS versions).[^1]

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 1.00, adoption 0.50, momentum 0.21, community 0.72, backing 0.30, extensibility 0.00.

- last commit 20 days ago
- 65 commits in the last 90 days
- latest release 5.1.12 20 days ago
- 320 GitHub stars
- 62 contributors
- backed by Salesforce

## Alternatives

- [Commander.js](https://talira.ai/catalog/commander-js-r3pn8w4k.md): The complete solution for Node.js command-line interfaces
- [yargs](https://talira.ai/catalog/yargs-y8jq9yaq.md): Parse command-line arguments and build CLIs in Node.js
- [meow](https://talira.ai/catalog/meow-5dt57c23.md): Small helper for building Node.js command-line apps
- [Inquirer.js](https://talira.ai/catalog/inquirer-js-mxetm5dn.md): Interactive command-line prompts for Node.js
- [minimist](https://talira.ai/catalog/minimist-xjjkaag0.md): Minimal command-line argument parser for Node.js

## Sources

[^1]: https://github.com/oclif/core/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/oclif/core/blob/main/LICENSE (checked 28 Nov 2026)
