Syntax and description
The deploy command deploys a MobileTogether package (.mtp file) to MobileTogether Server. When a MobileTogether package is created in MobileTogether Designer, the deployment path can be specified in the package, but does not need to be. The arguments and options of the deploy command described below take this into account.
mobiletogetherserver deploy [options] Package [Path]
•Package specifies the path to the MobileTogether package that you want to deploy.
•Path (optional) specifies the location on the server where you want to deploy the package. If this argument is specified on the command line and the package already contains a deployment path, then the path supplied on the command line is used and the deployment path in the package is ignored. If this argument is not supplied and the package contains no deployment path, then an error message about this is displayed.
•If a package having the same name already exists at the deployment location and you want to overwrite it, use the force option (see below). If you do not use force in this situation, an error will be displayed, indicating that a package already exists at the specified deployment location.
|Note:||The server must be stopped before this command is executed.|
Examples of the deploy command:
mobiletogetherserver deploy "C:\temp\ParcelDelivery.mtp"
mobiletogetherserver deploy --force "C:\temp\ParcelDelivery.mtp"
mobiletogetherserver deploy "C:\temp\ParcelDelivery.mtp" "/public/ParcelDelivery"
mobiletogetherserver deploy --force "C:\temp\ParcelDelivery.mtp" "/public/ParcelDelivery"
Use the --h, --help option to display information about the command.