@admin.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Path(exists=True),<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', type=click.Path(exists=True),<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', is_flag=True, default=False,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', is_flag=True, default=False,<EOL>help='<STR_LIT>')<EOL>@clean_outputs<EOL>def deploy(file, manager_path, check, dry_run):  
config = read_deployment_config(file)<EOL>manager = DeployManager(config=config,<EOL>filepath=file,<EOL>manager_path=manager_path,<EOL>dry_run=dry_run)<EOL>exception = None<EOL>if check:<EOL><INDENT>manager.check()<EOL>Printer.print_success('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>manager.install()<EOL><DEDENT>except Exception as e:<EOL><INDENT>Printer.print_error('<STR_LIT>')<EOL>exception = e<EOL><DEDENT><DEDENT>if exception:<EOL><INDENT>Printer.print_error('<STR_LIT>'.format(exception))<EOL><DEDENT>
Deploy polyaxon.