Fixed error undefined get_instance in cli

Error reported by pete #2