Generate an open source license in your project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Rename binary and use simple array append operator Nov 14, 2012
features Improve help output. Oct 4, 2014
lib Bump to version 1.0.0 Mar 2, 2017
.gitignore Ignore .rbenv-gemsets file Nov 14, 2012 Bump to version 1.0.0 Mar 2, 2017
Gemfile Remove rspec and cucumber from gemfile. Apr 30, 2011
LICENSE Use bsd generator to generate our LICENSE. May 6, 2011 Remove Credits from README Mar 2, 2017
Rakefile Default rake task is to run all specs and features. May 6, 2011
license-generator.gemspec Make SIGINTs nicer. May 29, 2013

OSS License Generator

Generate an open source license for your projects.


gem install license-generator


licgen <license> [<author1>, [<author2> ...]]

Too see the available license templates:

licgen list

Available licenses

They are provided in the gem as templates.

Please add some!

There are a lot. See

Simply fork, add an ERB template to the templates directory, and send me a pull request.

Since it's ERB you can use ruby to include things like the current date. You can also prompt the user for input like this:

<%= option(:name) %>

Since author name will be needed for almost all templates, a special template variable is provided:

<%= authors %>

If authors are not specified on the command line, it will prompt the user.