Microsoft.Extensions.Configuration.CommandLine 11.0.0-preview.5.26302.115

About

Command line configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from the command line arguments of your application. You can use CommandLineConfigurationExtensions.AddCommandLine extension method on IConfigurationBuilder to add the command line configuration provider to the configuration builder.

How to Use

The following example shows how to read application configuration from the command line. You can use a command like dotnet run --InputPath "c:\fizz" --OutputPath "c:\buzz" to run it.

using System;
using Microsoft.Extensions.Configuration;

class Program
{
    static void Main(string[] args)
    {
        // Build a configuration object from command line
        IConfiguration config = new ConfigurationBuilder()
            .AddCommandLine(args)
            .Build();

        // Read configuration values
        Console.WriteLine($"InputPath: {config["InputPath"]}");
        Console.WriteLine($"OutputPath: {config["OutputPath"]}");
    }
}

Additional Documentation

Feedback & Contributing

Microsoft.Extensions.Configuration.CommandLine is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.CommandLine.

Packages Downloads
Volo.Abp.Core
Package Description
26
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
26
Volo.Abp.Core
Package Description
22
Volo.Abp.Core
Package Description
21
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
21
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
21
Volo.Abp.Core
Package Description
20
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
20
Volo.Abp.Core
Package Description
19

https://go.microsoft.com/fwlink/?LinkID=799421

.NET 10.0

.NET 11.0

.NET Framework 4.6.2

.NET Standard 2.0

