Move "next" command to cmd/