The OpenCms shell is perfect for automating tasks. In particular, tasks that include not only OpenCms specific parts, but also "normal" shell commands. You can call the OpenCms shell from a shell script and paste it an OpenCms script that it should execute.
Particular use cases are
- Automatically install extra modules when deploying OpenCms
- Automatically export database data or modules, e.g., for moving the exported data to another server for backup.
The OpenCms shell also supports import and export in clusters.
Since OpenCms 11, you can start the shell either in stand-alone mode (as was before) or connect to your running OpenCms webapp via remote method invocation (RMI).