rcli: command line api interface