RhapsodyCL

RhapsodyCL allows you to use code-related functions, such as generate and make, in contexts where you do not require the GUI elements, for example, as part of a nightly build procedure.

Since RhapsodyCL is designed for tasks such as code generation, it does not support options relating to diagrams, for example, populating a diagram from the command line. It also does not support the commands relating to configuration management and running macros.

You can send the RhapsodyCL application commands using any of these four methods:

Interactive mode

In interactive mode, RhapsodyCL, switches to a “shell mode” using a prompt to enter commands. You can use either of the following techniques to employ the interactive mode:

For every command the user enters in interactive mode, RhapsodyCL performs the following actions:

  1. Executes the command.
  2. Waits for more commands from the user.
  3. Stops when an exit command is received.
Note: If any commands exist in the command line when the -interactive switch is entered, the existing commands are executed first, and then RhapsodyCL enters interactive mode.

Socket mode

In socket mode, RhapsodyCL listens on a socket port (supplied by the user), and any commands that arrive on that socket are executed immediately. RhapsodyCL stops only when it receives an exit command.

To start RationalCL in socket mode, enter this command:

RhapsodyCL.exe -socket <Socket_Port>

In this command, <Socket_Port> should be replaced with the number of the port which RhapsodyCL listens to for commands.

Note: If any commands exist in the command line when the -socket <Socket_Port> switch is entered, the existing commands are executed first, and then RhapsodyCL enters socket mode.

Feedback