Export Package Commands

Last modified: September 23, 2025

Introduction

The commands in this group enable exporting different kinds of packages from your app.

mx create-project-package Command

The mx create-project-package command exports the app as a source app package.

Usage

Use the following command pattern:

mx create-project-package [OPTIONS] TARGET-FILE

These are the OPTIONS:

OptionResult
-s, --include-snapshotIncludes a snapshot in the app package.
-d, --package-dirExports the package to the directory.
--helpDisplays the help screen.

For TARGET-FILE, specify the .mpr app you want to export.

Examples

Here is an example:

mx create-project-package c:\MyApps\MyApp.mpr

Return Codes

This table shows the return codes and their description:

Return CodeDescription
0OK.
1Incorrect app file provided.
2Output folder not determined.
4Unknown package export error.

mx create-module-package Command

The mx create-module-package command exports a module package from an app.

Usage

Use the following command pattern:

mx create-module-package [OPTIONS] TARGET-FILE MODULE-NAME

These are the OPTIONS:

OptionDescription
-l, --filter-required-libsIncludes all the files except the userlibs that do not have an accompanying [ModuleName].RequiredLib file.
-e, --exclude-filesExcludes all the files that match the given regular expression.
-d, --package-dirExports the module package to the directory.
-m, --exclude-managed-dependenciesExcludes managed dependencies from synchronization and the exported module package. Note that this will prevent the module from being used if Gradle synchronization is disabled in Studio Pro. This command is available for Studio Pro 10.23 and above. Managed dependencies are never synchronized in versions below Studio Pro 10.23.
--helpDisplays the help screen.

For TARGET-FILE, specify the .mpr app you want to export.

For MODULE-NAME, specify the name of the module you want to export.

Examples

Here is an example:

mx create-module-package c:\MyApps\MyApp.mpr Module1

Return Codes

This table shows the return codes and their description:

Return CodeDescription
0OK.
1Incorrect app file provided.
2Output folder not determined.
3Invalid module name specified.
4Unknown package export error.

mx create-solution-package Command

The mx create-solution-package command exports the app as a solution package.

Usage

Use the following command pattern:

mx create-solution-package [OPTIONS] TARGET-FILE

These are the OPTIONS:

OptionResult
-s, --include-snapshotIncludes a snapshot in the app package.
-d, --package-dirExports the package to the directory.
--helpDisplays the help screen.

For TARGET-FILE, specify the .mpr app you want to export.

Examples

Here is an example:

mx create-solution-package c:\MyApps\MyApp.mpr

Return Codes

This table shows the return codes and their description:

Return CodeDescription
0OK.
1Incorrect app file provided.
2Output folder not determined.
4Unknown package export error.