Add support for stdin on cli