LinuxCommandLibrary

licensor

generates license text for open source projects

TLDR

Generate MIT license with a copyright holder name
$ licensor MIT "[Your Name]"
copy
Generate Apache license and save to file
$ licensor Apache-2.0 > LICENSE
copy
Generate GPL license
$ licensor GPL-3.0
copy
Generate license with exception expression
$ licensor "Apache-2.0 WITH LLVM-exception" --skip-optional
copy
List available licenses
$ licensor --licenses
copy

SYNOPSIS

licensor license [name] [options]

DESCRIPTION

licensor writes license text to stdout given an SPDX license identifier. All licenses are compiled into the binary. If the provided ID isn't found, similar ones will be suggested.
The tool outputs properly formatted license text with copyright holder and year filled in.

PARAMETERS

LICENSE

SPDX license identifier (MIT, Apache-2.0, GPL-3.0, etc.). Supports exception expressions.
NAME
Copyright holder name (optional, for licenses that include it).
--licenses
List all available SPDX license identifiers.
--skip-optional
Omit optional sections from the license text.
--help
Display help information.

CAVEATS

Uses SPDX identifiers. Rust-based tool. May need installation via cargo.

HISTORY

licensor was created by Raphael Theriault (raftario) as a Rust-based license text generator using SPDX license identifiers.

SEE ALSO

license(1), cargo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard