Export Package Commands

Last modified: February 7, 2024

1 Introduction

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

2 mx create-project-package Command

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

2.1 Usage

Use the following command pattern:

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

These are the OPTIONS:

Option Result
-s, --include-snapshot Includes a snapshot in the app package.
-d, --package-dir Exports the package to the directory.
--help Displays the help screen.

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

2.2 Examples

Here is an example:

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

2.3 Return Codes

This table shows the return codes and their description:

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

3 mx create-module-package Command

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

3.1 Usage

Use the following command pattern:

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

These are the OPTIONS:

Option Description
-l, --filter-required-libs Includes all the files except the userlibs that do not have an accompanying [ModuleName].RequiredLib file.
-e, --exclude-files Excludes all the files that match the given regular expression.
-d, --package-dir Exports the module package to the directory.
--help Displays the help screen.

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

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

3.2 Examples

Here is an example:

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

3.3 Return Codes

This table shows the return codes and their description:

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

4 mx create-solution-package Command

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

4.1 Usage

Use the following command pattern:

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

These are the OPTIONS:

Option Result
-s, --include-snapshot Includes a snapshot in the app package.
-d, --package-dir Exports the package to the directory.
--help Displays the help screen.

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

4.2 Examples

Here is an example:

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

4.3 Return Codes

This table shows the return codes and their description:

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