This is a personal tool that I built to generate a Free and Open Source Software (FOSS) license file. The tool provides command line options for customizing the year, name, organization, and project information used when creating the license text. These values can also be set and re-used from a configuration file saved in the user's home directory.
To install Licensify, you will need to have Rust installed. For more information please visit the Rust installation page.
After you have installed Rust (which should include the cargo
utility), you
can install licensify with the following command:
cargo install --git https://github.com/lynnjm7/licensify
The installation will take a little while to build the release version of Licensify. Afterwords, you should have the latest build and everything should be ready to go!
To verify that licensify has been properly installed you should be able to run
licensify -V
which should show the licensify version information.
To complete the installation, run the setup command that is built into the tool and follow the on-screen instructions for configuring the utility. See the Setup section of this document.
There are several different ways to use this utility. For instruction usage notes use
licensify --help
To setup this tool, simply run:
licensify --init
As part of the setup process, you will be prompted to enter a series of default values to use when generating licenses in the future.
NOTE: You must run --init
prior to using this tool!!
To list the available license templates that are installed, use
ignorify --list
It is relatively trivial to grep
through this list to search for a specific
license.
ignorify --list | grep mit
To generate a license file, provide the license template that you would like to use and redirect the output of the program to your desired file.
For instance,
licensify mit > LICENSE
would write the text of the MIT license to a file named LICENSE with the default configuration values used.
The licenses used in this project are housed in the licenses repository and installed to your local machine. Installing the licenses to your machine allows you to work offline, add your own licenses, or customize the existing licenses to your needs.
This project is released under the MIT license. For more information, refer to the LICENSE file in this repository.