Walter Teng CLI
Greetings, fellow developers! Today, I'm thrilled to introduce you to walter-teng-cli, a new command line interface (CLI) tool I've created to help you discover more about me. This tool is designed to display my social links and the latest blog posts from my website, all from the comfort of your terminal.
To execute this cli, simply type:
Alternatively, you can also installed it globally on your machine with the following command:
npm install -g walter-teng
This package takes several aliases, namely
wt, walter, walterteng, walter-teng.
walter on your terminal, the CLI will show a list of my social links from Github, Twitter and LinkedIn profiles. This makes it easy for you to find and connect with me on various problems.
That's not all. walter-teng-cli pulls the latest posts from my website via RSS, allowing you to stay updated on my latest content. To do so, you can add the following flags
The CLI also has a
help command that provides information on supported commands and flags.
I hope this tool will spark some imagination among the developers on the creative ways to express themselves through different mediums. It is a fun starter project for anyone looking to publish their first npm package or node CLI tool.
Give it a try and let me know what you think!
This mini-project is inspired by Ahmad Awais' work.
- Automating Tasks with Node CLIs (with Ahmad Awais) — Learn With Jason - YouTube
How to Build Your Own CLI
Below are some guiding milestones on how to create your first node CLI.
Refer to the references below for similar implementation and YouTube tutorials on this topic.
- You can start a new project like any other node project by
npm initor use a CLI tool such as
npx create-node-clito simplify the initialization.
- Consider CLI helper packages such as meow or commander to manage flags and commands easily. Choose meow for simpler CLI projects.
- Add chalk for beautiful string styling.
- Add more helper packages to make your life even easier:
- cli-welcome for handling welcome message
- cli-handle-unhandled for handling errors
- cli-meow-help for generating help instructions with meow
- Add additional packages like rss-parser to add further custom functionalities to your CLI tool.