Company
Date Published
Author
Alex Lakatos
Word count
1442
Language
English
Hacker News points
None

Summary

The Nexmo team is re-writing their CLI tool, which they have been using for about 4 years, and has been written in Node.js. They analyzed several frameworks to build a new Command-Line Interface (CLI) that meets their requirements. The criteria included features such as language support, maintenance status, sub-commands, output formats, plugins, aliasing, bin generation, config management, Windows support, autocomplete, interactivity, global flag definition, and cross-platform compatibility. After narrowing down the options to six libraries, they built proof of concepts (PoCs) for oclif, caporal, and ink to compare their pros and cons. The team chose to go ahead with building the next Nexmo CLI using oclif due to its great support and documentation, actively maintained status, and growing community. They are also adding full support for TypeScript to their Node.js SDK to keep the same stack across their SDK and CLI.