CPQ DevKit™ for Salesforce
Build Salesforce QCP scripts in VS Code
AI assistance for QCP development plus diff, backup, import/export, deployment, and reliable pull/push automation.
ChangelogmacOS • Windows • Linux
On this page
CPQ DevKit™ for Salesforce helps you develop, sync, diff, backup, and deploy Quote Calculator Plugin (QCP) scripts and configuration for Salesforce CPQ.

Quick Start
- Install the extension from the VS Code Marketplace
- Open a folder and run CPQ DevKit™ for Salesforce: Initialize Project
- Sign in to your Salesforce org when prompted (OAuth)
- Pull QCP records into
src/, edit them, then push your changes back
Initialize Project also creates the local project files you need: tsconfig.json, package.json, .env, example QCP files, and unit-test templates.
What's New in 2.8.0
- Sign in once after updating. Sign-in is safer, and the MCP server, hosted commands and AI completions work as soon as you are signed in, with no API key to paste
- Safer org connection: your Salesforce tokens no longer appear in the link your browser opens to return to VS Code
- View as Table for JSON arrays, JSON Lines files and CPQ DevKit™ exports
- Pull, push, backup, diff and exports show progress until the work is complete
- Requires VS Code 1.109 or later
See full release notes in the changelog.
How to use it
- Run Initialize Project and complete Salesforce sign-in.
- Use the built-in walkthrough if you want a guided first pull.
- Pull QCP Records to download scripts into
src/. - Edit locally with IntelliSense, formatting, and optional AI completions.
- Diff against Salesforce, then Push Active File or Push QCP Files.
- Use backup, export, import, and deploy when you need to move configuration between orgs.
Turn on sfdcQcp.pushOnSave if you want a push prompt every time you save.
Project structure
Initialize Project creates and maintains:
.cpqdevkit/sfcpq/qcp-config.json— project and org connection.cpqdevkit/sfcpq/qcp-log.json— pull/push historysrc/— local QCP source filestests/— unit test templatesdata/— QuoteModel downloads for local testingtsconfig.json,package.json,.env, and example files as needed
Keep .cpqdevkit/sfcpq and .env out of git. The extension adds them to .gitignore for you.
Features
Two-way QCP sync
Edit QCP locally, then sync with Salesforce in one command.
- Pull QCP Records — download all QCP scripts
- Pull Active File — refresh the open file
- Push QCP Files — upload all local changes
- Push Active File — push only the file you are editing
- Push on save — optional prompt when you save
Diff and compare
Compare a local file with Salesforce, or compare two local files, before you push.
Backup and export
Needs a CPQ DevKit™ account. Create CPQ Configuration Backup, the Export/Import commands, Deploy CPQ Configuration, Inspect Org and Assess Revenue Cloud Migration Readiness run on the hosted CPQ DevKit™ service. Run Sign In (CPQ DevKit™) first: signing in sets up the CPQ DevKit™ API key these commands use, so there is no key to copy or paste. If you prefer to use a specific key, store it with Set AI API Key. When you run one of these commands, the extension sends your Salesforce instance URL and access token to the CPQ DevKit™ service, which calls the Salesforce API on your behalf. Without a key (not signed in and no key set) the command stops before anything is sent. The local Create Backup, List Backups, Compare Snapshots and Export Products commands do not need a key.
- Create CPQ Configuration Backup — QCP, Price Rules, Product Rules, and Discount Schedules
- Export QCP Records, Export Price Rules, Export Product Rules, Export Discount Schedules
- Export Products — Product2 records with CPQ fields (CSV or JSON)
Import and deploy
Move configuration from sandbox to production.
- Import Price Rules, Product Rules, and Discount Schedules from exported JSON
- Deploy CPQ Configuration from a backup
- Dry-run mode to preview changes first
Org inspection
- Inspect Org — Markdown report with package versions, CPQ settings, counts, and pricing-rule complexity
- Compare Snapshots — compare two backup/export files for drift
- Assess Revenue Cloud Migration Readiness — inventory legacy CPQ assets
AI completions
Suggestions for onBeforeCalculate, onAfterCalculate, and other QCP callbacks, with QuoteModel / QuoteLineModel context. Only a small window around your cursor is sent. Sign in to CPQ DevKit™ and completions work without an API key to paste.
MCP tools for AI agents
On desktop VS Code, the CPQ DevKit™ for Salesforce MCP server is available to agent mode and other MCP clients in the editor, using the org from your project. Signing in to CPQ DevKit™ sets up an API key for this computer (listed in your account as "VS Code MCP for Salesforce (computer name)") and passes it to the MCP server, so tool calls work without any setup. The key is reused the next time you open VS Code, replaced automatically if it stops working, and removed from your account when you sign out.
Unit testing
Test QCP locally with QuoteModel data downloaded from Salesforce.
Other tools
- Open any JSON file as a table from the editor title bar
- Validate Org Credentials, Open Project Configuration, Open Sync Log, and Copy Diagnostics when something looks off
Pro and the free trial
Sync, diff, unit testing and the other local tools are free. Pro adds AI completions; a hosted command that needs Pro says so when you run it.
- Try Pro free for 7 days. No card needed, and the trial starts only when you choose: run Start Pro Trial, or pick Start trial when a Pro feature asks for it. One trial per person.
- 1,000 AI suggestions are included in the trial.
- See where you stand. While you are signed in, the status bar shows your plan or the days left in your trial. Click it to see the AI suggestions you have used, upgrade, or manage your account.
- When the trial ends, free features keep working. Upgrade to Pro opens the upgrade page on your CPQ DevKit™ account.
Commands
All commands are in the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) under CPQ DevKit™ for Salesforce.
| Command | Description |
|---|---|
| Sign In | Sign in to CPQ DevKit™; also sets up the API key for MCP tools, hosted commands and AI completions |
| Sign Out | Sign out of CPQ DevKit™ and remove this computer's API key from your account |
| Initialize Project | Create the project and sign in to Salesforce |
| Create Example QCP Files | Add example QCP scripts |
| Pull QCP Records | Download all QCP scripts |
| Pull Active File | Refresh the current file |
| Push QCP Files | Upload all local changes |
| Push Active File | Push the current file |
| Compare Records | Diff local vs. Salesforce QCP |
| Compare Active File | Diff the current file with Salesforce |
| View Transpiled Code | View transpiled JavaScript for the active file |
| Open QCP Record in Salesforce | Open the record in the browser |
| Create Backup | Local backup of QCP files |
| Download QuoteModel | Fetch a QuoteModel for local tests |
| Export Products | Export Product2 records to CSV or JSON |
| View as Table | Open JSON as a table |
| Create CPQ Configuration Backup | Full backup of QCP and rules |
| Export QCP Records | Export all QCP scripts |
| Export Price Rules | Export Price Rules |
| Export Product Rules | Export Product Rules |
| Export Discount Schedules | Export Discount Schedules |
| List Backups | Browse previous backups |
| Import Price Rules | Import Price Rules from a file |
| Import Product Rules | Import Product Rules from a file |
| Import Discount Schedules | Import Discount Schedules from a file |
| Deploy CPQ Configuration | Deploy a full CPQ configuration |
| Inspect Org | Generate an org inspection report |
| Compare Snapshots | Compare two backups or exports |
| Assess Revenue Cloud Migration Readiness | Write a migration workbook |
| Set AI API Key | Optional: use a specific CPQ DevKit™ API key instead of the one from your sign-in |
| Toggle AI Completions | Turn AI suggestions on or off |
| Clear AI API Key | Remove a key you set, and go back to the key from your sign-in |
| Install Chat Skills | Add the QCP debugger skill for chat |
| Open Project Configuration | Open qcp-config.json |
| Open Sync Log | Open qcp-log.json |
| Copy Diagnostics | Copy environment info for support |
| Validate Org Credentials | Test that Salesforce sign-in still works |
| Start Pro Trial | Start your free 7-day Pro trial (no card needed) |
| Upgrade to Pro | Open the upgrade page for your CPQ DevKit™ account |
| Manage Account | Open your CPQ DevKit™ account at app.cpqdevkit.com |
Settings
Configure the extension under sfdcQcp.* in VS Code Settings.
| Setting | Default | Description |
|---|---|---|
sfdcQcp.pushOnSave | false | Prompt to push the file to Salesforce on save |
sfdcQcp.saveLog | true | Save a log entry for each push/pull |
sfdcQcp.maxLogEntries | 150 | Maximum sync-log entries |
sfdcQcp.prettier | true | Create a .prettierrc file during Initialize Project |
sfdcQcp.export.outputFormat | "csv" | Export format (csv or json) |
sfdcQcp.debugMode | false | Enable detailed logging |
sfdcQcp.enableTelemetry | true | Anonymous product telemetry (command names, success/failure, duration, version). Never includes file contents or CPQ data. Also off whenever VS Code's telemetry.telemetryLevel is off. |
sfdcQcp.aiCompletionsEnabled | true | Enable AI completions (requires Pro) |
sfdcQcp.apiBaseUrl | "https://app.cpqdevkit.com/api" | CPQ DevKit API base URL |
sfdcQcp.requestTimeout | 30000 | Timeout in ms for Salesforce requests |
sfdcQcp.export.products.outputFormat | (not set) | Product2 export format; when not set, sfdcQcp.export.outputFormat is used |
sfdcQcp.export.products.fields | (built-in field list) | Product2 and CPQ fields included in product export |
Requirements
- VS Code 1.109 or later
- A Salesforce org with the CPQ managed package installed
- Access to Custom Script (QCP) records in that org
Security & Privacy
- Salesforce sign-in uses OAuth. Passwords are not stored.
- Org credentials are stored encrypted in your workspace.
.cpqdevkit/sfcpqand.envare added to.gitignore- Pull, push, diff, local backup and Export Products talk to Salesforce directly from VS Code.
- Create CPQ Configuration Backup, Export/Import, Deploy, Inspect Org and the migration assessment run on the hosted CPQ DevKit™ service. They need a CPQ DevKit™ API key (set up when you sign in, or set by hand) and send your Salesforce instance URL and access token to that service for the duration of the request.
- CPQ DevKit™ sign-in happens in your browser with a one-time code that only this VS Code window can redeem. The session and the API key are kept in VS Code secret storage. When the session expires, VS Code asks you to sign in again; signing out removes the key from your account.
- AI completions send only a small code window around your cursor to CPQ DevKit™, which runs the model on Cloudflare Workers AI. The code is not stored
Documentation
Support
License
See LICENSE.md for details.
Frequently Asked Questions
What is CPQ DevKit™ for Salesforce?
A VS Code extension for Salesforce CPQ QCP work: pull/push, backups, import/export, deploy, AI completions, and local testing.
How do I connect to my org?
Run Initialize Project and complete OAuth. The extension saves the workspace configuration it needs.
Can I compare, back up, and deploy CPQ configuration?
Yes. You can diff records, create local and full CPQ backups, and export products. Import and Deploy CPQ Configuration cover Price Rules, Product Rules, and Discount Schedules; QCP scripts are deployed with Push QCP Files / Push Active File. Full backups, export, import, deploy and Inspect Org need a CPQ DevKit™ account: sign in and the API key is set up for you (see Backup and export).
Which operating systems are supported?
macOS, Windows, and Linux.
Salesforce, Salesforce CPQ, and related marks are trademarks of Salesforce, Inc. CPQ DevKit™ is not endorsed by or affiliated with Salesforce.