NAME

Dist::Zilla::App::Command::genlicense - write the LICENSE file into the repository

VERSION

version 0.001

SYNOPSIS

dzil genlicense

DESCRIPTION

Writes LICENSE into the root of the repository, holding the text of the licence the distribution declares in dist.ini. Commit the result — a licence only counts on GitHub, Gitea or Forgejo if it is a file they can see.

This is the file Dist::Zilla::Plugin::LicenseFile expects to find on every build, so run the command again whenever the license setting changes — the plugin will tell you when that is.

What lands in the file is the bare licence, without the copyright notice ->fulltext would put above it; see "Why the bare licence text" in Dist::Zilla::Plugin::LicenseFile.

Writing the same text twice is a no-op, so the command is safe to run at any time, and safe to wire into a release process.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-dist-zilla-plugin-licensefile/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.