# Execute the migration

This page describes how to generate the migration artifacts which you can use
to deploy your workloads to the target cluster.

## Generate migration artifacts

After you've customized your migration plan, to generate the artifacts, run the
following command:

    ./m2c generate -i ANALYSIS_PATH -o OUTPUT_ARTIFACTS_PATH

Replace the following:

- <var translate="no">ANALYSIS_PATH</var>: the path where you saved the analysis output
- <var translate="no">OUTPUT_ARTIFACTS_PATH</var>: the path where you want to save the generated artifacts

### Generate migration artifacts for WebSphere workloads

To generate migration artifacts for WebSphere workloads, in addition to the
analysis output path and the path where you want to save the generated
artifacts, you also need to specify the path to the `binaryAppScanner.jar` file
that you had set up when you [created the migration plan](https://docs.cloud.google.com/migrate/containers/docs/m2c-cli/create-a-migration-plan.md.txt#create_a_migration_plan_for_websphere_workloads).

To generate migration artifacts, run the following command:

    ./m2c generate \
      -i ANALYSIS_PATH \
      -o OUTPUT_ARTIFACTS_PATH \
      --volume PATH_TO_BINARYAPPSCANNER:/binaryAppScanner.jar

Replace <var translate="no">PATH_TO_BINARYAPPSCANNER</var> with the
path to the `binaryAppScanner.jar` file. For example, if you specified `/tmp`
as your target directory while [setting up the `binaryAppScanner.jar`](https://docs.cloud.google.com/migrate/containers/docs/m2c-cli/create-a-migration-plan.md.txt#set_up_the_binaryappscannerjar), then it is available
at `/tmp/wamt/binaryAppScanner.jar`.

## Review the generated artifacts

The generated migration artifacts are available in the
specified output path. Depending on your plugin and migration plan, the
generated artifacts contain one or more Dockerfiles that are used to build
container images, and one or more Kubernetes deployment specs.

Additionally, Migrate to Containers CLI generates a Skaffold configuration that you can
use to build and deploy all of the generated images in a single step.

## What's next

- Learn more about the [migration artifacts](https://docs.cloud.google.com/migrate/containers/docs/review-deployment-files.md.txt).