Commands are processed using an EventBus implementation called TerminalService. Import this service into your component and subscribe to the command event to process the commands by sending replies with the response event.
Enter "date" to display the current date, "greet {0}" for a message and "random" to get a random number.