Skip to content
Clean Lambda Function
Lean Mean Clean Apps

Five templates, one brand, one search box. Everything in the docs is in here, including the bits we hoped you'd skim.

Try one of these

Results say which template they came from, so you won't end up reading about Lambda when you wanted GraphQL. Again.

Upgrade your solution

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.

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.

Every solution made since the January 2027 release has a .lmca.json at the root, recording the release and options that made it:

.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

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:

    Terminal window
    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:

    Terminal window
    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:

    Terminal window
    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.

  4. Apply the patch:

    Terminal window
    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 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:

    Terminal window
    dotnet build
    dotnet test
    dotnet format --verify-no-changes
  6. Commit, and clear up:

    Terminal window
    git commit -m "Upgrade to template release 2027.02.01.430"

    Then delete the upgrade folder. It’s done its job.

The patch is yours to edit. Skip whole folders with --exclude, or take only some with --include:

Terminal window
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.

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.

The release we launched with. Solutions made from it don’t have a .lmca.json; see Find your release and options.