From 4578766228c76a6c16d9f226906caa2273e5f41e Mon Sep 17 00:00:00 2001
From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com>
Date: Sat, 5 Dec 2026 14:18:36 +0000
Subject: [PATCH] Add an upgrade guide for bringing template releases into
existing solutions
---
astro.config.mjs | 10 +-
src/content/docs/graphql/guides/upgrade.mdx | 134 ++++++++++++++++++
src/content/docs/lambda/guides/upgrade.mdx | 128 +++++++++++++++++
src/content/docs/mcp/guides/upgrade.mdx | 134 ++++++++++++++++++
.../docs/minimalapi/guides/upgrade.mdx | 134 ++++++++++++++++++
src/content/docs/webapi/guides/upgrade.mdx | 134 ++++++++++++++++++
6 files changed, 669 insertions(+), 5 deletions(-)
create mode 100644 src/content/docs/graphql/guides/upgrade.mdx
create mode 100644 src/content/docs/lambda/guides/upgrade.mdx
create mode 100644 src/content/docs/mcp/guides/upgrade.mdx
create mode 100644 src/content/docs/minimalapi/guides/upgrade.mdx
create mode 100644 src/content/docs/webapi/guides/upgrade.mdx
diff --git a/astro.config.mjs b/astro.config.mjs
index 0c6cc12..56b04bc 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -17,7 +17,7 @@ const sidebars = {
{ label: 'Start here', items: ['minimalapi/getting-started', 'minimalapi/guides/run-locally'] },
{
label: 'Guides',
- items: ['minimalapi/guides/make-it-yours', 'minimalapi/guides/add-an-endpoint', 'minimalapi/guides/test-your-changes', 'minimalapi/guides/database', 'minimalapi/guides/secure-the-api', 'minimalapi/guides/ship-the-container', 'minimalapi/guides/set-up-ci', 'minimalapi/guides/work-with-a-coding-agent'],
+ items: ['minimalapi/guides/make-it-yours', 'minimalapi/guides/add-an-endpoint', 'minimalapi/guides/test-your-changes', 'minimalapi/guides/database', 'minimalapi/guides/secure-the-api', 'minimalapi/guides/ship-the-container', 'minimalapi/guides/set-up-ci', 'minimalapi/guides/upgrade', 'minimalapi/guides/work-with-a-coding-agent'],
},
{ label: 'Reference', items: [{ autogenerate: { directory: 'minimalapi/reference' } }] },
{
@@ -29,7 +29,7 @@ const sidebars = {
{ label: 'Start here', items: ['webapi/getting-started', 'webapi/guides/run-locally'] },
{
label: 'Guides',
- items: ['webapi/guides/make-it-yours', 'webapi/guides/add-an-endpoint', 'webapi/guides/test-your-changes', 'webapi/guides/database', 'webapi/guides/secure-the-api', 'webapi/guides/ship-the-container', 'webapi/guides/set-up-ci', 'webapi/guides/work-with-a-coding-agent'],
+ items: ['webapi/guides/make-it-yours', 'webapi/guides/add-an-endpoint', 'webapi/guides/test-your-changes', 'webapi/guides/database', 'webapi/guides/secure-the-api', 'webapi/guides/ship-the-container', 'webapi/guides/set-up-ci', 'webapi/guides/upgrade', 'webapi/guides/work-with-a-coding-agent'],
},
{ label: 'Reference', items: [{ autogenerate: { directory: 'webapi/reference' } }] },
{
@@ -41,7 +41,7 @@ const sidebars = {
{ label: 'Start here', items: ['graphql/getting-started', 'graphql/guides/run-locally'] },
{
label: 'Guides',
- items: ['graphql/guides/make-it-yours', 'graphql/guides/add-a-field', 'graphql/guides/test-your-changes', 'graphql/guides/database', 'graphql/guides/secure-the-api', 'graphql/guides/ship-the-container', 'graphql/guides/set-up-ci', 'graphql/guides/work-with-a-coding-agent'],
+ items: ['graphql/guides/make-it-yours', 'graphql/guides/add-a-field', 'graphql/guides/test-your-changes', 'graphql/guides/database', 'graphql/guides/secure-the-api', 'graphql/guides/ship-the-container', 'graphql/guides/set-up-ci', 'graphql/guides/upgrade', 'graphql/guides/work-with-a-coding-agent'],
},
{ label: 'Reference', items: [{ autogenerate: { directory: 'graphql/reference' } }] },
{
@@ -53,7 +53,7 @@ const sidebars = {
{ label: 'Start here', items: ['mcp/getting-started', 'mcp/guides/run-locally', 'mcp/guides/connect-a-client'] },
{
label: 'Guides',
- items: ['mcp/guides/make-it-yours', 'mcp/guides/add-a-tool', 'mcp/guides/test-your-changes', 'mcp/guides/database', 'mcp/guides/secure-the-server', 'mcp/guides/ship-the-container', 'mcp/guides/set-up-ci', 'mcp/guides/work-with-a-coding-agent'],
+ items: ['mcp/guides/make-it-yours', 'mcp/guides/add-a-tool', 'mcp/guides/test-your-changes', 'mcp/guides/database', 'mcp/guides/secure-the-server', 'mcp/guides/ship-the-container', 'mcp/guides/set-up-ci', 'mcp/guides/upgrade', 'mcp/guides/work-with-a-coding-agent'],
},
{ label: 'Reference', items: [{ autogenerate: { directory: 'mcp/reference' } }] },
{
@@ -65,7 +65,7 @@ const sidebars = {
{ label: 'Start here', items: ['lambda/getting-started', 'lambda/guides/run-locally'] },
{
label: 'Guides',
- items: ['lambda/guides/make-it-yours', 'lambda/guides/add-a-function', 'lambda/guides/test-your-changes', 'lambda/guides/database', 'lambda/guides/secure-the-function', 'lambda/guides/deploy-to-aws', 'lambda/guides/set-up-ci', 'lambda/guides/work-with-a-coding-agent'],
+ items: ['lambda/guides/make-it-yours', 'lambda/guides/add-a-function', 'lambda/guides/test-your-changes', 'lambda/guides/database', 'lambda/guides/secure-the-function', 'lambda/guides/deploy-to-aws', 'lambda/guides/set-up-ci', 'lambda/guides/upgrade', 'lambda/guides/work-with-a-coding-agent'],
},
{ label: 'Reference', items: [{ autogenerate: { directory: 'lambda/reference' } }] },
{
diff --git a/src/content/docs/graphql/guides/upgrade.mdx b/src/content/docs/graphql/guides/upgrade.mdx
new file mode 100644
index 0000000..9688936
--- /dev/null
+++ b/src/content/docs/graphql/guides/upgrade.mdx
@@ -0,0 +1,134 @@
+---
+title: "Upgrade your solution"
+description: "Bring a new template release into a solution you already made. Generate the old and new releases, diff them, and let git merge the difference in around your own changes."
+sidebar:
+ order: 8
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components';
+
+`dotnet new` hands you a solution and never looks back. `dotnet new update` updates the template, but the solution you made last month stays exactly as it was, which is how you'd want it. Nobody wants a template rewriting their code while they sleep.
+
+Still, a new release lands on the 1st of each month, and sometimes it has something you want: a package bump, a fix, a better skill for your coding agent. This guide gets it in without a copy-and-paste marathon. Generate the release you started from and the latest one, with the same name and options, and diff the two. That diff is only what the template changed, none of yours. Then git applies it to your solution and merges it with your own changes, the way it merges a branch.
+
+## Before you start
+
+You need the .NET 10 SDK, git, and your solution committed with nothing waiting in `git status`. If the upgrade goes sideways, `git reset --hard` puts everything back.
+
+## Find your release and options
+
+Every solution made since the January 2027 release has a `.lmca.json` at the root, recording the release and options that made it:
+
+```json title=".lmca.json"
+{
+ "template": "lmca-graphql",
+ "version": "2027.01.01.412",
+ "options": {
+ "name": "WorksOnMyMachine.Movies",
+ "authorName": "Jane Citizen",
+ "authentication": {
+ "Authority": "https://login.example.com",
+ "Audience": ""
+ }
+ }
+}
+```
+
+Each option is a `dotnet new` option:
+
+| In `.lmca.json` | Option |
+| --- | --- |
+| `name` | `--name` |
+| `authorName` | `--authorName` |
+| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |
+
+
+
+## Upgrade
+
+The commands run from your solution's folder and put their work in an `upgrade` folder next to it. Swap in your own version and options from `.lmca.json`.
+
+
+
+1. Generate a copy of the release you started from:
+
+ ```bash
+ dotnet new install CleanGraphQLApi.Template::2027.01.01.412
+ dotnet new cleangraphqlapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
+ ```
+
+2. Go back to the latest release and generate a copy of that, with the same options:
+
+ ```bash
+ dotnet new update
+ dotnet new cleangraphqlapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/new --no-restore
+ ```
+
+3. Diff the two copies into a patch:
+
+ ```bash
+ (cd ../upgrade && git diff --no-index --binary old new > template.patch)
+ ```
+
+ An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
+
+4. Apply the patch:
+
+ ```bash
+ git apply --3way -p2 ../upgrade/template.patch
+ ```
+
+ `-p2` drops the `a/old/` and `b/new/` from the paths in the patch, so they line up with your solution.
+
+ Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.
+
+ Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
+
+5. Build, test and check the format, as CI would:
+
+ ```bash
+ dotnet build
+ dotnet test
+ dotnet format --verify-no-changes
+ ```
+
+6. Commit, and clear up:
+
+ ```bash
+ git commit -m "Upgrade to template release 2027.02.01.430"
+ rm -rf ../upgrade
+ ```
+
+
+
+
+
+## Take only what you want
+
+The patch is yours to edit. Skip whole folders with `--exclude`, or take only some with `--include`:
+
+```bash
+git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
+```
+
+Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the API itself, where your own changes most likely live.
+
+Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
+
+## What changed in each release
+
+Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.
+
+### 2026.12.02.374
+
+The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
diff --git a/src/content/docs/lambda/guides/upgrade.mdx b/src/content/docs/lambda/guides/upgrade.mdx
new file mode 100644
index 0000000..bef75bd
--- /dev/null
+++ b/src/content/docs/lambda/guides/upgrade.mdx
@@ -0,0 +1,128 @@
+---
+title: "Upgrade your solution"
+description: "Bring a new template release into a solution you already made. Generate the old and new releases, diff them, and let git merge the difference in around your own changes."
+sidebar:
+ order: 8
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components';
+
+`dotnet new` hands you a solution and never looks back. `dotnet new update` updates the template, but the solution you made last month stays exactly as it was, which is how you'd want it. Nobody wants a template rewriting their code while they sleep.
+
+Still, a new release lands on the 1st of each month, and sometimes it has something you want: a package bump, a fix, a better skill for your coding agent. This guide gets it in without a copy-and-paste marathon. Generate the release you started from and the latest one, with the same name and options, and diff the two. That diff is only what the template changed, none of yours. Then git applies it to your solution and merges it with your own changes, the way it merges a branch.
+
+## Before you start
+
+You need the .NET 10 SDK, git, and your solution committed with nothing waiting in `git status`. If the upgrade goes sideways, `git reset --hard` puts everything back.
+
+## Find your release and options
+
+Every solution made since the January 2027 release has a `.lmca.json` at the root, recording the release and options that made it:
+
+```json title=".lmca.json"
+{
+ "template": "lmca-lambda",
+ "version": "2027.01.01.412",
+ "options": {
+ "name": "WorksOnMyMachine.Reviews",
+ "authorName": "Jane Citizen"
+ }
+}
+```
+
+Each option is a `dotnet new` option:
+
+| In `.lmca.json` | Option |
+| --- | --- |
+| `name` | `--name` |
+| `authorName` | `--authorName` |
+
+
+
+## Upgrade
+
+The commands run from your solution's folder and put their work in an `upgrade` folder next to it. Swap in your own version and options from `.lmca.json`.
+
+
+
+1. Generate a copy of the release you started from:
+
+ ```bash
+ dotnet new install CleanLambdaFunction.Template::2027.01.01.412
+ dotnet new cleanlambdafunction --name WorksOnMyMachine.Reviews --authorName "Jane Citizen" --output ../upgrade/old --no-restore
+ ```
+
+2. Go back to the latest release and generate a copy of that, with the same options:
+
+ ```bash
+ dotnet new update
+ dotnet new cleanlambdafunction --name WorksOnMyMachine.Reviews --authorName "Jane Citizen" --output ../upgrade/new --no-restore
+ ```
+
+3. Diff the two copies into a patch:
+
+ ```bash
+ (cd ../upgrade && git diff --no-index --binary old new > template.patch)
+ ```
+
+ An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
+
+4. Apply the patch:
+
+ ```bash
+ git apply --3way -p2 ../upgrade/template.patch
+ ```
+
+ `-p2` drops the `a/old/` and `b/new/` from the paths in the patch, so they line up with your solution.
+
+ Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.
+
+ Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
+
+5. Build, test and check the format, as CI would:
+
+ ```bash
+ dotnet build
+ dotnet test
+ dotnet format --verify-no-changes
+ ```
+
+6. Commit, and clear up:
+
+ ```bash
+ git commit -m "Upgrade to template release 2027.02.01.430"
+ rm -rf ../upgrade
+ ```
+
+
+
+
+
+## Take only what you want
+
+The patch is yours to edit. Skip whole folders with `--exclude`, or take only some with `--include`:
+
+```bash
+git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
+```
+
+Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the function itself, where your own changes most likely live.
+
+Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
+
+## What changed in each release
+
+Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.
+
+### 2026.12.02.374
+
+The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
diff --git a/src/content/docs/mcp/guides/upgrade.mdx b/src/content/docs/mcp/guides/upgrade.mdx
new file mode 100644
index 0000000..dac75c5
--- /dev/null
+++ b/src/content/docs/mcp/guides/upgrade.mdx
@@ -0,0 +1,134 @@
+---
+title: "Upgrade your solution"
+description: "Bring a new template release into a solution you already made. Generate the old and new releases, diff them, and let git merge the difference in around your own changes."
+sidebar:
+ order: 9
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components';
+
+`dotnet new` hands you a solution and never looks back. `dotnet new update` updates the template, but the solution you made last month stays exactly as it was, which is how you'd want it. Nobody wants a template rewriting their code while they sleep.
+
+Still, a new release lands on the 1st of each month, and sometimes it has something you want: a package bump, a fix, a better skill for your coding agent. This guide gets it in without a copy-and-paste marathon. Generate the release you started from and the latest one, with the same name and options, and diff the two. That diff is only what the template changed, none of yours. Then git applies it to your solution and merges it with your own changes, the way it merges a branch.
+
+## Before you start
+
+You need the .NET 10 SDK, git, and your solution committed with nothing waiting in `git status`. If the upgrade goes sideways, `git reset --hard` puts everything back.
+
+## Find your release and options
+
+Every solution made since the January 2027 release has a `.lmca.json` at the root, recording the release and options that made it:
+
+```json title=".lmca.json"
+{
+ "template": "lmca-mcp",
+ "version": "2027.01.01.412",
+ "options": {
+ "name": "WorksOnMyMachine.Movies",
+ "authorName": "Jane Citizen",
+ "authentication": {
+ "Authority": "https://login.example.com",
+ "Audience": ""
+ }
+ }
+}
+```
+
+Each option is a `dotnet new` option:
+
+| In `.lmca.json` | Option |
+| --- | --- |
+| `name` | `--name` |
+| `authorName` | `--authorName` |
+| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |
+
+
+
+## Upgrade
+
+The commands run from your solution's folder and put their work in an `upgrade` folder next to it. Swap in your own version and options from `.lmca.json`.
+
+
+
+1. Generate a copy of the release you started from:
+
+ ```bash
+ dotnet new install CleanModelContextProtocol.Template::2027.01.01.412
+ dotnet new cleanmodelcontextprotocol --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
+ ```
+
+2. Go back to the latest release and generate a copy of that, with the same options:
+
+ ```bash
+ dotnet new update
+ dotnet new cleanmodelcontextprotocol --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/new --no-restore
+ ```
+
+3. Diff the two copies into a patch:
+
+ ```bash
+ (cd ../upgrade && git diff --no-index --binary old new > template.patch)
+ ```
+
+ An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
+
+4. Apply the patch:
+
+ ```bash
+ git apply --3way -p2 ../upgrade/template.patch
+ ```
+
+ `-p2` drops the `a/old/` and `b/new/` from the paths in the patch, so they line up with your solution.
+
+ Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.
+
+ Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
+
+5. Build, test and check the format, as CI would:
+
+ ```bash
+ dotnet build
+ dotnet test
+ dotnet format --verify-no-changes
+ ```
+
+6. Commit, and clear up:
+
+ ```bash
+ git commit -m "Upgrade to template release 2027.02.01.430"
+ rm -rf ../upgrade
+ ```
+
+
+
+
+
+## Take only what you want
+
+The patch is yours to edit. Skip whole folders with `--exclude`, or take only some with `--include`:
+
+```bash
+git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
+```
+
+Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the server itself, where your own changes most likely live.
+
+Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
+
+## What changed in each release
+
+Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.
+
+### 2026.12.02.374
+
+The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
diff --git a/src/content/docs/minimalapi/guides/upgrade.mdx b/src/content/docs/minimalapi/guides/upgrade.mdx
new file mode 100644
index 0000000..a83246b
--- /dev/null
+++ b/src/content/docs/minimalapi/guides/upgrade.mdx
@@ -0,0 +1,134 @@
+---
+title: "Upgrade your solution"
+description: "Bring a new template release into a solution you already made. Generate the old and new releases, diff them, and let git merge the difference in around your own changes."
+sidebar:
+ order: 8
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components';
+
+`dotnet new` hands you a solution and never looks back. `dotnet new update` updates the template, but the solution you made last month stays exactly as it was, which is how you'd want it. Nobody wants a template rewriting their code while they sleep.
+
+Still, a new release lands on the 1st of each month, and sometimes it has something you want: a package bump, a fix, a better skill for your coding agent. This guide gets it in without a copy-and-paste marathon. Generate the release you started from and the latest one, with the same name and options, and diff the two. That diff is only what the template changed, none of yours. Then git applies it to your solution and merges it with your own changes, the way it merges a branch.
+
+## Before you start
+
+You need the .NET 10 SDK, git, and your solution committed with nothing waiting in `git status`. If the upgrade goes sideways, `git reset --hard` puts everything back.
+
+## Find your release and options
+
+Every solution made since the January 2027 release has a `.lmca.json` at the root, recording the release and options that made it:
+
+```json title=".lmca.json"
+{
+ "template": "lmca-minimalapi",
+ "version": "2027.01.01.412",
+ "options": {
+ "name": "WorksOnMyMachine.Movies",
+ "authorName": "Jane Citizen",
+ "authentication": {
+ "Authority": "https://login.example.com",
+ "Audience": ""
+ }
+ }
+}
+```
+
+Each option is a `dotnet new` option:
+
+| In `.lmca.json` | Option |
+| --- | --- |
+| `name` | `--name` |
+| `authorName` | `--authorName` |
+| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |
+
+
+
+## Upgrade
+
+The commands run from your solution's folder and put their work in an `upgrade` folder next to it. Swap in your own version and options from `.lmca.json`.
+
+
+
+1. Generate a copy of the release you started from:
+
+ ```bash
+ dotnet new install CleanMinimalApi.Template::2027.01.01.412
+ dotnet new cleanminimalapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
+ ```
+
+2. Go back to the latest release and generate a copy of that, with the same options:
+
+ ```bash
+ dotnet new update
+ dotnet new cleanminimalapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/new --no-restore
+ ```
+
+3. Diff the two copies into a patch:
+
+ ```bash
+ (cd ../upgrade && git diff --no-index --binary old new > template.patch)
+ ```
+
+ An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
+
+4. Apply the patch:
+
+ ```bash
+ git apply --3way -p2 ../upgrade/template.patch
+ ```
+
+ `-p2` drops the `a/old/` and `b/new/` from the paths in the patch, so they line up with your solution.
+
+ Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.
+
+ Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
+
+5. Build, test and check the format, as CI would:
+
+ ```bash
+ dotnet build
+ dotnet test
+ dotnet format --verify-no-changes
+ ```
+
+6. Commit, and clear up:
+
+ ```bash
+ git commit -m "Upgrade to template release 2027.02.01.430"
+ rm -rf ../upgrade
+ ```
+
+
+
+
+
+## Take only what you want
+
+The patch is yours to edit. Skip whole folders with `--exclude`, or take only some with `--include`:
+
+```bash
+git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
+```
+
+Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the API itself, where your own changes most likely live.
+
+Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
+
+## What changed in each release
+
+Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.
+
+### 2026.12.02.374
+
+The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
diff --git a/src/content/docs/webapi/guides/upgrade.mdx b/src/content/docs/webapi/guides/upgrade.mdx
new file mode 100644
index 0000000..0623534
--- /dev/null
+++ b/src/content/docs/webapi/guides/upgrade.mdx
@@ -0,0 +1,134 @@
+---
+title: "Upgrade your solution"
+description: "Bring a new template release into a solution you already made. Generate the old and new releases, diff them, and let git merge the difference in around your own changes."
+sidebar:
+ order: 8
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components';
+
+`dotnet new` hands you a solution and never looks back. `dotnet new update` updates the template, but the solution you made last month stays exactly as it was, which is how you'd want it. Nobody wants a template rewriting their code while they sleep.
+
+Still, a new release lands on the 1st of each month, and sometimes it has something you want: a package bump, a fix, a better skill for your coding agent. This guide gets it in without a copy-and-paste marathon. Generate the release you started from and the latest one, with the same name and options, and diff the two. That diff is only what the template changed, none of yours. Then git applies it to your solution and merges it with your own changes, the way it merges a branch.
+
+## Before you start
+
+You need the .NET 10 SDK, git, and your solution committed with nothing waiting in `git status`. If the upgrade goes sideways, `git reset --hard` puts everything back.
+
+## Find your release and options
+
+Every solution made since the January 2027 release has a `.lmca.json` at the root, recording the release and options that made it:
+
+```json title=".lmca.json"
+{
+ "template": "lmca-webapi",
+ "version": "2027.01.01.412",
+ "options": {
+ "name": "WorksOnMyMachine.Movies",
+ "authorName": "Jane Citizen",
+ "authentication": {
+ "Authority": "https://login.example.com",
+ "Audience": ""
+ }
+ }
+}
+```
+
+Each option is a `dotnet new` option:
+
+| In `.lmca.json` | Option |
+| --- | --- |
+| `name` | `--name` |
+| `authorName` | `--authorName` |
+| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |
+
+
+
+## Upgrade
+
+The commands run from your solution's folder and put their work in an `upgrade` folder next to it. Swap in your own version and options from `.lmca.json`.
+
+
+
+1. Generate a copy of the release you started from:
+
+ ```bash
+ dotnet new install CleanWebApi.Template::2027.01.01.412
+ dotnet new cleanwebapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
+ ```
+
+2. Go back to the latest release and generate a copy of that, with the same options:
+
+ ```bash
+ dotnet new update
+ dotnet new cleanwebapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/new --no-restore
+ ```
+
+3. Diff the two copies into a patch:
+
+ ```bash
+ (cd ../upgrade && git diff --no-index --binary old new > template.patch)
+ ```
+
+ An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
+
+4. Apply the patch:
+
+ ```bash
+ git apply --3way -p2 ../upgrade/template.patch
+ ```
+
+ `-p2` drops the `a/old/` and `b/new/` from the paths in the patch, so they line up with your solution.
+
+ Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.
+
+ Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
+
+5. Build, test and check the format, as CI would:
+
+ ```bash
+ dotnet build
+ dotnet test
+ dotnet format --verify-no-changes
+ ```
+
+6. Commit, and clear up:
+
+ ```bash
+ git commit -m "Upgrade to template release 2027.02.01.430"
+ rm -rf ../upgrade
+ ```
+
+
+
+
+
+## Take only what you want
+
+The patch is yours to edit. Skip whole folders with `--exclude`, or take only some with `--include`:
+
+```bash
+git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
+```
+
+Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the API itself, where your own changes most likely live.
+
+Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
+
+## What changed in each release
+
+Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.
+
+### 2026.12.02.374
+
+The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).