Refactor playback and record methods for cli name