ps/Modules/Alkami.PowerShell.SDK/Public/Install-SDKEnvironment.ps1

37 lines
1.2 KiB
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
function Install-SDKEnvironment {
<#
.SYNOPSIS
Install a working environment on this local machine
.DESCRIPTION
The SDK has a basic install without features that results in a lean environment for custom development. Use the -WithFeatures flag when you want to install the full SDK with Sales Demo features.
.EXAMPLE
Install-SDKEnvironment -WithFeatures $true
.NOTES
General notes
#>
[CmdletBinding()]
param(
[bool] $WithFeatures
)
process {
Write-Warning "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Write-Warning "!! THIS FEATURE WILL BE DEPRECATED. PLEASE USE Install-SDKRelease !!"
Write-Warning "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Set-AlkamiConfiguration -Configuration StartServicesOnInstall -Off
# TODO: When we move to using Experimental, change the chocoInstall of Alkami.MachineSetup.SDK to "please install with the new command thxbai"
if($WithFeatures){
& choco upgrade alkami.machinesetup.sdk.features -y;
} else {
& choco upgrade alkami.machinesetup.sdk -y;
}
}
}
Set-Alias -Name Update-SDKEnvironment -Value Install-SDKEnvironment