def METHOD_NAME():
    with get_instance_for_cli() as instance:
        home = os.environ.get("DAGSTER_HOME")
        if instance.is_ephemeral:
            click.echo(
                "$DAGSTER_HOME is not set; ephemeral instances cannot be reindexed.  If you "
                "intended to migrate a persistent instance, please ensure that $DAGSTER_HOME is "
                "set accordingly."
            )
            return
        click.echo(f"$DAGSTER_HOME: {home}\n")
        instance.reindex(click.echo)