A browser-based tool for bulk-updating the apiVersion field across Salesforce metadata components. No CLI, no local tooling, no server-side data storage.
Live at: https://alphacloudsf.github.io/Salesforce-API-Version-Updater
Salesforce metadata components (Apex classes, triggers, LWC, Aura, Flows, Visualforce pages and components) each carry an apiVersion field in their XML. Keeping that field current ensures access to the latest platform features and avoids issues with deprecated API behavior.
- Connect to your org via OAuth
- List all unmanaged components of the types you select
- See each component's current API version and whether it is current, outdated, or deprecated
- Retrieve the selected components as a metadata zip
- Patch only the
<apiVersion>tag in each file, no other changes - Deploy the modified zip back to your org with
rollbackOnError: true - Download a
package.xmlmanifest and use the SF CLI and git commands to sync the changes back to your local repo
All metadata processing happens in the browser. The proxy server (Cloudflare Worker) forwards API calls but never stores, parses, or logs metadata content.
- Apex Classes
- Apex Triggers
- Lightning Web Components
- Flows
- Aura Components
- Visualforce Pages
- Visualforce Components
Only unmanaged components are shown. Managed package components are excluded.
After a successful deploy, the tool generates the commands needed to pull the updated metadata into your local SFDX project without overwriting your source files.
- Download
package.xml: a manifest scoped to exactly the components that were updated. Place it atmanifest/sf-api-updated-package.xmlin your repo root. - Retrieve:
sf project retrieve start --manifest manifest/sf-api-updated-package.xml - Stage metadata files: stage only the
-meta.xmlfiles that changed, leaving companion source files (.cls,.trigger, etc.) untouched for you to handle manually.
Browser (GitHub Pages)
- UI, metadata processing, deploy polling
sf-oauth-broker (generic Cloudflare Worker)
- holds the ECA client secret
- handles OAuth login, token refresh, logout
sf-api-version-updater (project Cloudflare Worker)
- adds CORS headers to Salesforce API responses
- proxies Tooling API and Metadata SOAP calls
Salesforce Org
- Tooling API (component listing)
- Metadata API SOAP (retrieve and deploy)
OAuth and API proxying are split into two separate workers. The API proxy has no knowledge of secrets or auth, it only forwards Salesforce API calls from the browser.
Full architecture details: docs/ARCHITECTURE.md