Git Product home page Git Product logo

my-node-cli's Introduction

My Node CLI

An example project to demonstrate the creation of a CLI using Node.js.

Building a CLI with Node.js in 2024

Project Structure

Below is the folder and file structure:

.
├── README.md
├── bin
│   └── index.js
├── package-lock.json
├── package.json
└── src
    ├── commands
    │   ├── basic-example.js
    │   ├── chalk-example.js
    │   ├── figlet-example.js
    │   ├── inquirer-confirm-example.js
    │   ├── inquirer-example.js
    │   ├── inquirer-list-example.js
    │   └── ora-example.js
    └── utils

Installation

Ensure you have Node.js installed on your computer

  1. Clone the repository to your local machine using Git:

    git clone https://github.com/egmzy/my-node-cli.git
  2. Navigate to the project directory:

    cd my-node-cli
  3. Install the project dependencies:

    npm install
  4. Link the project globally to make the my-node-cli command available on your system:

    npm link

    This step allows you to run the my-node-cli command from anywhere in your terminal.


Usage

After installation, you can run the CLI by typing my-node-cli in your terminal. This command will display a list of examples that you can choose from, demonstrating various CLI functionalities:

  • Basic Example
  • Chalk Example
  • Figlet Example
  • Inquirer Confirm Example
  • Inquirer Example
  • Inquirer List Example
  • Ora Example

Select an example to run it and see the functionality in action.


Contributing

Contributions are welcome! Please feel free to fork the repository, make changes, and submit pull requests.

my-node-cli's People

Contributors

egmzy avatar

Stargazers

Vijay Deepak avatar ポ④ふмαIмù産ーィZ⒏ず avatar Evgeni Gomziakov avatar Software Nerd avatar Gnusson.net avatar marchete-zen avatar Romeo Lupascu avatar  avatar Yaron Galperin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.