refactor(cloudcmd) readIndex -> buildIndex