You have built a .net core based AWS lambda package and now you wish to publish it.
Googling the internet you find that this can be done by running the following script:
dotnet lambda package -o ..\lambda-1.zip
It throws the error: “dotnet : No executeable found matching command “dotnet-lambda”
You Lambda project requires some special tools that provide the lambda packager.
Edit your lambda text file and ensure that the following block exists as an item group
<dotnetclitoolreference include="Amazon.Lambda.Tools" version="2.2.0">
Restore the packages, (dotnet restore), and retry the “package” command and the lambda should now build and be packed into your lambda-1.zip file.