Why does the command line win?

You may have noticed that during this chapter, we have used the CLI a lot instead of visual tools. We have used the command-line terminal to perform many kinds of tasks:

  • Work with source control
  • Install dependencies
  • Run tasks
  • Test our code
  • Debug our code
  • Create projects

The CLI has always been popular but I remember that, a few years ago, I used to do some of these things using Visual tools. For example, I remember running unit tests in .NET applications using a visual test runner for NUnit (a unit testing library for .NET applications). You might be wondering why we stopped using the visual tool and went back to the command line like in the early days?

I believe that the CLI wins for two main reasons:

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.