def METHOD_NAME(ctx, recipes_file=None, all=False, name=None):
    if (all and name):
        ctx.fail("Only one of the options --name or --all should be present!")
    elif not any([all, name]):
        ctx.fail("One of the options --name or --all should be present!")
    try:
        yml_recipes = sr.load_recipes_from_yaml(recipes_file)
        if all:
            for yml_recipe in yml_recipes:
                prompt_sync(yml_recipe)
        else:
            yml_recipe = sr.get_recipe_by_name_from_yml(yml_recipes, name)
            if yml_recipe:
                prompt_sync(yml_recipe)
    except Exception as e:
        ctx.fail(e)
        ctx.fail('Invalid path to YAML file with the recipes. Provide the full path to a '
                 'yaml_with_recipes.yml file containing a description of recipes.')