Software >> Middleware >> Weblogic >> 11gR1 >> How to re-deploy a web application from command line

change directory to the weblogic home directory

change to the server/bin directory

$ cd server/bin

assuming we are using bash shell

$ source ./setWLSEenv.sh

$ java weblogic.Deployer -adminurl t3://admin-ip-addr:admin-port -username adminuser -password adminpassword -name web-app-name -undeploy

java weblogic.Deployer -adminurl t3://admin-ip-addr:admin-port -username adminuser -password adminpassword -name web-app-name -deploy web-app-war-file-name -targets managed-server-name