From 5e46a8318fe0920b078da1ece0d9c9992a6fafb3 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:48:35 +0100 Subject: [PATCH 1/3] Respect status code --- src/Nitro/CommandLine/src/CommandLine/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nitro/CommandLine/src/CommandLine/Program.cs b/src/Nitro/CommandLine/src/CommandLine/Program.cs index d3e5872640e..26276b3b768 100644 --- a/src/Nitro/CommandLine/src/CommandLine/Program.cs +++ b/src/Nitro/CommandLine/src/CommandLine/Program.cs @@ -12,7 +12,7 @@ namespace ChilliCream.Nitro.CommandLine; #endif public static class Program { - public static async Task Main(string[] args) + public static async Task Main(string[] args) { var builder = new CommandLineBuilder(new NitroRootCommand()) .AddNitroCloudConfiguration() @@ -21,6 +21,6 @@ public static async Task Main(string[] args) .UseExtendedConsole(); builder.Command.AddNitroCloudCommands(); - await builder.Build().InvokeAsync(args); + return await builder.Build().InvokeAsync(args); } } From 475d5a0ac56dbfcff112f19275bbc8db365e32ac Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:48:43 +0100 Subject: [PATCH 2/3] Fix client download command --- .../CommandLine/Services/Configuration/NitroCLIJsonContext.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs b/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs index ae74d7434df..fd1419c4507 100644 --- a/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs +++ b/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs @@ -8,4 +8,5 @@ namespace ChilliCream.Nitro.CommandLine.Services.Configuration; [JsonSerializable(typeof(Session))] [JsonSerializable(typeof(PersistedQueryStreamResult))] [JsonSerializable(typeof(StageConfigurationParameter[]))] +[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] internal partial class NitroCLIJsonContext : JsonSerializerContext; From 0cdb79aca89bb4592726cb54209a77914888b39a Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:54:04 +0100 Subject: [PATCH 3/3] Set PropertyNameCaseInsensitive for backwards compatibility --- .../CommandLine/Services/Configuration/NitroCLIJsonContext.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs b/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs index fd1419c4507..ace47e8c5c5 100644 --- a/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs +++ b/src/Nitro/CommandLine/src/CommandLine/Services/Configuration/NitroCLIJsonContext.cs @@ -8,5 +8,7 @@ namespace ChilliCream.Nitro.CommandLine.Services.Configuration; [JsonSerializable(typeof(Session))] [JsonSerializable(typeof(PersistedQueryStreamResult))] [JsonSerializable(typeof(StageConfigurationParameter[]))] -[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] +[JsonSourceGenerationOptions( + PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, + PropertyNameCaseInsensitive = true)] internal partial class NitroCLIJsonContext : JsonSerializerContext;