Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Authorizing tool for CPAN modules
Failed to load latest commit information.
contrib Update bash/zsh completions
eg bug fix in example code.
lib Use flat-style badge of coveralls
script library for script is 'script'! Look M::B::Tiny!
t Use flat-style badge of coveralls
.gitignore Checking in changes prior to tagging of version v0.4.8.
.mailmap Notes about .mailmap
.travis.yml not test on traviss
Build.PL Do not use CPAN::Meta in Build.PL.
META.json Checking in changes prior to tagging of version v2.3.0. not bin/ but script/ when ModuleBuildTiny
cpanfile Test case requires Module::Build::Tiny 0.035+
minil.toml Support tap_harness_args in minil.toml


Minilla - CPAN module authoring tool


minil new     - Create a new dist
minil test    - Run test cases
minil dist    - Make your dist tarball
minil install - Install your dist
minil release - Release your dist to CPAN
minil run     - Run arbitrary commands against build dir


Minilla is a CPAN module authoring tool. Minilla provides minil command for authorizing a CPAN distribution.

(M::I - inc) + shipit + (dzil - plugins)




As stated above, Minilla is opinionated. Minilla has a bold assumption and convention like the followings, which are almost compatible to the sister project Dist::Milla.

  • Your module written in Pure Perl are located in lib/.
  • Your executable file is in script/ directory, if any
  • Your module is maintained with Git and git ls-files matches with what you will release
  • Your module has a static list of prerequisites that can be described in cpanfile
  • Your module has a Changes file


# First time only
% cpanm Minilla
# Minilla has only a few deps. It should be very quick

# Make a new distribution
% minil new Dist-Name
% cd Dist-Name/

# Git commit
% git commit -m "initial commit"

# Hack your code!
% $EDITOR lib/Dist/ t/dist-name.t cpanfile

# Done? Test and release it!
% minil release

It's that easy.

You already have distributions with Module::Install, Module::Build, Dist::Zilla or ShipIt? Migrating is also trivial. See "MIGRATING" in Minilla::Tutorial for more details.


Repository managed by Minilla is git install ready.

The repository created and managed by Minilla is git install ready. You can install the library by cpanm git://....

Of course, you can install Minilla from cpanm git://

Minilla is built on small libraries.

Minilla is built on only few small libraries. You can install Minilla without a huge list of dependencies to heavy modules.

And, what is Minilla?

Minilla is a Kaiju (Japanese giant monster) from the Godzilla series of films and is the first of several young Godzillas.


Minilla uses Convention over Configuration.

