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:",
@@ -220,6 +225,14 @@ def dev(
220
225
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."
221
226
),
222
227
] =None,
228
+
entrypoint: Annotated[
229
+
Union[str, None],
230
+
typer.Option(
231
+
"--entrypoint",
232
+
"-e",
233
+
help="The FastAPI app import string in the format 'module:app_name'.",
234
+
),
235
+
] =None,
223
236
proxy_headers: Annotated[
224
237
bool,
225
238
typer.Option(
@@ -259,6 +272,7 @@ def dev(
259
272
reload=reload,
260
273
root_path=root_path,
261
274
app=app,
275
+
entrypoint=entrypoint,
262
276
command="dev",
263
277
proxy_headers=proxy_headers,
264
278
)
@@ -309,6 +323,14 @@ def run(
309
323
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."
310
324
),
311
325
] =None,
326
+
entrypoint: Annotated[
327
+
Union[str, None],
328
+
typer.Option(
329
+
"--entrypoint",
330
+
"-e",
331
+
help="The FastAPI app import string in the format 'module:app_name'.",
0 commit comments