An easy-to-use CLI tool for updating multiple local repos at once.
- Fork the repo:
git clone https://github.com/EstenGrove/pulley-cli.git
- Install deps:
npm install
- Update the repo directories within
app.js
file - Run it:
node src/app.js
- Change into project directory:
cd my-pulley-copy/
- Create a "bin" folder:
mkdir bin
- Create an index file inside of the "bin/" directory:
touch bin/index.js
- Open the package.json file in your code editor
- Add a bin entry, point main to bin/index.js and add a command alias inside bin:
- Update
"main": "bin/index.js"
- Add a "bin" entry:
"bin": { }
- Add a command alias inside the "bin" entry:
"bin": { "pulley": "./bin/index.js" }
- Update
{
// ...rest of package.json
"main": "bin/index.js",
"bin": {
"pulley": "./bin/index.js"
}
}
- Now install it globally:
npm i -g .
- Now you can run
pulley
command from any directory anywhere on your machine!