Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teodorvecerdi/vecerdi.license

dotnet tool for generating license files based on SPDX identifiers (e.g., MIT, Apache-2.0)
https://github.com/teodorvecerdi/vecerdi.license

cli-tool dotnet dotnet-tool license license-generator tool

Last synced: 9 days ago
JSON representation

dotnet tool for generating license files based on SPDX identifiers (e.g., MIT, Apache-2.0)

Awesome Lists containing this project

README

        

# Vecerdi.License

[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/Vecerdi.License)](https://www.nuget.org/packages/Vecerdi.License/)

Generate license files for your projects.

Available SPDX identifiers:

- MIT
- ISC
- Apache-2.0
- BSD-3-Clause
- BSD-2-Clause
- GPL-3.0-only
- GPL-2.0
- MPL-2.0
- Unlicense
- NON-AI-MIT
- NON-AI-APACHE2

## Installation

```bash
dotnet tool install -g Vecerdi.License
```

## Usage

```bash
$ license --help

Description:
Generates a license file based on the given SPDX identifier.

Usage:
license [command] [options]

Options:
-i, --license, --spdx-identifier The SPDX identifier of the license to generate. [default: NON-AI-MIT]
-o, --output The output file path. [default: ./LICENSE]
-s, --silent Suppress console output.
-a, --accept-placeholders Accept default values for placeholders in the license text.
--version Show version information
-?, -h, --help Show help and usage information

Commands:
list List supported SPDX license identifiers
print Print the source of a given SPDX license identifier
```

### Example
```bash
license --license NON-AI-MIT --output LICENSE
```