@click.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=int, help='<STR_LIT>')<EOL>@clean_outputs<EOL>def cluster(node):
cluster_client = PolyaxonClient().cluster<EOL>if node:<EOL><INDENT>try:<EOL><INDENT>node_config = cluster_client.get_node(node)<EOL><DEDENT>except (PolyaxonHTTPError, PolyaxonShouldExitError, PolyaxonClientException) as e:<EOL><INDENT>Printer.print_error('<STR_LIT>'.format(node))<EOL>Printer.print_error('<STR_LIT>'.format(e))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>get_node_info(node_config)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>cluster_config = cluster_client.get_cluster()<EOL><DEDENT>except (PolyaxonHTTPError, PolyaxonShouldExitError, PolyaxonClientException) as e:<EOL><INDENT>Printer.print_error('<STR_LIT>')<EOL>Printer.print_error('<STR_LIT>'.format(e))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>get_cluster_info(cluster_config)<EOL><DEDENT>
Get cluster and nodes info.