cmd: read/write: Add support for read and write operations