Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LibMan CLI Released

#1
LibMan CLI Released

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/libman-cli-released.png" width="795" height="522" title="" alt="" /></div><div><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><br />The LibMan CLI is cross-platform, so you’ll be able to use it anywhere that .NET Core is supported (Windows, Mac, Linux).</p>
<p><strong>Install the LibMan CLI</strong></p>
<p>To install LibMan, type:</p>
<pre>&gt; dotnet tool install --global Microsoft.Web.LibraryManager.Cli</pre>
<p>Once the LibMan CLI is installed, you can start using LibMan from the root of your web project (or any folder).</p>
<p><strong>Using LibMan from the Command Line</strong></p>
<p>When using LibMan CLI, begin commands with “libman” then follow with the action you wish to invoke.<br />For example, to install all files from the latest version of jquery, type:</p>
<pre>&gt; libman install jquery</pre>
<p>Follow the prompts to select the provider and destination. Type the values you want, or press [Enter] to accept the defaults.</p>
<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>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/libman-cli-released.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/libman-cli-released.png" alt="LibMan CLI example" width="795" height="522" class="alignnone size-full wp-image-14905" /></a></p>
<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>
<p>Happy coding!</p>
<p><strong>Justin Clareburt, Senior Program Manager, Visual Studio</strong></p>
<p><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/libman-cli-released.jpg" alt="Justin Clareburt (justcla) Profile Pic" width="203" height="209" /> 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.</p>
<p>Follow Justin on Twitter <a href="https://twitter.com/justcla78">@justcla78</a></p>
<p> </p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016