Skip to content

Commit abaaa22

Browse files
ElijahAhianyoKastier1masenf
authored
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 <[email protected]> * Update reflex/reflex.py Co-authored-by: Masen Furer <[email protected]> --------- Co-authored-by: simon <[email protected]> Co-authored-by: Masen Furer <[email protected]>
1 parent 0c70146 commit abaaa22

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

reflex/reflex.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,11 @@ def deploy(
440440
config.app_name,
441441
"--app-name",
442442
help="The name of the App to deploy under.",
443-
hidden=True,
443+
),
444+
app_id: str = typer.Option(
445+
None,
446+
"--app-id",
447+
help="The ID of the App to deploy over.",
444448
),
445449
regions: List[str] = typer.Option(
446450
[],
@@ -480,6 +484,11 @@ def deploy(
480484
"--project",
481485
help="project id to deploy to",
482486
),
487+
project_name: Optional[str] = typer.Option(
488+
None,
489+
"--project-name",
490+
help="The name of the project to deploy to.",
491+
),
483492
token: Optional[str] = typer.Option(
484493
None,
485494
"--token",
@@ -524,6 +533,7 @@ def deploy(
524533
)
525534
hosting_cli.deploy(
526535
app_name=app_name,
536+
app_id=app_id,
527537
export_fn=lambda zip_dest_dir,
528538
api_url,
529539
deploy_url,
@@ -547,6 +557,8 @@ def deploy(
547557
loglevel=type(loglevel).INFO, # type: ignore
548558
token=token,
549559
project=project,
560+
config_path=config_path,
561+
project_name=project_name,
550562
**extra,
551563
)
552564

0 commit comments

Comments
 (0)