Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

license-generator

> 开发工具
Open source

A Command line tool that generate `LICENSE` file.

181 stars0 likes0 views
WebsiteGitHub

About

A Command line tool that generate `LICENSE` file.

license-generator

A Command line tool that generates LICENSE file.

Installation

Install with Cargo:

cargo install license-generator

Usage

$ license-generator --author  [LICENSE_TYPE]

[LICENSE_TYPE]:
- AGPL
- Apache
- CC-BY
- CC-BY-NC
- CC-BY-NC-SA
- CC-BY-SA
- CC0
- GPL
- LGPL
- MIT
- MPL
- Unlicense

Options:
  -l, --list lists the available licenses
  --author input author name. Default: `GitName `
  --project input project name that is required by some license
  --year input license year
  --output path to the output. Default: ./LICENSE

Supported Licenses

This CLI supports the following licenses:

  • AGPL-3.0
  • Apache-2.0
  • CC-BY-4.0
  • CC-BY-NC-4.0
  • CC-BY-NC-SA-4.0
  • CC-BY-SA-4.0
  • CC0-1.0
  • GPL-3.0
  • LGPL-3.0
  • MIT
  • MPL-2.0
  • Unlicense

Examples

Generate MIT LICENSE

license-generator MIT

Output to stdout

license-generator MIT --output /dev/stdout

Multi LICENSE

license-generator MIT Apache
# generates `LICENSE-MIT` and `LICENSE-APACHE`

Specify year and author

license-generator MIT --author azu --year 2024

Tests

cargo test

Releases

Use cargo-release.

cargo release --execute --publish {patch,minor,major}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © azu

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcligeneratorlicenserust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具