← All tools

shreyanth-sureshkrishnaa/licensor

Popularity 75 Updated Development & Build

An instant CLI to inject licenses into your project.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

<div align="center"

licensor

A CLI that fetches official license text straight from GitHub's Licenses API and writes it into your project as a LICENSE file.

</div

---

Install

From source (until published to crates.io):

git clone https://github.com/shreyanthssk/licensor
cd licensor
cargo install --path .

Or directly from the git repo without cloning first:

cargo install --git https://github.com/shreyanthssk/licensor

---

Usage

List every license GitHub recognizes:

licensor list

Add a license to your project:

licensor add mit

By default this writes to ./LICENSE, using your git config user.name and the current year for any [fullname]/[year] fields the license template requires. Override either:

licensor add mit --name "Jane Doe" --year 2025