Sync a solution project from the environment
cs_sync_solutionRe-exports a solution and updates an existing unpacked folder or .cdsproj to match the environment's current state, running pac solution sync without modifying the environment.
Instructions
Re-export the solution and update an existing unpacked solution folder or .cdsproj with the environment's current state. Read-only for the environment. Runs 'pac solution sync' with the active pac auth profile.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cs_sync_solution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| map | No | Mapping XML file for component folders | |
| async | No | Run the operation asynchronously | |
| include | No | Settings to include in the export (pac solution export --include values) | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| localize | No | Extract string resources into .resx files | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| environment | No | Environment id or URL; default: the environment of the active pac auth profile | |
| packageType | No | Unmanaged, Managed or Both (default Both) | |
| solutionFolder | No | Unpacked solution folder (Other/Solution.xml root) or .cdsproj folder; default: cwd | |
| timeoutSeconds | No | Default 3600 | |
| maxAsyncWaitTime | No | Max asynchronous wait time in minutes (default 60) |