diff --git a/Source/v2/Meadow.CLI/Meadow.CLI.csproj b/Source/v2/Meadow.CLI/Meadow.CLI.csproj
index e1b23441..a4cff560 100644
--- a/Source/v2/Meadow.CLI/Meadow.CLI.csproj
+++ b/Source/v2/Meadow.CLI/Meadow.CLI.csproj
@@ -10,7 +10,7 @@
Wilderness Labs, Inc
Wilderness Labs, Inc
true
- 2.0.2
+ 2.0.3
AnyCPU
http://developer.wildernesslabs.co/Meadow/Meadow.CLI/
https://github.com/WildernessLabs/Meadow.CLI
diff --git a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDownloadCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDownloadCommand.cs
index 9309dc16..206dc0aa 100644
--- a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDownloadCommand.cs
+++ b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDownloadCommand.cs
@@ -1,10 +1,7 @@
using CliFx.Attributes;
using Meadow.Cloud.Client;
-using Meadow.Cloud.Client.Identity;
using Meadow.Software;
using Microsoft.Extensions.Logging;
-using System.Diagnostics;
-using System.Net.Http.Headers;
namespace Meadow.CLI.Commands.DeviceManagement;
@@ -15,7 +12,7 @@ public class FirmwareDownloadCommand : BaseFileCommand
public FirmwareDownloadCommand(
FileManager fileManager,
- IMeadowCloudClient meadowCloudClient,
+ IMeadowCloudClient meadowCloudClient,
ISettingsManager settingsManager,
ILoggerFactory loggerFactory)
: base(fileManager, settingsManager, loggerFactory)
@@ -77,9 +74,14 @@ protected override async ValueTask ExecuteCommand()
return;
}
- if (collection[Version] != null)
+ if (collection[Version] != null && Force == false)
{
Logger?.LogInformation($"Firmware package '{Version}' already exists locally");
+
+ if (explicitVersion == false)
+ {
+ await collection.SetDefaultPackage(Version);
+ }
return;
}
diff --git a/Source/v2/Meadow.Cli/Commands/Legacy/DownloadOsCommand.cs b/Source/v2/Meadow.Cli/Commands/Legacy/DownloadOsCommand.cs
index f947b2a7..ffd34bc8 100644
--- a/Source/v2/Meadow.Cli/Commands/Legacy/DownloadOsCommand.cs
+++ b/Source/v2/Meadow.Cli/Commands/Legacy/DownloadOsCommand.cs
@@ -1,6 +1,5 @@
using CliFx.Attributes;
using Meadow.Cloud.Client;
-using Meadow.Cloud.Client.Identity;
using Meadow.Software;
using Microsoft.Extensions.Logging;
diff --git a/Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs b/Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs
index 5ff1b096..2a5d4923 100644
--- a/Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs
+++ b/Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs
@@ -6,6 +6,6 @@ namespace Meadow.CLI
{
public static class Constants
{
- public const string CLI_VERSION = "2.0.2.0";
+ public const string CLI_VERSION = "2.0.3.0";
}
}
\ No newline at end of file