Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
# This is a Powershell script which gets `projectId` from `appsettings.json` and is responsible for generating strongly typed models from Kontent CMS.
# Generated models are stored in the `Models` directory.
# Models are generated by Kontent Generator tool.
dotnet tool restore
$OUTPUT_PATH = Join-Path $PSScriptRoot ".\Models\ContentTypes"
$appSettings = Get-Content '.\appsettings.json' | Out-String | ConvertFrom-Json
dotnet tool run KontentModelGenerator -p $appSettings."DeliveryOptions"."ProjectId" -o $OUTPUT_PATH -n "StatiqTutorial"