Skip to main content

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)

ArgTypeDefaultSource
--Http:Endpoint=<url>stringhttp://localhost:45928/HttpConfig.Endpoint
--Http:WebSocketEndpoint=<url>stringhttp://localhost:45929/HttpConfig.WebSocketEndpoint
--Http:AllowImmediateStart=<bool>boolfalseHttpConfig.AllowImmediateStart
--Messaging:Enabled=<bool>boolfalseMessagingConfig.Enabled
--environment=<env>stringN/AGeneric Host built-in (selects Azure App Config label)
--contentRoot=<path>stringN/AGeneric Host built-in
--applicationName=<name>stringN/AGeneric Host built-in