Microsoft.Extensions.Configuration.CommandLine 10.0.0-preview.3.25171.5

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Configuration.CommandLine.
dotnet add package Microsoft.Extensions.Configuration.CommandLine --version 10.0.0-preview.3.25171.5
                    
NuGet\Install-Package Microsoft.Extensions.Configuration.CommandLine -Version 10.0.0-preview.3.25171.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="10.0.0-preview.3.25171.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="10.0.0-preview.3.25171.5" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Configuration.CommandLine --version 10.0.0-preview.3.25171.5
                    
#r "nuget: Microsoft.Extensions.Configuration.CommandLine, 10.0.0-preview.3.25171.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Microsoft.Extensions.Configuration.CommandLine&version=10.0.0-preview.3.25171.5&prerelease
                    
Install Microsoft.Extensions.Configuration.CommandLine as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Configuration.CommandLine&version=10.0.0-preview.3.25171.5&prerelease
                    
Install Microsoft.Extensions.Configuration.CommandLine as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (368)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Configuration.CommandLine:

Package Downloads
Microsoft.Extensions.Hosting

Hosting and startup infrastructures for applications.

Microsoft.AspNetCore

Microsoft.AspNetCore

Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. 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.

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.

Volo.Abp.Core

Package Description

GitHub repositories (120)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Configuration.CommandLine:

