Skip to main content
oclif

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.

CLIs built using oclif

With oclif you can build command line tools for your business, open source project, or your own development workflow. Check out what others have built.