Command-line args
The host uses AddCommandLine over keys filtered by IsRestrictedArgument. Standard form is --Section:Key=value. Both colon (:) and the dotnet double-underscore form work via the host builder.
Allowed (overridable from CLI)
| Arg | Type | Default | Source |
|---|---|---|---|
--Http:Endpoint=<url> | string | http://localhost:45928/ | HttpConfig.Endpoint |
--Http:WebSocketEndpoint=<url> | string | http://localhost:45929/ | HttpConfig.WebSocketEndpoint |
--Http:AllowImmediateStart=<bool> | bool | false | HttpConfig.AllowImmediateStart |
--Messaging:Enabled=<bool> | bool | false | MessagingConfig.Enabled |
--environment=<env> | string | N/A | Generic Host built-in (selects Azure App Config label) |
--contentRoot=<path> | string | N/A | Generic Host built-in |
--applicationName=<name> | string | N/A | Generic Host built-in |