Skip to content
CPQ DevKit™ for Salesforce
Salesforce CPQ

Build Salesforce QCP scripts 5X faster

AI assistance for Quote Calculator Plugin development, script validation, diff workflows, 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.

CPQ DevKit Commands

Quick Start

  1. Install the extension from the VS Code Marketplace
  2. Open a folder and run CPQ DevKit™ for Salesforce: Initialize Project
  3. Authenticate with your Salesforce org via OAuth
  4. 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.

What's New in 2.6.2

  • Consistent command labels across the Command Palette, README, translations, and release notes

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

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

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

  • 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.

CommandDescription
Sign InAuthenticate with CPQ DevKit services
Sign OutSign out of CPQ DevKit services
Initialize ProjectSet up project structure and authenticate with Salesforce
Create Example QCP FilesScaffold example QCP scripts in your project
Pull QCP RecordsDownload all QCP scripts from Salesforce
Pull Active FileRefresh the current file from Salesforce
Push QCP FilesUpload all local changes to Salesforce
Push Active FilePush the current file to Salesforce
Compare RecordsDiff local vs. remote QCP scripts
Compare Active FileDiff the current file with its Salesforce record
View Transpiled CodeView the transpiled JavaScript for the active file
Open QCP Record in SalesforceOpen the record in your browser
Create BackupCreate a local backup of QCP files
Download QuoteModelFetch a QuoteModel from Salesforce for local testing
Export ProductsExport Product2 records to CSV or JSON
View as TableDisplay a JSON file in an interactive table
Create CPQ Configuration BackupFull backup of QCP, Price Rules, Product Rules
Export QCP RecordsExport all QCP scripts
Export Price RulesExport Price Rules with conditions/actions
Export Product RulesExport Product Rules
Export Discount SchedulesExport Discount Schedules with tiers
List BackupsBrowse previous backups
Import Price RulesImport Price Rules from an exported file
Import Product RulesImport Product Rules from an exported file
Import Discount SchedulesImport Discount Schedules from an exported file
Deploy CPQ ConfigurationDeploy a full CPQ configuration to Salesforce
Set AI API KeyConfigure your API key for AI completions
Toggle AI CompletionsEnable or disable AI code suggestions
Clear AI API KeyRemove your stored API key
Open Project ConfigurationOpen qcp-config.json
Open Sync LogOpen qcp-log.json
Copy DiagnosticsCopy environment info to clipboard
Validate Org CredentialsTest that your Salesforce credentials are valid

Settings

Configure the extension under sfdcQcp.* in VS Code Settings.

SettingDefaultDescription
sfdcQcp.pushOnSavefalsePrompt to push the file to Salesforce on save
sfdcQcp.saveLogtrueSave a log entry for each push/pull operation
sfdcQcp.maxLogEntries150Maximum number of entries in the sync log
sfdcQcp.prettiertrueCreate a .prettierrc file on project initialization
sfdcQcp.prettierConfig(see below)Prettier configuration object
sfdcQcp.export.outputFormat"csv"Export format for data exports (csv or json)
sfdcQcp.debugModefalseEnable detailed debug logging
sfdcQcp.enableTelemetryfalseEnable anonymous product telemetry (never includes file contents or CPQ data)
sfdcQcp.aiCompletionsEnabledtrueEnable AI-powered code completions (requires Pro plan)
sfdcQcp.aiModel"gpt-4o"AI model for completions (gpt-4o or claude-3-5-sonnet)
sfdcQcp.apiBaseUrl"https://app.cpqdevkit.com/api"Base URL for the CPQ DevKit API
sfdcQcp.requestTimeout30000Timeout in ms for Salesforce API requests (5 000–120 000)

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/sfcpq and .env are 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

Privacy Policy

Documentation

Support

License

See LICENSE.md for details.

Salesforce, Salesforce CPQ, and related marks are trademarks of Salesforce, Inc. CPQ DevKit™ is not endorsed by or affiliated with Salesforce.

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, examples, and testing utilities.

How do I connect to my org?

Use the Initialize Project command to authenticate via OAuth and set up your workspace.

Can I compare or back up my QCP files?

Yes. You can back up local/remote files and compare local files with records from Salesforce.

Which operating systems are supported?

macOS, Windows, and Linux.