pack_solution
Pack an unpacked solution folder into a solution zip locally via Power Platform CLI. Use dry-run to preview the plan, command, and warnings before executing with write permissions.
Instructions
Pack an unpacked solution folder into a solution zip (pac solution pack). Local only: nothing is sent to an environment. dry_run=true (default) returns the plan and command plus warnings (canvas data sources Studio would prune, empty DatabaseReferences). Default zip goes under /packs/. Executing needs allow_writes=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"folder": "<folder>"
},
"name": "pack_solution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| dry_run | No | ||
| zip_path | No | ||
| overwrite | No | ||
| package_type | No | Unmanaged |