Add the local artifacts to the NuGet.config:
<add key="LocalMauiTemplates" value="./artifacts" />
dotnet pack Microsoft.Maui.sln
dotnet new -i artifacts\Microsoft.Maui.Templates.*.nupkg
# then just in the maui folder, so you get a NuGet.config
mkdir foo
cd foo
dotnet new maui