Enable/disable deployed components in jboss 6 using cli
Deployment of a 'sample' web application
[standalone@localhost:9999 /] deploy /home/rudy/Downloads/sample.war
Disabling a 'sample' web application
[standalone@localhost:9999 /] undeploy sample.war --keep-content
Re-enabling a 'sample' web application
[standalone@localhost:9999 /] deploy --name=sample.war
Undeployment of a 'sample' web application
[standalone@localhost:9999 /] undeploy sample.war
You can disable deployed components with undeploy {deployment name} --keep-content
First of all, do you mean JBoss EAP 6.x by jboss6? I don't know anything about CLI in JBoss 6. I didn't find a way to actively disable or enable deployments via CLI, but at least you can enable a disabled deployment with
deploy --name={your_deployment_name.ear/war}
See also https://community.jboss.org/thread/223931