mukan-ignite/ignite/internal/tools/gen-mig-diffs
Mukan Erkin Törük c32551b6f7
Some checks failed
Docs Deploy / build_and_deploy (push) Has been cancelled
Generate Docs / cli (push) Has been cancelled
Generate Config Doc / cli (push) Has been cancelled
Go formatting / go-formatting (push) Has been cancelled
Check links / markdown-link-check (push) Has been cancelled
Integration / pre-test (push) Has been cancelled
Integration / test on (push) Has been cancelled
Integration / status (push) Has been cancelled
Lint / Lint Go code (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
refactor: replace all github.com upstream refs with git.cw.tr/mukan-network
2026-05-11 03:36:24 +03:00
..
cmd refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
pkg refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
templates/doc refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
go.mod feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00
go.sum feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00
main.go feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00
readme.md feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00

Generate Ignite Migration Diffs

This repository hosts the Chain Scaffold Migration Tool for Ignite CLI, designed to help developers migrate their projects from older versions of Ignite to the latest release. This tool addresses compatibility and feature alignment as a detailed in Issue #3699 and implemented in PR #3718.

The migration tool aims to streamline the update process for projects built with Ignite CLI, ensuring they leverage the latest improvements and SDK stack.

Features

  • Automated migration of chain scaffold files.
  • Detailed comparison and generation of migration differences.
  • Support for multiple versions of chain scaffolds.

Installation

It is located in the ignite/internal/tools/gen-mig-diffs directory and made it a standalone project.

To set up this tool in your development environment:

  1. Clone the Ignite CLI repository:
git clone https://github.com/ignite/cli.git && \
cd cli/ignite/internal/tools/gen-mig-diffs
  1. Install and show usage:
go install . && gen-mig-diffs -h
  1. Run migration diff tool:
gen-mig-diffs --output temp/migs --from v0.27.2 --to v28.3.0
  1. In case of the issue unable to authenticate, attempted methods [none publickey], no supported methods remain. Make sure you have SSH keys set up for GitHub. If yes, try to add the SSH key to your SSH agent:
chmod 600 ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa

Usage

This tool is used to generate migration diff files for each of ignites scaffold commands

Usage:
  gen-mig-diffs [flags]

Flags:
  -f, --from string              Version of Ignite or path to Ignite source code to generate the diff from
  -h, --help                     help for gen-mig-diffs
  -o, --output string            Output directory to save the migration document (default "docs/docs/06-migration")
      --repo-output string       Output path to clone the Ignite repository
  -s, --repo-source string       Path to Ignite source code repository. Set the source automatically set the cleanup to false
      --repo-url string          Git URL for the Ignite repository (default "https://github.com/ignite/cli.git")
      --scaffold-cache string    Path to cache directory
      --scaffold-output string   Output path to clone the Ignite repository
  -t, --to string                Version of Ignite or path to Ignite source code to generate the diff to