This recipe will show you how to deploy/undeploy applications using WLST online mode.
As an example, we will deploy the sampleApp application located at c:\home\sample and create a default deployment plan for it:
The above command will return a WLSTProgress object. You can then use the progress variable to print the status of the deploy command. For example:
The next command, removes the sampleApp application from all target servers. WLST waits 60,000 ms for the process to complete: