<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="11.0.0-rc.1.26425.128" />

Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource

public class CommandLineConfigurationSource : IConfigurationSource
Represents command-line arguments as an IConfigurationSource.
public IEnumerable<string> Args { get; set; }

Gets or sets the command line arguments.

public IDictionary<string, string> SwitchMappings { get; set; }

Gets or sets the switch mappings.

public IConfigurationProvider Build(IConfigurationBuilder builder)

Builds the CommandLineConfigurationProvider for this source.