SitePoint
Blog
Forum
Library
Login
Join Premium
Toggle sidebar
Build a JavaScript Command Line Interface (CLI) with Node.js
Toggle community discussions
Close
Content
Bookmarks
Preface
Build a JavaScript Command Line Interface (CLI) with Node.js
Notice of Rights
Notice of Liability
Trademark Notice
About SitePoint
1
Build a JavaScript Command Line Interface (CLI) with Node.js
Why Build a Command-line Tool with Node.js?
What We’re Going to Build: ginit
The Application Dependencies
Getting Started
Adding Some Helper Methods
Initializing the Node CLI
Prompting the User for Input
Dealing With GitHub Authentication
Communicating with the GitHub API
Creating a Repository
Creating a .gitignore File
Interacting with Git from within the App
Putting It All Together
Making the ginit Command Available Globally
Taking it Further
Open text modal
Community Questions
Close