diff --git a/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs index 05b7959e..920992e8 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs @@ -5,7 +5,7 @@ namespace Meadow.CLI.Commands.DeviceManagement; -[Command("app deploy", Description = "Deploy a compiled Meadow application to a target device")] +[Command("app deploy", Description = "Deploys a previously compiled Meadow application to a target device. Note: This command does not compile the application.")] public class AppDeployCommand : BaseDeviceCommand { private readonly IPackageManager _packageManager; diff --git a/Source/v2/Meadow.Cli/Commands/Current/Device/DeviceProvisionCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Device/DeviceProvisionCommand.cs index 36b97b85..25809031 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/Device/DeviceProvisionCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/Device/DeviceProvisionCommand.cs @@ -123,7 +123,7 @@ protected override async ValueTask ExecuteCommand() { throw new CommandException("If a public key is provided, an `id` must also be provided"); } - provisioningID = SerialNumber.ToUpper(); + provisioningID = SerialNumber; provisioningName = Name ?? string.Empty; } else @@ -176,7 +176,9 @@ protected override async ValueTask ExecuteCommand() Logger?.LogInformation(Strings.ProvisioningWithCloud); - var result = await _deviceService.AddDevice(org.Id!, provisioningID!, PublicKey, CollectionId, provisioningName, Host, CancellationToken); + provisioningID = provisioningID!.ToUpper(); + + var result = await _deviceService.AddDevice(org.Id!, provisioningID, PublicKey, CollectionId, provisioningName, Host, CancellationToken); if (result.isSuccess) {