Part II. Basic Examples for Running JBoss ON Scripts Through the CLI

One of the ways to run scripts on the JBoss ON server is through the JBoss ON CLI. [1] The JBoss ON CLI is essentially a script interpreter which processes JavaScript — either interactively or from a file — and executes it inside the Java virtual machine. The CLI uses the server's remote API, an underlying domain API, and some of its own CLI-specific methods to make common tasks easier to execute.
The remote API, domain API, and CLI-specific methods are exposed to CLI and to scripts so that they can be easily used.


[1] Other methods include alert scripts and custom clients.