@ConsoleCommand(description = "List all the databases available on the connected server", onlineHelp = "Console-Command-List-Databases") public void listDatabases() throws IOException { if (orientDB != null) { final List<String> databases = orientDB.list(); message("\nFound %d databases:\n", databases.size()); for (String database : databases) { message("\n* %s ", database); } } else { message( "\nNot connected to the Server instance. You've to connect to the Server using server's credentials (look at orientdb-*server-config.xml file)"); } out.println(); }