Support for payloads and output redirection in CLI.