Fork me on GitHub

license

Create LICENSEs from the command line

Install

go install github.com/nishanths/license/v5@latest

View on GitHub

Usage

Generate license

To print a license a license to stdout, simply run license followed by the license name:

license mit

Run license -listto see the list of licenses.

Create license file

Use the -o option to save the license to a file. The following command creates the file LICENSE.txt with the contents of the ISC license:

license -o LICENSE.txt isc

Customize name and year

The program makes clever guesses for the name and year to use on the license, but you can also explicity specify them:

license -n Alice -y 2013 isc

Additional options are described in license -help and in the README.