The project helps in placing the required license to the project repo. There are various licenses available.
The name and year is automatically infered by the program, but can also be passed via command line.
Usage can also be printed with - ```bash ❯ license License CLI Tool
Usage:
license list Show all available licenses
license add <name> Add a license to current directory
license add <name> --author=<you> Add license with custom author
Examples:
license list
license add mit
license add apache-2.0 --author="Alice"
```
Available commands -
-
list : List all the available licenses -
❯ license list Available licenses: mit apache-2.0 gpl-3 bsd-2 gnu-agpl bsd-3 gpl-2 mozilla-2 unlicense
For window users, the list of licenses should be under
%APPDATA%/Local/license-cli/licensesAnd for Linux -~/.config/license-cli/licenses -
add : Add the given license to the current dir.
-
version : Print the current version of the CLI -
❯ license version
license_cli 0.1.0
Author: Archit Mishra
License: GPL-3.0
GitHub: https://github.com/architmishra-15/license-cli- help : Shows help message (Idk why was this needed) -
❯ license help
A CLI tool for managing project licenses
Usage: license [COMMAND]
Commands:
list
add
version
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
-v, --version
-V, --version Print versionThe project is licensed under GPL-3.0