diff --git a/src/lightning_app/cli/lightning_cli.py b/src/lightning_app/cli/lightning_cli.py index 52a5a09fd1a21..11a26e5279a67 100644 --- a/src/lightning_app/cli/lightning_cli.py +++ b/src/lightning_app/cli/lightning_cli.py @@ -234,7 +234,7 @@ def _run_app( if not os.path.exists(file): original_file = file - file = cmd_install.gallery_apps_and_components(file, True, "latest", overwrite=False) # type: ignore[assignment] # noqa E501 + file = cmd_install.gallery_apps_and_components(file, True, "latest", overwrite=True) # type: ignore[assignment] # noqa E501 if file is None: click.echo(f"The provided entrypoint `{original_file}` doesn't exist.") sys.exit(1)