{"id":20041,"date":"2018-08-22T08:17:34","date_gmt":"2018-08-22T15:17:34","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/?p=14895"},"modified":"2018-08-22T08:17:34","modified_gmt":"2018-08-22T15:17:34","slug":"libman-cli-released","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/libman-cli-released\/","title":{"rendered":"LibMan CLI Released"},"content":{"rendered":"<p>The Command Line Interface (CLI) is now available for Microsoft Library Manager (LibMan) and can be downloaded via NuGet. Look for <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Web.LibraryManager.Cli\/\">Microsoft.Web.LibraryManager.Cli<\/a>\nThe LibMan CLI is cross-platform, so you\u2019ll be able to use it anywhere that .NET Core is supported (Windows, Mac, Linux).<\/p>\n<p><strong>Install the LibMan CLI<\/strong><\/p>\n<p>To install LibMan, type:<\/p>\n<pre>&gt; dotnet tool install --global Microsoft.Web.LibraryManager.Cli<\/pre>\n<p>Once the LibMan CLI is installed, you can start using LibMan from the root of your web project (or any folder).<\/p>\n<p><strong>Using LibMan from the Command Line<\/strong><\/p>\n<p>When using LibMan CLI, begin commands with \u201clibman\u201d then follow with the action you wish to invoke.\nFor example, to install all files from the latest version of jquery, type:<\/p>\n<pre>&gt; libman install jquery<\/pre>\n<p>Follow the prompts to select the provider and destination. Type the values you want, or press [Enter] to accept the defaults.<\/p>\n<p>The <em>install<\/em> operation creates a <b>libman.json<\/b> file in the current directory if one does not already exist, then adds the new library configuration.  It then downloads the files and places them in the destination folder. See the example below.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/LilbManCLIExample.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/LilbManCLIExample.png\" alt=\"LibMan CLI example\" width=\"795\" height=\"522\" class=\"alignnone size-full wp-image-14905\" \/><\/a><\/p>\n<p>To learn more about the LibMan CLI, refer to the <a href=\"https:\/\/github.com\/aspnet\/LibraryManager\/wiki\/Using-LibMan-CLI\">LibMan CLI documentation<\/a> on the Library Manager Wiki.<\/p>\n<p>Happy coding!<\/p>\n<p><strong>Justin Clareburt, Senior Program Manager, Visual Studio<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Justcla-Profile.jpg\" alt=\"Justin Clareburt (justcla) Profile Pic\" width=\"203\" height=\"209\" style=\"float:left;margin-right:20px\" \/> Justin Clareburt is the Web Tools PM on the Visual Studio team. He has over 20 years of Software Engineering experience and brings to the team his expert knowledge of IDEs and a passion for creating the ultimate development experience.<br>\nFollow Justin on Twitter <a href=\"https:\/\/twitter.com\/justcla78\">@justcla78<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Command Line Interface (CLI) is now available for Microsoft Library Manager (LibMan) and can be downloaded via NuGet. Look for Microsoft.Web.LibraryManager.Cli The LibMan CLI is cross-platform, so you\u2019ll be able to use it anywhere that .NET Core is supported (Windows, Mac, Linux). Install the LibMan CLI To install LibMan, type: &gt; dotnet tool install [&hellip;]<\/p>\n","protected":false},"author":467,"featured_media":21394,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[11,30,110,117],"class_list":["post-20041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net-framework","tag-announcement","tag-portable-class-libraries","tag-releases"],"acf":[],"blog_post_summary":"<p>The Command Line Interface (CLI) is now available for Microsoft Library Manager (LibMan) and can be downloaded via NuGet. Look for Microsoft.Web.LibraryManager.Cli The LibMan CLI is cross-platform, so you\u2019ll be able to use it anywhere that .NET Core is supported (Windows, Mac, Linux). Install the LibMan CLI To install LibMan, type: &gt; dotnet tool install [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/20041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/467"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=20041"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/20041\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/21394"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=20041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=20041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=20041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}