License Generator is a CLI tool that helps you quickly generate licenses for your projects. Written in Go.
Choose the appropriate installation method for your operating system:
- Download the
license-generator-linux-amd64.tar.gz
file from the latest release. - Open a terminal and navigate to the download directory.
- Extract the file:
tar -xzf license-generator-linux-amd64.tar.gz
- Move the extracted
license-generator
file to a directory in your PATH, e.g.:sudo mv license-generator /usr/local/bin/
- Make it executable:
sudo chmod +x /usr/local/bin/license-generator
- Download the
license-generator-windows-amd64.zip
file from the latest release. - Extract the ZIP file to a location of your choice.
- Add the extracted directory to your system's PATH environment variable.
- Open a new Command Prompt and run
license-generator.exe
to use the tool.
- Download the
license-generator-darwin-amd64.tar.gz
file from the latest release. - Open Terminal and navigate to the download directory.
- Extract the file:
tar -xzf license-generator-darwin-amd64.tar.gz
- Move the extracted
license-generator
file to a directory in your PATH, e.g.:sudo mv license-generator /usr/local/bin/
- Make it executable:
sudo chmod +x /usr/local/bin/license-generator
After installation, you can use the License Generator tool from the command line:
license-generator [options]
-license
: Specify the license name (optional)-skip-prompt
: Skip prompts and use defaults (optional)
-
Generate a license with interactive prompts:
license-generator
-
Generate a specific license (e.g., MIT):
license-generator -license MIT
-
Generate a license using defaults without prompts:
license-generator -skip-prompt
-
Generate a specific license using defaults:
license-generator -license Apache-2.0 -skip-prompt
The generated license will be saved as LICENSE
in your current directory.
- Interactive License Chooser: Interactive questionnaire to help users choose the most appropriate license for their project? Not Sure.
The License Generator supports various open-source licenses. Run the tool without arguments to see the list of available licenses.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.