oclif: The Open CLI Framework
  • Getting Started
  • API Reference
  • Blog
  • GitHub

The Open CLI Framework

Create command line tools your users love

$ npx oclif generate mynewcli? npm package name (mynewcli): mynewcli$ cd mynewcli$ ./bin/runhello world from ./src/index.js!

Build simple to advanced CLIs in minutes

oclif is an open source framework for building a command line interface (CLI) in Node.js. 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.

Getting StartedGitHub

⚡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.

✅Easy to extend

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

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.

Heroku CLISalesforce CLITwilio CLIKaomoji CLIShopify CLI
Made with 💜 by Salesforce — MIT License