Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Build Custom Command Line Interface (CLI) Tooling with oclif and TypeScript

via egghead.io

Overview

Today, you can't do anything in JavaScript without bumping into a CLI.
Want to install a library? yarn add it. Want a React app? create-react-app. Want to format your JavaScript? prettier --write. Want your types checked? tsc. Bundling? Pick from webpack, rollup, or parcel. Deploying? now or netlify deploy.
CLI's are everywhere, and even if you don't write them, sooner or later you'll have to debug them.
This workshop serves as a comprehensive survey of the state of the art of CLI tooling for everyone looking to make an impact in open source, across their company, and even in their own productivity.
Check out these community notes for this course on Github.

Syllabus

  • Develop and Publish a Node.js CLI from Scratch
  • Create a Single-Command Node.js CLI with Oclif, TypeScript and Yarn Workspaces
  • Parse Flags and Args in Node.js CLIs with Oclif and TypeScript
  • Convert a Single Command CLI into a Multi Command CLI with Oclif and TypeScript
  • Create a Hybrid Single-Multi Command Node.js CLI with Oclif and TypeScript
  • Debug Node.js CLIs with the VS Code Debugger and the `Debug` module
  • Test Node.js CLIs with Jest and Oclif
  • Design Beautiful, Intuitive and Secure Node.js CLI User Input Experiences with Enquirer
  • Create Highly Configurable Node.js CLIs with Cosmiconfig and Oclif
  • Scaffold out Files and Projects from Templates in a Node.js CLI
  • Spawn and Manage Child Processes and Node.js Streams with execa
  • Prompt Users to Update Your Node.js CLIs with Update-Notifier
  • Store State on Filesystem in Node.js CLIs with Conf
  • Create Node.js CLI's that Intelligently Adapt to Usage with Frecency
  • Polish Node.js CLI Output with Chalk and Ora

Taught by

Shawn Wang

Reviews

4.7 rating at egghead.io based on 71 ratings

Start your review of Build Custom Command Line Interface (CLI) Tooling with oclif and TypeScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.