Install and Use Potato Templates
Install the Potato .NET templates from NuGet and scaffold new apps and items.
Prerequisites
- .NET SDK 8.0 or newer installed
- NuGet source configured for the Potato templates feed
- See
docs/get-started/configure-nuget.mdfor setup
- See
1. Install the templates (from NuGet)
Using configured sources (recommended):
dotnet new install Tat.Potato.TemplatesOr install directly from the feed URL (no prior config required):
dotnet new install Tat.Potato.Templates \ --add-source https://nuget.pkg.github.com/Triple-Arm-Technique-ApS/index.json
Templates included in this pack:
- Base application: short name
potatoapp(identityTat.Potato.MongoApplication.CSharp) - Command item: short name
cmd(identityTat.Potato.Command.CSharp) - Permissions service items: short name
permissions-service(identityTat.Potato.PermissionsService.CSharp)
2. Verify installation
dotnet new list potatoapp
dotnet new list cmd
dotnet new list permissions-service
3. Use the templates
Create a new application:
dotnet new potatoapp -n MyApplicationAdd a command to an existing project:
dotnet new cmd -n MyCommandAdd permissions service items:
dotnet new permissions-service -n MyPermissionService
Tip: Run dotnet new <shortName> --help for available options.
4. Update or uninstall
Check for updates:
dotnet new updateUpdate to the latest:
dotnet new install Tat.Potato.TemplatesPin a specific version:
dotnet new install Tat.Potato.Templates::0.1.1Uninstall:
dotnet new uninstall Tat.Potato.Templates