Learn how to get up and running with Wrapt.
To start, you'll need install the Foundation API Template. This is the base template that our CLI will use when creating a new Web API.
dotnet new -i Foundation.Api
On the off chance that you have another dotnet template on your machine with a
foundation
short name, you will need to uninstall that template before using acraftsman new:api
command. To get the uninstall command rundotnet new -u
and find the uninstall command listed for your foundation template.
If you have issues installing it, you may need to specify the latest Foundation version. See the nuget package page for the most up to date install command.
Install the Craftsman
tool globally. This is going to be the workhorse behind all of our commands.
dotnet tool install -g craftsman
Run any of the below for a list of available commands
craftsman
craftsman list
craftsman -h
craftsman --help
That's it! Now let's look at an example to see it in action.
To keep up to date with the latest Craftsman capabilities, first update the Foundation template.
dotnet new foundation.api --update-apply
Then you can update Craftsman:
dotnet tool update -g craftsman
👀 Docs Feedback
See something missing or light in content in the docs? Let me know! I want the Wrapt docs to be as through and helpful as possible!
If you'd like to request a new feature, you can submit a new Craftsman issue.