def METHOD_NAME():
    with get_instance_for_cli() as instance:
        home = os.environ.get("DAGSTER_HOME")
        if not home:
            click.echo("$DAGSTER_HOME is not set; ephemeral instances do not need to be migrated.")
            return
        click.echo(f"$DAGSTER_HOME: {home}\n")
        click.echo("\nInstance configuration:\n-----------------------")
        click.echo(instance.info_str())
        click.echo(
            "\nStorage schema state before migration:\n--------------------------------------"
        )
        click.echo(instance.schema_str())
        click.echo("\nRunning migration:\n------------------")
        instance.upgrade(click.echo)
        click.echo("\nStorage schema state after migration:\n-------------------------------------")
        click.echo(instance.schema_str())