Version Downloads Last updated
11.0.0-preview.7.26381.103 1 08/16/2026
11.0.0-preview.6.26359.118 1 08/16/2026
11.0.0-preview.5.26302.115 1 08/16/2026
11.0.0-preview.4.26230.115 0 05/12/2026
11.0.0-preview.3.26207.106 0 04/14/2026
11.0.0-preview.2.26159.112 1 03/15/2026
11.0.0-preview.1.26104.118 0 02/10/2026
10.0.11 1 08/16/2026
10.0.10 0 07/14/2026
10.0.9 1 08/16/2026
10.0.8 0 05/12/2026
10.0.7 0 04/21/2026
10.0.6 1 08/16/2026
10.0.5 1 03/15/2026
10.0.4 2 03/15/2026
10.0.3 1 04/14/2026
10.0.2 3 01/20/2026
10.0.1 3 12/17/2025
10.0.0 8 11/26/2025
10.0.0-rc.2.25502.107 8 10/23/2025
10.0.0-rc.1.25451.107 2 10/23/2025
10.0.0-preview.7.25380.108 10 08/16/2025
10.0.0-preview.6.25358.103 12 07/17/2025
10.0.0-preview.5.25277.114 5 06/28/2025
10.0.0-preview.4.25258.110 11 06/30/2025
10.0.0-preview.3.25171.5 8 06/30/2025
10.0.0-preview.2.25163.2 16 06/30/2025
10.0.0-preview.1.25080.5 9 03/05/2025
9.0.19 0 08/11/2026
9.0.18 0 07/14/2026
9.0.17 0 06/09/2026
9.0.16 0 05/12/2026
9.0.15 0 04/14/2026
9.0.14 2 03/15/2026
9.0.13 1 04/18/2026
9.0.12 1 01/20/2026
9.0.11 7 12/17/2025
9.0.10 4 10/22/2025
9.0.9 12 10/22/2025
9.0.8 9 08/11/2025
9.0.7 7 07/18/2025
9.0.6 14 06/29/2025
9.0.5 8 07/01/2025
9.0.4 12 06/30/2025
9.0.3 12 06/30/2025
9.0.2 10 03/06/2025
9.0.1 13 03/06/2025
9.0.0 10 03/06/2025
9.0.0-rc.2.24473.5 12 03/06/2025
9.0.0-rc.1.24431.7 6 03/06/2025
9.0.0-preview.7.24405.7 10 03/04/2025
9.0.0-preview.6.24327.7 11 03/04/2025
9.0.0-preview.5.24306.7 12 03/04/2025
9.0.0-preview.4.24266.19 7 03/04/2025
9.0.0-preview.3.24172.9 6 03/04/2025
9.0.0-preview.2.24128.5 10 03/04/2025
9.0.0-preview.1.24080.9 6 02/28/2025
8.0.0 9 03/06/2025
8.0.0-rc.2.23479.6 12 03/04/2025
8.0.0-rc.1.23419.4 15 03/06/2025
8.0.0-preview.7.23375.6 13 03/04/2025
8.0.0-preview.6.23329.7 12 03/04/2025
8.0.0-preview.5.23280.8 11 03/04/2025
8.0.0-preview.4.23259.5 12 03/04/2025
8.0.0-preview.3.23174.8 14 03/04/2025
8.0.0-preview.2.23128.3 12 03/04/2025
8.0.0-preview.1.23110.8 6 03/04/2025
7.0.0 19 03/06/2025
7.0.0-rc.2.22472.3 10 03/06/2025
7.0.0-rc.1.22426.10 8 03/04/2025
7.0.0-preview.7.22375.6 11 02/28/2025
7.0.0-preview.6.22324.4 10 02/28/2025
7.0.0-preview.5.22301.12 12 02/28/2025
7.0.0-preview.4.22229.4 7 03/04/2025
7.0.0-preview.3.22175.4 11 03/04/2025
7.0.0-preview.2.22152.2 11 03/04/2025
7.0.0-preview.1.22076.8 12 03/04/2025
6.0.1 14 03/06/2025
6.0.0 19 03/06/2025
6.0.0-rc.2.21480.5 14 03/04/2025
6.0.0-rc.1.21451.13 6 03/04/2025
6.0.0-preview.7.21377.19 15 03/04/2025
6.0.0-preview.6.21352.12 14 03/04/2025
6.0.0-preview.5.21301.5 10 02/28/2025
6.0.0-preview.4.21253.7 11 03/04/2025
6.0.0-preview.3.21201.4 16 02/28/2025
6.0.0-preview.2.21154.6 11 03/04/2025
6.0.0-preview.1.21102.12 10 03/05/2025
5.0.0 9 07/07/2023
5.0.0-rc.2.20475.5 13 03/06/2025
5.0.0-rc.1.20451.14 10 03/04/2025
5.0.0-preview.8.20407.11 9 03/04/2025
5.0.0-preview.7.20364.11 14 03/04/2025
5.0.0-preview.6.20305.6 17 03/04/2025
5.0.0-preview.5.20278.1 17 03/04/2025
5.0.0-preview.4.20251.6 7 03/04/2025
5.0.0-preview.3.20215.2 12 03/04/2025
5.0.0-preview.2.20160.3 11 02/28/2025
5.0.0-preview.1.20120.4 11 03/04/2025
3.1.32 13 02/27/2025
3.1.31 7 02/27/2025
3.1.30 15 02/27/2025
3.1.29 11 02/28/2025
3.1.28 8 02/28/2025
3.1.27 9 02/28/2025
3.1.26 12 02/28/2025
3.1.25 12 02/28/2025
3.1.24 13 02/28/2025
3.1.23 12 02/27/2025
3.1.22 14 02/27/2025
3.1.21 19 02/27/2025
3.1.20 11 02/28/2025
3.1.19 13 02/27/2025
3.1.18 13 02/27/2025
3.1.17 12 02/27/2025
3.1.16 12 02/27/2025
3.1.15 9 02/27/2025
3.1.14 10 02/27/2025
3.1.13 10 02/27/2025
3.1.12 7 02/27/2025
3.1.11 7 02/27/2025
3.1.10 12 02/27/2025
3.1.9 9 03/06/2025
3.1.8 7 03/06/2025
3.1.7 11 03/06/2025
3.1.6 12 03/06/2025
3.1.5 16 03/06/2025
3.1.4 12 03/06/2025
3.1.3 9 03/06/2025
3.1.2 14 03/06/2025
3.1.1 15 03/06/2025
3.1.0 7 03/06/2025
3.1.0-preview3.19553.2 13 02/28/2025
3.1.0-preview2.19525.4 12 03/04/2025
3.1.0-preview1.19506.1 8 02/28/2025
3.0.3 12 03/06/2025
3.0.2 8 03/06/2025
3.0.1 13 03/06/2025
3.0.0 11 03/06/2025
3.0.0-rc1.19456.10 10 03/02/2025
3.0.0-preview9.19423.4 8 03/04/2025
3.0.0-preview8.19405.4 12 03/04/2025
3.0.0-preview7.19362.4 13 03/04/2025
3.0.0-preview6.19304.6 6 02/28/2025
3.0.0-preview5.19227.9 10 03/04/2025
3.0.0-preview4.19216.2 9 03/04/2025
3.0.0-preview3.19153.1 10 03/04/2025
3.0.0-preview.19074.2 8 03/08/2025
3.0.0-preview.18572.1 6 03/08/2025
2.2.0 11 03/06/2025
2.2.0-preview3-35497 9 03/08/2025
2.2.0-preview2-35157 11 03/08/2025
2.2.0-preview1-35029 11 03/08/2025
2.1.1 8 03/06/2025
2.1.0 7 03/06/2025
2.1.0-rc1-final 6 03/05/2025
2.1.0-preview2-final 8 03/06/2025
2.1.0-preview1-final 7 03/06/2025
2.0.2 8 03/06/2025
2.0.1 9 03/06/2025
2.0.0 11 09/23/2024
2.0.0-preview2-final 7 03/06/2025
2.0.0-preview1-final 7 03/06/2025
1.1.2 12 03/06/2025
1.1.1 15 03/06/2025
1.1.0 13 03/06/2025
1.1.0-preview1-final 10 03/06/2025
1.0.2 13 03/06/2025
1.0.1 14 03/06/2025
1.0.0 10 03/06/2025
1.0.0-rc2-final 11 03/05/2025
1.0.0-rc1-final 13 03/02/2025