Maybe I'm missing something but the server application resulting from the source code in this book does not actually work with redis-cli or any Redis clients. It appears to be using a custom binary protocol, not valid RESP.
I feel that the RESP protocol itself is the most challenging task of building ones own Redis.