Skip to content

Index

CLI package for the Delta Table Manager.

cli(ctx, config, target, render_output)

Delta Table Manager — database schema lifecycle tool.

Source code in src/cloe_delta_table_manager/cli/main.py
@click.group()
@click.option(
    "--config",
    default="project.yaml",
    show_default=True,
    help="Path to project.yaml.",
)
@click.option(
    "--target",
    required=True,
    help="Deployment target name (must match a key under 'targets' in project.yaml).",
)
@click.option(
    "--render-output",
    default=None,
    help="Directory to write rendered template files into. Useful for debugging. "
    "When omitted a temporary directory is used and cleaned up on exit.",
)
@click.pass_context
def cli(ctx: click.Context, config: str, target: str, render_output: str | None) -> None:
    """Delta Table Manager — database schema lifecycle tool."""
    ctx.ensure_object(dict)
    ctx.obj["config_path"] = config
    ctx.obj["target"] = target
    ctx.obj["render_output"] = render_output