~/talk

Building Great CLI Experiences in Node

Talkat Node+JS Interactive 2018 · on Wednesday, 2018-10-10· at 16:40· West Ballroom A· [nodejs, developer-experience]
links:none on file
slides:none on file

A practical guide to building CLIs using the oclif CLI framework that Heroku and Salesforce use (also adopted by Apollo, Netlify, Appify), with a demo generating a multi-command project in TypeScript using Mocha and Axios to implement a stars command that lists GitHub stargazers. Covers six of the “12 CLI factors”: good help and generated web docs, prefer flags to args, consistent version flags, correct stdout/stderr handling, rich error objects with code/title/fix/URL, and optional spinners/OS notifications for long tasks.

AI-written summary · about

  1. 0:00Intro
  2. 3:16CLI Framework
  3. 3:49TypeScript
  4. 4:33Outline
  5. 4:49The 12Factor App
  6. 5:35CLI Factors
  7. 5:50CLI Help
  8. 7:11Show Help
  9. 8:49Completion
  10. 9:21Flag Values
  11. 10:06Version
  12. 10:56Streams
  13. 12:59Handle Things Going Wrong
  14. 14:39Be Fancy
  15. 16:00OS Notifier
  16. 16:40Dont be Fancy
  17. 17:27Demo
  18. 19:20Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.