DOKK / manpages / debian 10 / uvicorn / uvicorn.1.en
UVICORN(1) General Commands Manual UVICORN(1)

uvicorn — ASGI server implementation

uvicorn [--host HOST] [--port PORT] [--uds UNIX_SOCKET] [--fd FILE_DESCRIPTOR] [--log-level LOG_LEVEL] [--no-access-log] [--debug] [--loop LOOP] [--http HTTP_IMPLEMENTATION] [--ws WEBSOCKET_IMPLEMENTATION] [--wsgi] [--ping-interval PING_INTERVAL] [--root-path PATH] [--proxy-headers] [--limit-concurrency CONNECTIONS] [--limit-max-requests REQUESTS] [--timeout-keep-alive SECONDS] [APP]

This manual page documents briefly the uvicorn command.

This manual page was written for the Debian distribution because the original program does not have a manual page.

uvicorn is a program that provides an ASGI server implementation.

This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below.

Bind socket to this host. Use --host 0.0.0.0 to make the application available on your local network. Default: '127.0.0.1'.
Bind to a socket with this port. Default: 8000.
Bind to a UNIX domain socket. Useful if you want to run Uvicorn behind a reverse proxy.
Bind to socket from this file descriptor. Useful if you want to run Uvicorn within a process manager.
Enable debug mode. Provides error tracebacks in the browser, and enables auto-reloading.
Set the log level. Options: 'critical', 'error', 'warning', 'info', 'debug'. Default: 'info'.
Disable access log only, without changing log level.
Set the event loop implementation. The uvloop implementation provides greater performance, but is not compatible with Windows or PyPy. Options: 'auto', 'asyncio', 'uvloop'. Default: 'auto'.
Set the HTTP protocol implementation. The httptools implementation provides greater performance, but it not compatible with PyPy, and requires compilation on Windows. Options: 'auto', 'h11', 'httptools'. Default: 'auto'.
Set the WebSockets protocol implementation. Either of the websockets and wsproto packages are supported. Use 'none' to deny all websocket requests. Options: 'auto', 'none', 'websockets', 'wsproto'. Default: 'auto'.
Use WSGI as the application interface rather than ASGI. Note that WSGI mode always disables WebSocket support, as it is not supported by the WSGI interface.
Set the ASGI root_path for applications submounted below a given URL path.
Use the X-Forwarded-Proto and X-Forwarded-For headers to populate remote scheme/address info.
Maximum number of concurrent connections or tasks to allow, before issuing HTTP 503 responses. Useful for ensuring known memory usage patterns even under over-resourced loads.
Maximum number of requests to service before terminating the process. Useful when running together with a process manager, for preventing memory leaks from impacting long-running processes.
Close Keep-Alive connections if no new data is received within this timeout. Default: 5.

The ASGI application to run, in the format "module:attribute".

This manual page was written by fladi fladi@debian.org for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.