Table of Contents

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.md for setup

1. Install the templates (from NuGet)

  • Using configured sources (recommended):

    dotnet new install Tat.Potato.Templates
    
  • Or 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 (identity Tat.Potato.MongoApplication.CSharp)
  • Command item: short name cmd (identity Tat.Potato.Command.CSharp)
  • Permissions service items: short name permissions-service (identity Tat.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 MyApplication
    
  • Add a command to an existing project:

    dotnet new cmd -n MyCommand
    
  • Add 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 update
    
  • Update to the latest:

    dotnet new install Tat.Potato.Templates
    
  • Pin a specific version:

    dotnet new install Tat.Potato.Templates::0.1.1
    
  • Uninstall:

    dotnet new uninstall Tat.Potato.Templates