百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

license-generator

> 开发工具
开源

一个命令行工具,用于生成 `LICENSE` 文件。

181 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个命令行工具,用于生成 `LICENSE` 文件。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustcligeneratorlicenserust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

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