---
name: "Minilla::CLI::Migrate"
section: "3pm"
platform: "linux"
package: "minilla"
version: "3.1.25-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Minilla::CLI::Migrate"
---

# Minilla::CLI::Migrate(3pm)

Migrate existed distribution repo

## NAME

Minilla::CLI::Migrate - Migrate existed distribution repo

## SYNOPSIS

```
    % minil migrate
```

## DESCRIPTION

This sub-command migrate existed distribution repository to minil ready repository.

## HOW IT WORKS

This module runs script like following shell script.

```
    # Generate META.json from Module::Build or EU::MM
    perl Build.PL
    # Create cpanfile from META.json
    mymeta-cpanfile > cpanfile
    # MANIFEST, MANIFEST.SKIP is no longer needed.
    git rm MANIFEST MANIFEST.SKIP
    # generate META.json
    minil build
    git add -f META.json
    # remove META.json from ignored file list
    perl -i -pe 's!^META.json\n$!!' .gitignore
    echo '.build/' >> .gitignore
    # remove .shipit if it's exists.
    if [ -f '.shipit' ]; then git rm .shipit; fi
    # add things
    git add .
```
