aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 819 forks source link

feat(migrate): make as an independent executable #13907

Closed abhi7cr closed 1 month ago

abhi7cr commented 1 month ago

Description of changes

Make the migrations tool a separate executable. This will remove the migrations package from CLI binary.

Note: Code for command generation and cross-cutting concerns (error handling, printing, formatting) is taken from gen2 codebase.

Commands:

 npx @aws-amplify/migrate to-gen-2 --help
migrate to-gen-2

Migrates an Amplify Gen1 app to a Gen2 app

Commands:
  migrate to-gen-2 generate-code  Generates Amplify Gen2 code based on Gen1
                                  configuration

Options:
  --debug  Print debug logs to the console            [boolean] [default: false]
  --help   Show help                                                   [boolean]

Issue #, if available

Description of how you validated changes

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.