tldr/pages/common/license.md

21 lines
506 B
Markdown
Raw Normal View History

2016-01-22 02:42:34 +00:00
# license
> Create license files for open-source projects.
2019-06-05 08:55:53 +01:00
> More information: <https://nishanths.github.io/license>.
2016-01-22 02:42:34 +00:00
- Print a license to `stdout`, using the defaults (auto-detected author name, and current year):
2016-01-22 02:42:34 +00:00
`license {{license_name}}`
- Generate a license and save it to a file:
2016-01-22 02:42:34 +00:00
`license -o {{filename}} {{license_name}}`
2016-01-22 02:42:34 +00:00
- List all available licenses:
2016-01-22 02:42:34 +00:00
`license ls`
- Generate a license with custom author name and year:
2016-01-22 02:42:34 +00:00
2016-01-22 16:26:29 +00:00
`license --name {{author}} --year {{release_year}} {{license_name}}`