Building Your First CLI App in Node
1h 17mBeginner2019-08-21
Authors

Naomi Freeman
Coder, Consultant, and Community Builder
Course details
Put your Node.js skills to practical use by building a CLI App in Node.js. Many software developers, system administrators, and other advanced users frequently use command-line interfaces (CLIs) to perform tasks more efficiently, configure their machine, or access programs and features not typically available through the more popular graphical interfaces. If you’re looking for a good course to build your Node skills or you've ever been curious about what it takes to develop an app or tool in the CLI, then this course is for you. Join Naomi Freeman as she demonstrates how to build a command-line developer tool in Node.js that automates a few key Git commands. Discover how to leverage the Node.js and npm ecosystem of packages and modules to connect to the GitHub RESTful API with Ocktokit.
Learning objectives
Initializing a Git repository
Creating the user interface
GitHub authentication
Creating a prompt for user input
Validating user input
Authenticating with GitHub
Creating a GitHub repository
Automating Git commands
Learning objectives
Initializing a Git repository
Creating the user interface
GitHub authentication
Creating a prompt for user input
Validating user input
Authenticating with GitHub
Creating a GitHub repository
Automating Git commands
Skills covered
NPMNode.jsHelp Desk SkillsJavaScript FrameworksWeb Development ToolsIT Help DeskProjectWeb DevelopmentOpen Source
Concepts
0. Introduction
- 01 - Build a CLI app in Node
- 02 - What you should know
- 03 - What you need to start
1. The Git Initialize Process
- 04 - The Git initialize process
- 05 - The course project
- 06 - Set up a Node project
- 07 - Install the Node dependencies
2. Build App Foundations and Structure
- 08 - Create the basic file structure
- 09 - Create the utility package
- 10 - Create the user interface
- 11 - Check Git repository status
3. GitHub Authentication
- 12 - Understand user prompts
- 13 - Create a prompt for user input
- 14 - Validate user input
- 15 - Store GitHub credentials for reuse
- 16 - Receive the GitHub token
- 17 - Authenticate with GitHub
- 18 - Register a new token
- 19 - Implement the GitHub token
4. Create a GitHub Repository with the CLI App
- 20 - Prompt the user for repository details
- 21 - Create a repository
- 22 - Generate a .gitignore file
- 23 - Automate Git commands
- 24 - Create a remote repository command
5. Finalize Your App
- 25 - Run multiple npm commands
Conclusion
- 26 - Next steps