Skip to main content

Oclif

https://oclif.io/

The Open CLI Framework Create command line tools your users love

Oclif is for building console app, probably shouldn't be part of LearnWeb, but since it's using nodejs, I will include it in LearnWeb.

features

https://oclif.io/docs/features

There are plenty of features, I will discuss some of the special features it has comparing to other packages.

  • CLI Generator
    • Run a single command to scaffold out a fully functional CLI and get started quickly. See Generator Commands
    • e.g. oclif generate command login to add login command
  • Testing Helpers
  • Auto-documentation
    • --help automatically placed in README when npm package of CLI is published
  • Plugins
    • Extend CLI with plugins
  • Hooks
    • Lifecycle hooks, triggers on lifecycle events
  • TypeScript
    • Run CLI with ts-node
  • Auto-updating Installers
    • App can be packaged into
      • Standalone tarballs
      • Browser
      • Autoupdater
      • Windows Installer
      • MacOS Installer
      • Ubuntu/Debian Packages
      • Snapcraft
      • Autoupdate Channels
  • Autocomplete