But, you can write configurations to minil.toml file in TOML format. Minilla reads the minil.toml file in the root directory of your project.

  • name

    You can write 'name' instead of automatically detecting project name out of the directory name.

  • readme_from


    You can specify the file to generate the This is a main module path by default.

  • tag_format


    format of the tag to apply. Defaults to %v. %v will replace with the distribution version.

  • abstract_from


    Grab abstract information from the file contains pod.

  • authors_from


    Grab authors information from the file contains pod.

  • authority

    authority = "cpan:TOKUHIROM"

    Set x_authority attribute to META. See for more details.

  • allow_pureperl


    A boolean indicating the module is still functional without its XS parts. When an XS module is build with --pureperl_only, it will otherwise fail.

    It affects to Module::Build 0.4005+ only.

  • no_github_issues


    Minilla sets bugtracker as github issues by default. But if you want to use RT, you can set this variable.

  • no_index

    directory=['t', 'xt', 'tools']

    Minilla sets META.json's no_index as directory => ['t', 'xt', 'inc', 'share', 'eg', 'examples', 'author', 'builder'] by default. But if you want to change them, you can set this section variable. If this section is set, specified variables are only used, in fact default settings are not merged.

  • c_source

    c_source = ['src']

    A directory which contains C source files that the rest of the build may depend on. Any ".c" files in the directory will be compiled to object files. The directory will be added to the search path during the compilation and linking phases of any C or XS files.

  • script_files

    script_files = ['bin/foo', 'script/*']

    Minilla sets install script files as ['script/*', 'bin/*'] by default.

    (Note. This option doesn't affect anything if you are using ModuleBuildTiny or ExtUtilsMakeMaker, for now. If you are using ModuleBuildTiny, you MUST put scripts in script/ directory.)

  • tap_harness_args(EXPERIMENTAL)


    This parameters pass to TAP::Harness when running tests. See the TAP::Harness documentation for details.

  • license


    You can specify your favorite license on minil.toml. The license key is same as CPAN Meta spec 2.0. See CPAN::Meta::Spec.

  • badges

    badges = ['travis', 'coveralls', 'gitter']

    Embed badges image (e.g. Travis-CI) to It ought to be array and each elements must be service name. Now, supported services are only 'travis', 'coveralls' and 'gitter'.

  • PL_files

    Specify the PL files.


    This option is not supported by Minilla::ModuleMaker::ModuleBuildTiny.

    Note. MBTiny executes *.PL files by default.

  • build.build_class

    Specify a custom Module::Build subclass.

    build_class = "builder::MyBuilder"
  • XSUtil.needs_compiler_c99

    needs_compiler_c99 = 1

    You can specify needs_compiler_c99 parameter of Module::Build::XSUtil.

  • XSUtil.needs_compiler_cpp

    needs_compiler_cpp = 1

    You can specify needs_compiler_cpp parameter of Module::Build::XSUtil.

  • XSUtil.generate_ppport_h

    generate_ppport_h = 1

    You can specify generate_ppport_h parameter of Module::Build::XSUtil.

  • XSUtil.generate_xshelper_h

    generate_xshelper_h = 1

    You can specify generate_xshelper_h parameter of Module::Build::XSUtil.

  • XSUtil.cc_warnings

    cc_warnings = 1

    You can specify cc_warnings parameter of Module::Build::XSUtil.

  • FileGatherer.exclude_match

    exclude_match = ['^author_tools/.*']

    Nothing by default. To exclude certain files from being gathered into dist, use the exclude_match option. Files matching the patterns are not gathered.

  • FileGatherer.include_dotfiles

    include_dotfiles = false

    By default, files will not be included in dist if they begin with a dot. This goes both for files and for directories.

    In almost all cases, the default value (false) is correct.

  • release.pause_config

    pause_config = "/path/to/some/.pause"

    By setting this value to another PAUSE configuration file (see "CONFIGURATION" in cpan_upload for the details), it is possible to use another PAUSE server (or anything good enough to mimick its upload process) for the release step.

    To do so, simply add a upload_uri entry in your file to the alternate PAUSE server, i.e :


    If you instantly launch your origin upload server as DarkPAN, See OrePAN2::Server.

  • release.do_not_upload_to_cpan


    This variable disables CPAN upload feature.

  • release.hooks

    hooks = [

    Commands that are specified by this option will be executed when releasing. If result of commands is not successful, it will abort.

  • ReleaseTest.MinimumVersion

    MinimumVersion = false

    If you set this key false, Minilla will not generate 'xt/minilla/minimum_version.t'.

  • requires_external_bin


    The requires_external_bin command takes the name of a system command or program. Build fail if the command does not exist.


  • How can I manage contributors section?

    Minilla aggregates contributors list from git log --format="%aN <%aE>" | sort | uniq.

    You can merge accounts by .mailmap file. See

  • Why don't you provide plug-in support?

    If you want a pluggable tool, it already exists: It's called Dist::Zilla :P If you like Minilla's behavior but you really want something pluggable, you can use Dist::Milla, Minilla's sister project. Dist::Milla's behavior is almost identical to that of Minilla.

  • Why does minil only support git?

    I think git is a best VC for CPAN modules, for now.

    If you want to use another version control system, you can probably use Dist::Milla.

  • And why...

    Yes. You can use Dist::Milla.

  • Should I add (META.json|Build.PL) to repository?

    Yes. You need to add it to make your git repo installable via cpanm.

  • How do I manage ppport.h?

    Is there a reason to remove ppport.h from repo?

  • How can I install script files?

    Your executables must be in script/. It's Module::Build::Tiny's rule.

  • How to switch from Module::Install/Module::Build/Dist::Zilla?

    You can use experimental `minil migrate` sub-command. See Minilla::CLI::Migrate for more details.

  • How should I manage the files you do not want to upload to CPAN?

    Please use FileGatherer.exclude_match for ignoring files to upload tar ball.

    You can use MANIFEST.SKIP file for ignoring files. ref. ExtUtils::Manifest.

  • How do I use Module::Build::Tiny with Minilla?

    Minilla v0.15.0+ supports v0.15.0(EXPERIMENTAL).

    If you want to create new project with Module::Build::Tiny, run the command as following.

    % minil new -p ModuleBuildTiny My::Awesome::Module

    If you want to migrate existing project, you need to rewrite minil.toml file. You need to add following line:

  • How do I use ExtUtils::MakeMaker with Minilla?

    Minilla v2.1.0+ supports EUMM(EXPERIMENTAL).

    You need to rewrite minil.toml file. You need to add following line:


    (There is no profile, yet. Patches welcome.)

    I don't suggest to use this module... But you can use this option for maintaining primitive modules like Test::TCP.


Tokuhiro Matsuno < >

Tatsuhiko Miyagawa


RJBS, the author of Dist::Zilla. Dist::Zilla points CPAN authorizing tool.



Copyright (C) Tokuhiro Matsuno

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

Something went wrong with that request. Please try again.