GitPedia

Mklicense

CLI tool for generating Licenses. Easily.

From cezaraugusto·Updated June 22, 2026·View on GitHub·

[npm-version-image]: https://img.shields.io/npm/v/mklicense.svg?color=0971fe [npm-version-url]: https://www.npmjs.com/package/mklicense [npm-downloads-image]: https://img.shields.io/npm/dm/mklicense.svg?color=2ecc40 [npm-downloads-url]: https://www.npmjs.com/package/mklicense [action-image]: https://github.com/cezaraugusto/mklicense/actions/workflows/ci.yml/badge.svg?branch=main [action-url]: https://github.com/cezaraugusto/mklicense/actions [provenance-image]: https://img.shields.io/badge/prove... The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2016. Key topics include: agplv3, apache2, cli, cli-app, generator.

Latest release: v0.3.3
June 22, 2026View Changelog →

CLI tool for building Licenses files. Easily.

mklicense Version Downloads workflow provenance

<br> <p align="center"><img src="demo.gif" width="640" height="400"></p> <br>

Why should I use this?

  • It writes your details (year, author, project description) into the file, which the GitHub generator does not always do.
  • It is friendly for beginners and busy people: no flags to memorize, just answer a couple of prompts.
  • It generates the file locally, so you never hand your LICENSE details to a third-party service.

Install

bash
npm install -g mklicense

Usage

Run the command inside your project folder:

bash
mklicense

The CLI walks you through a short interactive flow:

  1. Select a license from the list (see below).
  2. For MIT, Apache, GPL and AGPL, enter the starting year and the author name (both prefilled, the author defaults to your git config user.name).
  3. For GPL and AGPL, enter a one-line project description.

mklicense then writes a LICENSE file in the current directory. It is fully interactive and takes no command-line flags. Requires Node >=18.

Licenses included

  • Unlicense
  • MIT
  • Apache 2.0
  • MPL 2.0
  • GNU LGPL 3.0
  • GNU GPL 3.0
  • GNU AGPL 3.0

You talk about trust. So, where are all the licenses located?

mklicense extracts licenses from https://choosealicense.com/ (which is curated by GitHub), and creates a LICENSE file for your desired project. I have no control over any license, which is a good thing for you and me.

License

MIT (c) Cezar Augusto.

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from cezaraugusto/mklicense via the GitHub API.Last fetched: 6/28/2026