You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Importing the FastAPI app object from the module with the following code:",
@@ -222,6 +227,14 @@ def dev(
222
227
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
223
228
),
224
229
] =None,
230
+
entrypoint: Annotated[
231
+
Union[str, None],
232
+
typer.Option(
233
+
"--entrypoint",
234
+
"-e",
235
+
help="The FastAPI app import string in the format 'module:app_name'.",
236
+
),
237
+
] =None,
225
238
proxy_headers: Annotated[
226
239
bool,
227
240
typer.Option(
@@ -267,6 +280,7 @@ def dev(
267
280
reload=reload,
268
281
root_path=root_path,
269
282
app=app,
283
+
entrypoint=entrypoint,
270
284
command="dev",
271
285
proxy_headers=proxy_headers,
272
286
forwarded_allow_ips=forwarded_allow_ips,
@@ -318,6 +332,14 @@ def run(
318
332
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
319
333
),
320
334
] =None,
335
+
entrypoint: Annotated[
336
+
Union[str, None],
337
+
typer.Option(
338
+
"--entrypoint",
339
+
"-e",
340
+
help="The FastAPI app import string in the format 'module:app_name'.",
0 commit comments