dotnet new search
Proje şablonları ile ilgili bir diğer komutumuz search yani arama komutu. Bu komut ile NuGet.org üzerinde bulunan proje şablonlarını arayıp listeleme yapabiliyoruz.
Komutumuzu --help opsiyonu ile inceleyelim.
dotnet new search --help
Aşağıdaki komutu incelediğimizde list komutu ile benzer çıktı verdiğini görüyoruz. Burada yine çeşitli opsiyonlar kullanarak filtreleme yapabiliriz.
eg@debian:~$ dotnet new search --help
Description:
Searches for the templates on NuGet.org.
Usage:
dotnet new search [<template-name>] [options]
Arguments:
<template-name> If specified, only the templates matching the name will be shown.
Options:
--author <author> Filters the templates based on the template author.
-lang, --language <language> Filters templates based on language.
--type <type> Filters templates based on available types. Predefined values are "project" and "item".
--tag <tag> Filters the templates based on the tag.
--package <package> Filters the templates based on NuGet package ID.
--columns-all Displays all columns in the output.
--columns <author|language|tags|type> Specifies the columns to display in the output.
-v, --verbosity <LEVEL> Sets the verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], and diag[nostic]. [default: normal]
-d, --diagnostics Enables diagnostic output.
-?, -h, --help Show command line help.
dotnet new search --author <author_name>
Komutu --author opsiyonu ile kullanalım. Author olarak Microsoft değerini kullanalım. Bu şekilde komutu kullandığımızda NuGet.org üzerinde bulunan Microsoft ile ilgili şablonlar aşağıdaki çıktıda görüldüğü gibi listelendi.
Yine list komutunda olduğu gibi farklı opsiyonlar kullanarak filtreleme işlemleri yapabilirsiniz.
eg@debian:~$ dotnet new search --author Microsoft
Searching for the templates...
Matches from template source: NuGet.org
These templates matched your input: --author='Microsoft'
Template Name Short Name Author Language Package Downloads
--------------------------------------------------- ------------------------- --------------------- -------- --------------------------------------------------------------- ---------
Azure Functions func Microsoft [C#],F# Microsoft.Azure.WebJobs.ProjectTemplates 10,388k
BlobTrigger blob Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
CosmosDBTrigger cosmos,CosmosDB Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
DurableFunctionsEntityOrchestration durableentity Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
DurableFunctionsOrchestration durable Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
EventGridCloudEventTrigger eventgridcloudevent Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
EventGridTrigger eventgrid Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
EventHubTrigger eventhub Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
HttpTrigger http Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
HttpTriggerWithOpenAPI httpOpenAPI Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
IotHubTrigger iothub Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
KafkaOutput kafkao Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
KafkaTrigger kafka Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
KustoInputBinding kustoinput Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
KustoOutputBinding kustooutput Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
QueueTrigger queue Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
RabbitMQTrigger rqueue Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
SendGrid sendgrid Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
ServiceBusQueueTrigger squeue Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
ServiceBusTopicTrigger stopic Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
SignalRTrigger signalr Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
SqlInputBinding sqlinput Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
SqlOutputBinding sqloutput Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
SqlTriggerBinding sqltrigger Microsoft [C#] Microsoft.Azure.WebJobs.ItemTemplates 10,304k
TimerTrigger timer Microsoft [C#],F# Microsoft.Azure.WebJobs.ItemTemplates 10,304k
BlobTrigger blob Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
CosmosDBTrigger cosmos,CosmosDB Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
DurableFunctionsOrchestration durable Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
EventGridTrigger eventgrid Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
EventHubTrigger eventhub Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
HttpTrigger http Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
KustoInputBindingIsolated kustoinput Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
KustoOutputBindingIsolated kustooutput Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
QueueTrigger queue Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
RabbitMQTrigger rqueue Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
ServiceBusQueueTrigger squeue Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
ServiceBusTopicTrigger stopic Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
SignalRTrigger signalr Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
SqlInputBindingIsolated sqlinput Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
SqlOutputBindingIsolated sqloutput Microsoft [C#] Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
TimerTrigger timer Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ItemTemplates 5,685k
Azure Functions func Microsoft [C#],F# Microsoft.Azure.Functions.Worker.ProjectTemplates 5,683k
ASP.NET Core with Aurelia aurelia Microsoft [C#] Microsoft.AspNetCore.SpaTemplates 172k
ASP.NET Core with Knockout.js knockout Microsoft [C#] Microsoft.AspNetCore.SpaTemplates 172k
ASP.NET Core with Vue.js vue Microsoft [C#] Microsoft.AspNetCore.SpaTemplates 172k
Azure IoT Edge Module aziotedgemodule Microsoft [C#] Microsoft.Azure.IoT.Edge.Module 125k
LESS Style Sheet less Microsoft Microsoft.DotNet.Web.Client.ItemTemplates 116k
SCSS Style Sheet (SASS) scss Microsoft Microsoft.DotNet.Web.Client.ItemTemplates 116k
TypeScript file tsfile Microsoft Microsoft.DotNet.Web.Client.ItemTemplates 116k
.NET MAUI App (Preview) maui Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI Blazor App (Preview) maui-blazor Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI Class Library (Preview) mauilib Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI ContentPage (C#) (Preview) maui-page-csharp Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI ContentPage (XAML) (Preview) maui-page-xaml Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI ContentView (C#) (Preview) maui-view-csharp Microsoft [C#] Microsoft.Maui.Templates 57k
.NET MAUI ContentView (XAML) (Preview) maui-view-xaml Microsoft [C#] Microsoft.Maui.Templates 57k
Android Activity template android-activity Microsoft [C#] Microsoft.Android.Templates 55k
Android Application (Preview) android Microsoft [C#] Microsoft.Android.Templates 55k
Android Class Library (Preview) androidlib Microsoft [C#] Microsoft.Android.Templates 55k
Android Java Library Binding (Preview) android-bindinglib Microsoft [C#] Microsoft.Android.Templates 55k
Android Layout template android-layout Microsoft [C#] Microsoft.Android.Templates 55k
iOS Application (Preview) ios Microsoft [C#] Microsoft.iOS.Templates 55k
iOS Class Library (Preview) ioslib Microsoft [C#] Microsoft.iOS.Templates 55k
iOS Controller template ios-controller Microsoft [C#] Microsoft.iOS.Templates 55k
MacCatalyst Application (Preview) maccatalyst Microsoft [C#] Microsoft.MacCatalyst.Templates 48k
Wasi Console App wasiconsole Microsoft [C#] Microsoft.NET.Runtime.WebAssembly.Templates 46k
WebAssembly Browser App wasmbrowser Microsoft [C#] Microsoft.NET.Runtime.WebAssembly.Templates 46k
WebAssembly Console App wasmconsole Microsoft [C#] Microsoft.NET.Runtime.WebAssembly.Templates 46k
ASP.NET Core Web API (Microsoft.Identity.Platform) webapi2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
ASP.NET Core Web App (Microsoft identity platform) webapp2,razor2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
ASP.NET Core Web App (Model-View-Controller, Mic... mvc2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
Azure Functions func2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
Blazor Server App (Microsoft identity platform) blazorserver2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
Blazor WebAssembly App blazorwasm2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
Worker Service worker2 Microsoft [C#] Microsoft.Identity.Web.ProjectTemplates 41k
Azure IoT Edge Function aziotedgefunction Microsoft [C#] Microsoft.Azure.IoT.Edge.Function 36k
macOS Application (Preview) macos Microsoft [C#] Microsoft.macOS.Templates 34k
tvOS Application (Preview) tvos Microsoft [C#] Microsoft.tvOS.Templates 28k
Bot Framework Echo Bot (v4.17.1) echobot Microsoft [C#] Microsoft.Bot.Framework.CSharp.EchoBot 24k
Bot Framework Core Bot (v4.17.1) corebot Microsoft [C#] Microsoft.Bot.Framework.CSharp.CoreBot 21k
Bot Framework Empty Bot (v4.17.1) emptybot Microsoft [C#] Microsoft.Bot.Framework.CSharp.EmptyBot 20k
Experimental Mobile Blazor Bindings App mobileblazorbindings Microsoft [C#] Microsoft.MobileBlazorBindings.Templates 18k
Experimental Mobile Blazor Bindings Hybrid App blazorhybrid Microsoft [C#] Microsoft.MobileBlazorBindings.Templates 18k
ASP.NET Core Datasync Server datasync-server Microsoft Corporation [C#] Microsoft.AspNetCore.Datasync.Template.CSharp 9k
Entity Framework Core Scaffolding Templates ef-templates Microsoft [C#] Microsoft.EntityFrameworkCore.Templates 7k
FluentUI Blazor Server App fluentuiblazorserver Microsoft [C#] Microsoft.Fast.Templates.FluentUI 5k
FluentUI Blazor WebAssembly App fluentuiblazorwasm Microsoft [C#] Microsoft.Fast.Templates.FluentUI 5k
Interactive documentation trydotnet-tutorial Microsoft [C#] Microsoft.DotNet.Try.ProjectTemplate.Tutorial 3k
Microsoft Teams App teamsapp Microsoft [C#] Microsoft.TeamsFx.VisualStudio.ProjectTemplates 2k
Empty VSIX Project vsix Microsoft [C#] Microsoft.VisualStudio.Sdk.Templates 1k
Power Automate Empty Module powerautomateemptymodule Microsoft [C#] Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.Templates 1k
Power Automate Sample Module powerautomatesamplemodule Microsoft [C#] Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.Templates 1k
SQL Server Database Project sqlproj Microsoft SQL Microsoft.Build.Sql.Templates 1k
TypeSpec ProviderHub ASP.NET project typespec-providerhub Microsoft [C#] Microsoft.TypeSpec.ProviderHub.Templates 1k
Power Platform PD Package project pp-pdpackage Microsoft [C#] Microsoft.PowerPlatform.Tooling.Templates.Dotnet <1k
Template Package templatepack Microsoft Microsoft.TemplateEngine.Authoring.Templates <1k
template.json configuration file template.json Microsoft JSON Microsoft.TemplateEngine.Authoring.Templates <1k
To use the template, run the following command to install the package:
dotnet new install [<package>...]
Example:
dotnet new install Microsoft.Azure.WebJobs.ProjectTemplates
Last updated