To run this generator from the command line you must install both [generate][] and {%= name %}
:
# install generate and {%= name %}
$ npm install --global generate {%= name %}
# install only {%= name %}
$ npm install --global {%= name %}
Use [generate's CLI][generate] to write a license file to the current working directory:
# prompts you to choose a license to generate
$ gen license
The file is automatically named according to preferences defined at GitHub's choosealicense.com repository (usually it's LICENSE
, but not always. See the license files in that repository for more details).
Specify the license to generate
If you don't want to be prompted, you can specify the license up front:
$ gen license:<license name>
# example
$ gen license:mit
Specify output directory
# write a license file to "some-folder/LICENSE"
$ gen license -d some-folder
Visit [generate's documenatation][generate] to learn how to use this generator as a plugin or sub-generator.