
Build Salesforce QCP scripts 5X faster
AI assistance for QCP development plus diff, backup, import/export, deployment, and reliable pull/push automation.
macOS • Windows • Linux
The #1 VS Code extension for Salesforce CPQ developers. Develop, sync, diff, backup, and deploy Quote Calculator Plugin (QCP) scripts and CPQ configuration — all from VS Code.
Quick Start
- Install the extension from the VS Code Marketplace
- Open a folder and run CPQ DevKit™ for Salesforce: Initialize Project
- Authenticate with your Salesforce org via OAuth
- Start coding — pull QCP files into
src/, make changes, push back!
The extension also scaffolds tsconfig.json, package.json, .env, example QCP files, and unit test templates so you can start writing and testing QCP scripts immediately.
Project Structure
Initialize Project creates and maintains the core files used by the extension:
.cpqdevkit/sfcpq/qcp-config.jsonfor project and auth metadata.cpqdevkit/sfcpq/qcp-log.jsonfor pull/push historysrc/for local QCP source filestests/templates plus QuoteModel downloads for local testingtsconfig.json,package.json,.env, and example files as needed
The extension also ships a built-in walkthrough so new workspaces can sign in, initialize, and pull their first QCP records with the same onboarding flow surfaced on the website.
What's New in 2.6.2
- Consistent command labels across the Command Palette, README, translations, and release notes
See full release notes in CHANGELOG.md.
Features
Two-Way QCP Sync
Push and pull Quote Calculator Plugin scripts between VS Code and Salesforce. Edit locally with full IDE support (IntelliSense, linting, formatting) and sync changes in one click.
- Pull QCP records — download all QCP scripts from Salesforce
- Pull active file — refresh the currently open file from Salesforce
- Push QCP files — upload all local changes to Salesforce
- Push active file — push just the file you're working on
- Push on save — optionally prompt to push when you save a file
Diff & Compare
Compare local files with their Salesforce counterparts to review changes before pushing, or compare two local files side by side.
Backup & Export
Create comprehensive backups of your entire CPQ configuration:
- Create CPQ Configuration Backup — full backup of QCP, Price Rules, Product Rules, and Discount Schedules
- Export QCP Records — export all QCP scripts
- Export Price Rules — export Price Rules with conditions and actions
- Export Product Rules — export Selection, Validation, and Alert rules
- Export Discount Schedules — export schedules with tiers
- Export Products — export Product2 records with CPQ fields (CSV or JSON)
Import & Deploy
Migrate CPQ configurations between orgs. Export from sandbox, import to production.
- Import Price Rules — import from exported JSON files with upsert logic (creates new, updates existing by Name)
- Import Product Rules — deploy Product Rules between orgs
- Import Discount Schedules — restore schedules from backup with tier support
- Deploy CPQ Configuration — full config deployment from backup files
- Dry-run mode — preview changes before applying
Org Inspection & Drift Review
Give consultants and support teams a faster way to understand an org before they change it:
- Inspect Org — generate a Markdown report with package/version details, CPQ settings, configuration counts, and pricing-rule complexity
- Compare Snapshots — compare two CPQ backup/export JSON files to spot missing or changed QCP records, rules, schedules, and templates
AI-Powered Code Completions
Get intelligent, context-aware code suggestions for QCP development (Pro plan):
- Completions for
onBeforeCalculate,onAfterCalculate, and other QCP callback methods - Understands
QuoteModel,QuoteLineModel, and Salesforce CPQ fields - Powered by GPT-4o or Claude 3.5 Sonnet (configurable)
- Small code window around your cursor is sent when completions are triggered
Guided Onboarding
Use the built-in walkthrough to sign in, initialize a project, and pull your first QCP records without hunting through commands manually.
Unit Testing
Test your QCP scripts locally using real QuoteModel data fetched from Salesforce — catch issues before deploying.
JSON Table View
Open any JSON file as an interactive table using the editor title bar button (powered by AG Grid).
Troubleshooting Tools
- Validate Org Credentials — verify that your current Salesforce credentials still work
- Open Project Configuration — jump to
.cpqdevkit/sfcpq/qcp-config.json - Open Sync Log — jump to
.cpqdevkit/sfcpq/qcp-log.json - Copy Diagnostics — copy environment and settings info to clipboard for debugging or support
Commands
All commands are available from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) under the CPQ DevKit™ for Salesforce category.
Settings
Configure the extension under sfdcQcp.* in VS Code Settings.
Requirements
- VS Code 1.105+
- Salesforce org with the CPQ managed package installed
- Access to Custom Script (QCP) records in your org
Security & Privacy
- OAuth authentication — no passwords stored
- Credentials are encrypted with a workspace-unique key and stored locally
.cpqdevkit/sfcpqand.envare auto-added to.gitignore- Backup/Import/Deploy and AI completions communicate with CPQ DevKit services (
sfdcQcp.apiBaseUrl) - AI completions send only a small code window around your cursor when enabled
Documentation
Support
License
See LICENSE.md for details.
Frequently Asked Questions
What is CPQ DevKit™ for Salesforce?
A VS Code extension that streamlines Salesforce CPQ Quote Calculator Plugin (QCP) development with pull/push workflows, config backup and deployment tools, AI completions, and local testing utilities.
How do I connect to my org?
Use Initialize Project to authenticate via OAuth, create the local project structure, and save the workspace configuration the extension needs.
Can I compare, back up, and deploy CPQ configuration?
Yes. The extension supports record comparison, local and full CPQ backups, product export, and import/export/deploy workflows for QCP, Price Rules, Product Rules, and Discount Schedules.
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.
