Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/content/docs/graphql/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Each option is a `dotnet new` option:
| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanGraphQLApi/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanGraphQLApi/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.
- **Authentication**: you used `--include-auth` if `src/Presentation/Authentication` exists. The authority and audience are under `Authentication` in `src/Presentation/appsettings.json`, as they were when you started.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.245`, works as the version below. NuGet shows the same version as `2026.12.2.245`.
</Aside>

## Upgrade
Expand All @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanGraphQLApi.Template::2027.01.01.412
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
```

Expand All @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

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.
Git says "Falling back to direct application" for files the template added or removed. 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:

Expand All @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -121,6 +122,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

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`.
Expand All @@ -129,6 +132,6 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

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
### 2026.12.02.245

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).
17 changes: 10 additions & 7 deletions src/content/docs/lambda/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ Each option is a `dotnet new` option:
| `authorName` | `--authorName` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanLambdaFunction/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanLambdaFunction/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.208`, works as the version below. NuGet shows the same version as `2026.12.2.208`.
</Aside>

## Upgrade
Expand All @@ -55,7 +55,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanLambdaFunction.Template::2027.01.01.412
dotnet new install CleanLambdaFunction.Template@2027.01.01.412
dotnet new cleanlambdafunction --name WorksOnMyMachine.Reviews --authorName "Jane Citizen" --output ../upgrade/old --no-restore
```

Expand All @@ -69,7 +69,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -84,7 +84,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

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.
Git says "Falling back to direct application" for files the template added or removed. 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:

Expand All @@ -98,9 +98,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -115,6 +116,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

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`.
Expand All @@ -123,6 +126,6 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

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
### 2026.12.02.208

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).
17 changes: 10 additions & 7 deletions src/content/docs/mcp/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Each option is a `dotnet new` option:
| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.
- **Authentication**: you used `--include-auth` if `src/Presentation/Authentication` exists. The authority and audience are under `Authentication` in `src/Presentation/appsettings.json`, as they were when you started.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.258`, works as the version below. NuGet shows the same version as `2026.12.2.258`.
</Aside>

## Upgrade
Expand All @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanModelContextProtocol.Template::2027.01.01.412
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
```

Expand All @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

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.
Git says "Falling back to direct application" for files the template added or removed. 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:

Expand All @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -121,6 +122,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

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`.
Expand All @@ -129,6 +132,6 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

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
### 2026.12.02.258

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).
13 changes: 8 additions & 5 deletions src/content/docs/minimalapi/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Each option is a `dotnet new` option:
| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanMinimalApi/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanMinimalApi/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.
Expand All @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanMinimalApi.Template::2027.01.01.412
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
```

Expand All @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

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.
Git says "Falling back to direct application" for files the template added or removed. 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:

Expand All @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -121,6 +122,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

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`.
Expand Down
Loading