azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

func init returns No templates or subcommands found matching: 'func'.

Open lilyjma opened this issue 7 months ago • 7 comments

Version

4.0.7030

Description

I have core tools version 4.0.7030, which I believe is the latest. I'm trying to run func init LocalFunctionProj --worker-runtime dotnet-isolated --docker --target-framework net8.0. The command returns

No templates or subcommands found matching: 'func'.
Did you mean one of the following templates?
   dotnet new sln
   dotnet new mvc
   dotnet new grpc
   dotnet new nunit
   dotnet new xunit

To list installed templates similar to 'func', run:
   dotnet new list func
To search for the templates on NuGet.org, run:
   dotnet new search func


For details on the exit code, refer to https://aka.ms/templating-exit-codes#103

Error creating project template

I've tried resintalling core tools, but still experiencing the same issue.

Also tried just running func init, but ran into the same error.

Running func --version returns the version, so it's strange to me why func isn't recognized.

Steps to reproduce

Create a new function project using func init and core tools version 4.0.7030

lilyjma avatar Apr 30 '25 18:04 lilyjma