Publishing messages with a command-line tool