Walter Teng CLI

Last tended a year ago
1 min read ⚡️Planted a year ago
cover

Available on:

npm

Introduction

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.

Getting Started

To execute this cli, simply type:

npx walter-teng

Alternatively, you can also installed it globally on your machine with the following command:

npm install -g walter-teng

Usage

This package takes several aliases, namely wt, walter, walterteng, walter-teng.

By typing 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 -p or --posts.

Example:

walter -p

The CLI also has a help command that provides information on supported commands and flags.

walter help

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!

Inspiration

This mini-project is inspired by Ahmad Awais' work.

References


Additional Notes

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 init or use a CLI tool such as npx create-node-cli to 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:
  • Add additional packages like rss-parser to add further custom functionalities to your CLI tool.
It makes my day when I see it.
😊
CRIA ChatSpark AR Filters
Walter Teng © 2023