WildFly cli

Start/stop:

Start the server in domain mode:

$ ./domain.sh

Start the server in standalone mode:

$ ./standalone.sh

To stop the server, press Ctrl + C, or use the admin console:

$ ./jboss-cli.sh --connect command=:shutdown

(Resource)

Deploy/undeploy:

Interactive console:

jboss-cli.sh -c
[standalone@localhost:9990 /] deploy target/javaee7-1.0-SNAPSHOT.war
[standalone@localhost:9990 /] deployment-info
[standalone@localhost:9990 /] undeploy javaee7-1.0-SNAPSHOT.war

non-interactive:

jboss-cli.sh --connect --command="deploy target/javaee7-1.0-SNAPSHOT.war --force"
jboss-cli.sh --connect --command=deployment-info
jboss-cli.sh --connect --command="undeploy javaee7-1.0-SNAPSHOT.war"

(Resource)

Advertisements