Skip to content

Instantly share code, notes, and snippets.

@toddboyd
Created June 15, 2021 21:14
Show Gist options
  • Save toddboyd/7ffb7edad1670a6a8d16b63fabae58e1 to your computer and use it in GitHub Desktop.
Save toddboyd/7ffb7edad1670a6a8d16b63fabae58e1 to your computer and use it in GitHub Desktop.
Install Unlocked Package PowerShell Script
# Install package
Write-Host -ForegroundColor green "Installing package..."
& sfdx force:package:install -p [package id] -u $orgName -s AllUsers -r -w 10 -k [package password]
if ($LASTEXITCODE -ne 0) {
exit 1
}
Write-Host ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment