Add support for piping from stdin in CLI