latest-cli
v2.1.1
Published
This is a simple Node.js CLI tool that provides basic commands to interact with. It is published as an npm package and can be installed globally to run commands from the terminal.
Readme
Latest CLI Tool
This is a simple Node.js CLI tool that provides basic commands to interact with. It is published as an npm package and can be installed globally to run commands from the terminal.
Installation
You can install the CLI globally using npm. Run the following command in your terminal:
npm install -g latest-cli
Commands
greet <name>
This command will greet the person whose name you provide as an argument.
Usage:
bash
Copy
latestcli greet John
Output:
bash
Copy
Hello, John!
add <num1> <num2>
This command will add two numbers and output the result.
Usage:
bash
Copy
latestcli add 5 10
Output:
bash
Copy
The sum of 5 and 10 is 15
Development
To contribute or develop further on this project, follow these steps:
Clone the repository:
bash
Copy
git clone https://github.com/nikeshwarpandey/latest-cli.git
Install dependencies:
bash
Copy
npm install
Make your changes, and then commit them:
bash
Copy
git add .
git commit -m "Describe your changes here"
Push your changes to GitHub:
bash
Copy
git push
Publish the package to npm after making changes:
bash
Copy
npm publish --access public
License
This project is licensed under the MIT License - see the LICENSE file for details.
markdown
Copy
### Explanation of Sections:
1. **Installation**: Explains how to install the CLI globally via npm.
2. **Commands**: Details the available commands (`greet` and `add`), with examples of usage and expected output.
3. **Development**: Provides guidelines for contributing to the project, including how to clone the repo, install dependencies, make changes, and publish the updates.
4. **License**: A placeholder for a license section (you can change the license depending on your choice).
Feel free to modify the content according to your needs and make sure the GitHub URL and other details are updated correctly!
