From abaaa22adb39d8402f4fd72599d55f6d3bba3f85 Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Tue, 21 Jan 2025 21:06:12 +0000 Subject: [PATCH] Allow deploy with project name and app id (#4550) * `reflex deploy --project-name` * add app id as well * config file update * Update reflex/reflex.py Co-authored-by: Masen Furer * Update reflex/reflex.py Co-authored-by: Masen Furer --------- Co-authored-by: simon Co-authored-by: Masen Furer --- reflex/reflex.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reflex/reflex.py b/reflex/reflex.py index b0f4ccd91..196a2430c 100644 --- a/reflex/reflex.py +++ b/reflex/reflex.py @@ -440,7 +440,11 @@ def deploy( config.app_name, "--app-name", help="The name of the App to deploy under.", - hidden=True, + ), + app_id: str = typer.Option( + None, + "--app-id", + help="The ID of the App to deploy over.", ), regions: List[str] = typer.Option( [], @@ -480,6 +484,11 @@ def deploy( "--project", help="project id to deploy to", ), + project_name: Optional[str] = typer.Option( + None, + "--project-name", + help="The name of the project to deploy to.", + ), token: Optional[str] = typer.Option( None, "--token", @@ -524,6 +533,7 @@ def deploy( ) hosting_cli.deploy( app_name=app_name, + app_id=app_id, export_fn=lambda zip_dest_dir, api_url, deploy_url, @@ -547,6 +557,8 @@ def deploy( loglevel=type(loglevel).INFO, # type: ignore token=token, project=project, + config_path=config_path, + project_name=project_name, **extra, )