github-cloner-cli
v1.0.1
Published
A simple CLI tool to clone multiple GitHub repositories at once using a GitHub username. Select the repositories you want to clone, and the tool will download them into your specified directory.
Readme
GitHub Cloner CLI
A simple CLI tool to clone multiple GitHub repositories at once using a GitHub username. Select the repositories you want to clone, and the tool will download them into your specified directory.
Installation
Global Installation (via npm)
You can install this tool globally using npm:
npm install -g github-cloner-cliUsage
After installation, you can run the command gclone from your terminal.
gcloneFollow the prompts:
- Enter a GitHub username.
- Select the repositories you want to clone.
- Provide the directory where you want the repositories to be cloned.
The tool will then clone the selected repositories into the specified directory.
Features
- Clone multiple GitHub repositories at once.
- Select repositories via a simple CLI interface.
- Choose where to clone the repositories.
Requirements
- Node.js: 12.x or higher (since this tool uses ES modules).
- Git: Must be installed on your machine for cloning repositories.
How It Works
- GitHub API: Fetches a list of repositories for the provided GitHub username.
- Inquirer.js: Interactive prompts to select the repositories and specify the target directory.
- Simple-Git: Handles the actual cloning of the repositories.
Example
$ gclone
Enter GitHub username: jishnu
Select repositories to clone:
[ ] repo1
[ ] repo2
[ ] repo3
Enter full path to clone into: /path/to/clone/directory
Cloning repo1...
✔ Cloned repo1
Cloning repo2...
✔ Cloned repo2
✅ All selected repos cloned successfully.Contributing
Feel free to fork this repo and submit pull requests for any bugs or features you'd like to add. Contributions are always welcome!
How to contribute:
- Fork the repository.
- Clone your fork:
git clone https://github.com/j1znuneel/github-cloner-cli.git - Create a new branch:
git checkout -b my-feature - Make your changes and commit:
git commit -am 'Add new feature' - Push to your fork:
git push origin my-feature - Open a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
