I am sure this is not new for many but I wanted to capture for my own sanity in the future. The following can’t be executed at the command line and in my case on OS X. The first script Will undeploy a given webapp by context.
wget http://username:password@host:port/manager/undeploy?path=/path -O - -q
The second script will redeploy a local war file to a given context.
curl --upload-file target/warfile.war "http://username:password@hostname:port/manager/deploy?path=context&update=true"
The [port] in all cases is optional if the default port for the tomcat instance is utilized.