Read the article Building a simple command line tool with npm Run the example In your project, run npm install --save @linclark/github-pages-deploy In your project's package.json file, add a scripts key "scripts": { "deploy": "github-pages-deploy" },