To connect to an ApsaraDB for Redis instance with redis-cli, see Use redis-cli.