Set the solution version in Solution.xml
cs_set_solution_versionUpdate the version in a local unpacked Solution.xml file. Specify build and revision numbers directly or use a strategy like Git tags, file tracking, or solution-based versioning.
Instructions
Update the version in a local unpacked solution's Solution.xml, explicitly or by strategy (gittags, filetracking, solution). Local file change only. Runs 'pac solution version' with the active pac auth profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| 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. | |
| filename | No | Tracker CSV for the filetracking strategy | |
| strategy | No | Version strategy (see pac solution version help) | |
| 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. | |
| buildVersion | No | Build version | |
| solutionPath | No | Unpacked solution folder or Solution.xml | |
| timeoutSeconds | No | Default 600 | |
| revisionVersion | No | Revision version |