The Open CLI Framework
Create command line tools your users love
oclif is an open source framework for building a command line interface (CLI) in Node.js and Typescript. Create CLIs with a few flags or advanced CLIs that have subcommands. oclif makes it easy for you to build CLIs for your company, service, or your own development needs.
$ npx oclif generate mynewcli? npm package name (mynewcli): mynewcli$ cd mynewcli$ ./bin/run.js hello worldhello world! (./src/commands/hello/world.ts)
Get Started ââĄReady to go
Scaffold a fully functional CLI to get started quickly. oclif packages our years of experience into out-of-the-box functionality for argument parsing, command testing, and auto-documentation of CLIÂ features.
đOpen source
oclif is open source and free to use or modify. We think youâll love it too and you can also help make it better.
â Extendable
You or your users can easily extend your CLI functionality to meet custom needs using plugins. Plugins are modular and shareable, encouraging reuse.
đTrusted
oclif is actively used to build the Heroku and Salesforce CLIs, powering millions of interactions for developers every day.