added cli class and test, moved CLI.open to Repository