Appendix A. CLI References

To help keep things simple, here's a quick reference for the most common commands and operations used to manage the application server via the CLI. For the sake of brevity, only the jboss-cli.sh script (in the Linux environment) is mentioned. Windows users should just replace this file with the equivalent jboss-cli.bat file.

Startup options

The following commands can be used to start the CLI in a noninteractive way:

  • Pass script commands to the jboss-cli shell:
    ./jboss-cli.sh --connect command=:shutdown
    
  • Execute a CLI shell contained in a file:
    ./jboss-cli.sh --file=test.cli
    

Get WildFly Configuration, Deployment, and Administration - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.