

dotnet cli 5.0 新特性——dotnet tool search
source link: https://www.cnblogs.com/weihanli/p/14332998.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

dotnet cli 5.0 新特性——dotnet tool search
Intro#
.NET 5.0 SDK 的发布,给 dotnet cli 引入了一个新的特性,dotnet tool search
,主要用于搜索 Nuget 上的 dotnet tool,这个命令会搜索 tool 的名称以及一些元数据, titles, descriptions, 和 tags
Search#
Synopsis#
dotnet tool search [--detail] [--prerelease]
[--skip ] [--take ]dotnet tool search -h|--help
可以通过 dotnet tool search -h
查看支持的参数,支持的参数如下:
-
--detail
显示详细结果
-
--prerelease
是否包含预览版
-
--skip <NUMBER>
跳过前面多少条数据,用于分页
-
--take <NUMBER>
指定要返回的数据条数,用于分页查询
Examples#
来看几个简单的示例:
使用 dotnet tool search <keyword>
进行最基本的搜索,
使用 dotnet tool search <keyword> --skip <skip> --take <take>
来进行分页查询
使用 dotnet tool search <keyword> --take 1 --detail
查询详细信息
More#
这个功能从 .NET 5.0 SDK 之后才支持,它的实现方式倒是很简单,直接调用了 Nuget 的接口,通过 packageType=dotnettool
只查询 dotnet tool
用抓包工具抓个包看看,search 的时候做了什么,search 的时候会调用 nuget 的接口,接口调用情况如下:
有了这个我们即使不完全记得 dotnet tool 的名称,我们也可以通过命令进行查询,方便了很多
References#
Recommend
-
52
概述 在9 月 30 日的Vue.js 伦敦大会上, 作者尤雨溪介绍了 Vue 下一个版本将要发布的内容,以及 Vue 3.0 的开发路线,和后面版本的发展情况。虽然,Vue 3.0版本的正式版还没有发布,不过作为vue 项目快速构建工具的vue-cli 早已
-
71
README.md Angular CLI Development tools and libraries specialized for Angular This is the home of the DevKit and the Angular CLI code. You can...
-
45
Unmaintained Mirror Please go to the real repo at https://git.coolaj86.com/coolaj86/json2yaml.js json2yaml A command-line utilit...
-
48
GLab GLab open source custom Gitlab Cli tool written in Go (golang) to help work seamlessly with Gitlab from the command line.
-
18
This text is about my adventure writing a small CLI application (twice) using two languages I had little experience with. If...
-
13
ci-fairy - a CLI tool¶ ci-fairy is a commandline helper tool for some commonly performed tasks, primarily those execu...
-
16
Build server – client contracts with dotnet CLI Now days type safety is common within the web-world with TypeScript and on the horizon WebAssembly with .NET Core (Blazor etc). I have for a long time advocated for the importance of...
-
13
dotnet 5 从 IL 层面分析协变返回类型新特性在 C# 9.0 里面添加的一个新特性是支持协变返回类型,也就说子类重写了基类的抽象或虚拟方法,可以在返回值里面返回协变的类型,也就是返回值的类型可以是继承原本子类返回值类型的子类。本文将来从 IL 的层面和...
-
6
extLauncher is a dotnet tool to search and launch quickly projects in the user's preferred application. extLauncher is maintained by folks at D-EDGE. Getting Started Install extLauncher as...
-
5
Add All Project to Solution with dotnet CLI Date Published: 15 December 2022
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK