import_solution
Import a solution zip with dry-run planning, blocker validation, and backup. Supports update, upgrade, and holding modes, providing an undo recipe before executing.
Instructions
Import a solution zip into an ALLOWLISTED environment. dry_run=true (default) returns the plan: target org (verified with pac env who), package name/version/managed, what is installed now, whether this is a new install, an update or an upgrade, blockers and warnings (managed/unmanaged mismatch, downgrade, canvas AppVersion trap, empty DatabaseReferences), backup and the exact pac command. mode: 'update' (default; never deletes), 'upgrade' (managed only; DELETES components missing from the zip), 'holding'. Executing (dry_run=false, allow_writes=true) first exports the installed unmanaged solution as a backup and returns an undo recipe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | update | |
| dry_run | No | ||
| zip_path | Yes | ||
| environment | No | ||
| settings_file | No | ||
| force_overwrite | No | ||
| publish_changes | No |