$ npm install sw-cli
A CLI tool to generate a service worker and a file manifest making use of the sw-lib module.
npm install --global sw-cli
You can find documentation for this module here.