O'Reilly logo

JBoss AS 7 Configuration, Deployment, and Administration by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploy commands

The CLI can also be used to deploy applications. Here is a quick reference to deploy commands:

  • List of deployed applications:
    deploy
    
  • Deploy an application on a standalone server:
    deploy MyApp.war
    
  • Re-deploy an application on a standalone server:
    deploy -f MyApp.war
    
  • Un-deploy an application:
    undeploy MyApp.war
    
  • Deploy an application on all server groups:
    deploy MyApp.war --all-server-groups
    
  • Deploy an application on one or more server groups (separated by a comma):
    deploy application.ear --server-groups=main-server-group
    
  • Un-deploy an application from all server groups:
    undeploy application.ear --all-relevant-server-groups
    
  • Un-deploy an application from one or more server groups:
    undeploy as7project.war --server-groups=main-server-group
    
  • Un-deploy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required