Repository Stars
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
chocolatey/choco
Chocolatey - the package manager for Windows
d2phap/ImageGlass
🏞 A lightweight, versatile image viewer
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
jamesmh/coravel
Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze!
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
ravendb/ravendb
ACID Document Database
dotnet/command-line-api
Command line parsing, invocation, and rendering of terminal output.
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
dafny-lang/dafny
Dafny is a verification-aware programming language
cairoshell/cairoshell
Cairo is a customizable, intuitive desktop environment for Windows.
betalgo/openai
.NET library for the OpenAI service API by Betalgo Ranul
GitTools/GitVersion
From git log to SemVer in no time
danielpalme/ReportGenerator
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.
1357310795/MyComputerManager
管理“此电脑”里删不掉的流氓“快捷方式”(包括侧边栏),同时可自己添加这类“快捷方式”
Version Downloads Last updated
10.0.0-preview.3.25171.5 3,581 4/10/2025
10.0.0-preview.2.25163.2 8,437 3/18/2025
10.0.0-preview.1.25080.5 9,238 2/25/2025
9.0.4 520,332 4/8/2025
9.0.3 2,035,960 3/11/2025
9.0.2 3,145,919 2/11/2025
9.0.1 3,373,602 1/14/2025
9.0.0 8,819,103 11/12/2024
9.0.0-rc.2.24473.5 93,997 10/8/2024
9.0.0-rc.1.24431.7 61,359 9/10/2024
9.0.0-preview.7.24405.7 34,668 8/13/2024
9.0.0-preview.6.24327.7 108,084 7/9/2024
9.0.0-preview.5.24306.7 26,796 6/11/2024
9.0.0-preview.4.24266.19 23,520 5/21/2024
9.0.0-preview.3.24172.9 106,658 4/11/2024
9.0.0-preview.2.24128.5 32,742 3/12/2024
9.0.0-preview.1.24080.9 60,134 2/13/2024
8.0.0 123,341,259 11/14/2023
8.0.0-rc.2.23479.6 150,232 10/10/2023
8.0.0-rc.1.23419.4 114,873 9/12/2023
8.0.0-preview.7.23375.6 52,255 8/8/2023
8.0.0-preview.6.23329.7 70,045 7/11/2023
8.0.0-preview.5.23280.8 60,196 6/13/2023
8.0.0-preview.4.23259.5 274,261 5/16/2023
8.0.0-preview.3.23174.8 114,457 4/11/2023
8.0.0-preview.2.23128.3 118,749 3/14/2023
8.0.0-preview.1.23110.8 94,955 2/21/2023
7.0.0 78,791,536 11/7/2022
7.0.0-rc.2.22472.3 138,228 10/11/2022
7.0.0-rc.1.22426.10 137,608 9/14/2022
7.0.0-preview.7.22375.6 60,322 8/9/2022
7.0.0-preview.6.22324.4 48,483 7/12/2022
7.0.0-preview.5.22301.12 43,173 6/14/2022
7.0.0-preview.4.22229.4 68,187 5/10/2022
7.0.0-preview.3.22175.4 45,683 4/13/2022
7.0.0-preview.2.22152.2 12,066 3/14/2022
7.0.0-preview.1.22076.8 23,014 2/17/2022
6.0.1 28,602 11/12/2024
6.0.0 188,000,225 11/8/2021
6.0.0-rc.2.21480.5 408,212 10/12/2021
6.0.0-rc.1.21451.13 269,889 9/14/2021
6.0.0-preview.7.21377.19 123,835 8/10/2021
6.0.0-preview.6.21352.12 43,556 7/14/2021
6.0.0-preview.5.21301.5 30,603 6/15/2021
6.0.0-preview.4.21253.7 20,425 5/24/2021
6.0.0-preview.3.21201.4 37,214 4/8/2021
6.0.0-preview.2.21154.6 61,817 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21102.12 33,099 2/12/2021 6.0.0-preview.1.21102.12 is deprecated because it is no longer maintained.
5.0.0 115,531,766 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 92,326 10/13/2020 5.0.0-rc.2.20475.5 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.14 247,764 9/14/2020 5.0.0-rc.1.20451.14 is deprecated because it is no longer maintained.
5.0.0-preview.8.20407.11 32,892 8/25/2020 5.0.0-preview.8.20407.11 is deprecated because it is no longer maintained.
5.0.0-preview.7.20364.11 40,167 7/21/2020 5.0.0-preview.7.20364.11 is deprecated because it is no longer maintained.
5.0.0-preview.6.20305.6 23,052 6/25/2020 5.0.0-preview.6.20305.6 is deprecated because it is no longer maintained.
5.0.0-preview.5.20278.1 12,705 6/10/2020 5.0.0-preview.5.20278.1 is deprecated because it is no longer maintained.
5.0.0-preview.4.20251.6 29,452 5/19/2020 5.0.0-preview.4.20251.6 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 17,832 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 45,026 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 17,486 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 2,003,106 12/13/2022
3.1.31 549,322 11/8/2022
3.1.30 1,057,190 10/11/2022
3.1.29 323,901 9/13/2022
3.1.28 476,495 8/9/2022
3.1.27 305,767 7/12/2022
3.1.26 293,681 6/14/2022
3.1.25 444,220 5/10/2022
3.1.24 364,188 4/11/2022
3.1.23 755,105 3/8/2022
3.1.22 2,126,377 12/14/2021
3.1.21 1,496,252 11/7/2021
3.1.20 897,841 10/11/2021
3.1.19 822,996 9/14/2021
3.1.18 2,001,759 8/10/2021
3.1.17 1,275,386 7/13/2021
3.1.16 1,728,221 6/8/2021
3.1.15 2,627,695 5/11/2021
3.1.14 2,785,569 4/6/2021
3.1.13 2,600,622 3/9/2021
3.1.12 2,106,145 2/9/2021
3.1.11 2,705,244 1/12/2021
3.1.10 6,003,103 11/9/2020
3.1.9 7,021,281 10/13/2020
3.1.8 9,311,747 9/8/2020
3.1.7 6,280,728 8/11/2020
3.1.6 14,543,962 7/14/2020
3.1.5 11,164,295 6/9/2020
3.1.4 5,754,130 5/12/2020
3.1.3 10,417,770 3/24/2020
3.1.2 10,738,696 2/18/2020
3.1.1 7,603,721 1/14/2020
3.1.0 16,464,807 12/3/2019
3.1.0-preview3.19553.2 13,696 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 4,276 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 7,942 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 252,638 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 744,637 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 896,835 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 14,775,738 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 17,732 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 25,016 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 54,781 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 29,697 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 33,812 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 50,810 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 11,494 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 32,485 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 6,557 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 2,493 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.0 63,678,782 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 74,600 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 43,167 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 12,358 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.1 37,195,248 6/18/2018
2.1.0 6,096,337 5/29/2018
2.1.0-rc1-final 67,283 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 38,473 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 111,999 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.2 5,160,457 5/7/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,223,648 3/13/2018 2.0.1 is deprecated because it is no longer maintained.
2.0.0 21,541,239 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 82,039 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 46,100 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.2 789,510 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 413,968 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 444,938 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 7,356 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.2 208,391 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 375,406 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 610,558 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 1,607,162 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.
1.0.0-rc1-final 495,082 11/18/2015 1.0.0-rc1-final is deprecated because it is no longer maintained.