license
Generate open source license files
TLDR
SYNOPSIS
license [command] [options]
DESCRIPTION
license generates open source license files from the command line. It supports all license types listed on the GitHub Licenses API and more, including MIT, Apache-2.0, GPL-3.0, BSD-2-Clause, ISC, MPL-2.0, and Unlicense.
The tool outputs license text to stdout by default. Use -o to save directly to a file. Author name is resolved from command-line flags, the LICENSE_FULL_NAME environment variable, or git/hg config.
PARAMETERS
LICENSE
License type to generate (e.g., mit, apache-2.0, gpl-3.0, bsd-2-clause, isc, mpl-2.0, unlicense).list
List all available license types.-n, -name NAME
Author name for the license. Falls back to LICENSEFULLNAME env var, then git config.-y, -year YEAR
Year for copyright notice. Defaults to the current year.-o FILE
Save the license to the specified file instead of stdout.-help
Display help information.
CAVEATS
Multiple implementations of license generators exist (nishanths/license, azu/license-generator, etc.) with different flag conventions. This page documents nishanths/license, written in Go. Check which tool is installed with license -help.
HISTORY
license (nishanths/license) was created by Nishanth Shanmugham and is written in Go.
