
SYNTAX
	mfpdev app webupdate
	[<server> [<runtime>]] [--password|-p <password>]
	[--build | -b] | [--file | -f <filePath>]

DESCRIPTION
	For Cordova applications that contain Android or iOS platforms, creates and
	optionally deploys one or more compressed web resources files (.zip format)
	to a Mobilefirst Server instance for use with the MobileFirst direct update
	feature. A separate .zip file is created for each platform in the app.
	Platforms can be iOS or Android. Windows platforms are not supported with
	this command.

	The .zip file contains the contents of the following directories:

	  Android: <app name>/platforms/<platform>/assets/www
	  iOS:     <app name>/platforms/ios/www

	The .zip file also contains a file called deployment.data that contains
	metadata about the app.

	The .zip file is placed in the following path and file:

	     <app name>/mobilefirst/<app-id>-<platform>-<version>.zip

	where <platform> is android or ios.

	Example: my_app-ios-1.0.0.zip

	This command is context-sensitive based on the directory that you run it
	from. If you run it from the root directory of your app, .zip files are
	created for all of the platforms in the /platforms directory.  If you run
	this command from a platform subdirectory (ios or android), then the .zip
	file is created for the corresponding platform.

	If no options are specified, by default this command builds the .zip file
	and deploys it to the default server.

OPTIONS
	<server>:  Name of the server to deploy the resources file to. This
	parameter is optional. If you do not provide this parameter, the default
	server is used.

	You can set the default server when you define a server profile with
	'mfpdev server add' or you can make an existing server the default when you
	run 'mfpdev server edit'. If you do not explicitly define a default server
	and a MobileFirst server is detected that is running locally at
	http://localhost:9080, then this local server is used as the default, and it
	is given the name 'local'.

	<runtime>: Only valid when provided with a server name. Specifies the
	runtime on the server that the web resources will be deployed to. The
	default runtime is 'mfp'.

	[--password|-p <password>]: The password for the server's administrative
	login ID.  The password specified here must match the password that is
	defined on the MobileFirst Server. If you do not set this password in the
	local profile for the specified server, you must specify it with this
	option or you will be prompted for it.

	[--build|-b]: Specifies that the web resources file (.zip format)should be
	built but not deployed to the server.

	[--file|-f <filePath>]: Deploys an existing compressed web resources file,
	located at <filePath>, to the server. The --build option and the --file
	option are mutually exclusive.

EXAMPLES
    $ mfpdev app webupdate

    Creates a .zip file that contains web resources and deploys it to the
    default MobileFirst Server and the default runtime.

    $ mfpdev app webupdate myServer runtimeA --password secretPassword!

    Creates a .zip file that contains web resources and deploys it to the
    runtime 'runtimeA' on the MobileFirst Server with the profile 'myServer'
    with password 'secretPassword!'.

    $ mfpdev app webupdate --build

    Creates a .zip file that contains web resources but does not deploy it
    to a MobileFirst Server.

    $ mfpdev app webupdate --file mobilefirst/myapp-android-1.0.0.zip

    Deploys the web resources file myapp-android-1.0.0.zip to the default
    MobileFirst Server.
