Skip to content

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

CPQ DevKit™ for Salesforce
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.

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. Sign in to your Salesforce org when prompted (OAuth)
  4. 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

  1. Run Initialize Project and complete Salesforce sign-in.
  2. Use the built-in walkthrough if you want a guided first pull.
  3. Pull QCP Records to download scripts into src/.
  4. Edit locally with IntelliSense, formatting, and optional AI completions.
  5. Diff against Salesforce, then Push Active File or Push QCP Files.
  6. 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 history
  • src/ — local QCP source files
  • tests/ — unit test templates
  • data/ — QuoteModel downloads for local testing
  • tsconfig.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.

CommandDescription
Sign InSign in to CPQ DevKit™; also sets up the API key for MCP tools, hosted commands and AI completions
Sign OutSign out of CPQ DevKit™ and remove this computer's API key from your account
Initialize ProjectCreate the project and sign in to Salesforce
Create Example QCP FilesAdd example QCP scripts
Pull QCP RecordsDownload all QCP scripts
Pull Active FileRefresh the current file
Push QCP FilesUpload all local changes
Push Active FilePush the current file
Compare RecordsDiff local vs. Salesforce QCP
Compare Active FileDiff the current file with Salesforce
View Transpiled CodeView transpiled JavaScript for the active file
Open QCP Record in SalesforceOpen the record in the browser
Create BackupLocal backup of QCP files
Download QuoteModelFetch a QuoteModel for local tests
Export ProductsExport Product2 records to CSV or JSON
View as TableOpen JSON as a table
Create CPQ Configuration BackupFull backup of QCP and rules
Export QCP RecordsExport all QCP scripts
Export Price RulesExport Price Rules
Export Product RulesExport Product Rules
Export Discount SchedulesExport Discount Schedules
List BackupsBrowse previous backups
Import Price RulesImport Price Rules from a file
Import Product RulesImport Product Rules from a file
Import Discount SchedulesImport Discount Schedules from a file
Deploy CPQ ConfigurationDeploy a full CPQ configuration
Inspect OrgGenerate an org inspection report
Compare SnapshotsCompare two backups or exports
Assess Revenue Cloud Migration ReadinessWrite a migration workbook
Set AI API KeyOptional: use a specific CPQ DevKit™ API key instead of the one from your sign-in
Toggle AI CompletionsTurn AI suggestions on or off
Clear AI API KeyRemove a key you set, and go back to the key from your sign-in
Install Chat SkillsAdd the QCP debugger skill for chat
Open Project ConfigurationOpen qcp-config.json
Open Sync LogOpen qcp-log.json
Copy DiagnosticsCopy environment info for support
Validate Org CredentialsTest that Salesforce sign-in still works
Start Pro TrialStart your free 7-day Pro trial (no card needed)
Upgrade to ProOpen the upgrade page for your CPQ DevKit™ account
Manage AccountOpen your CPQ DevKit™ account at app.cpqdevkit.com

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
sfdcQcp.maxLogEntries150Maximum sync-log entries
sfdcQcp.prettiertrueCreate a .prettierrc file during Initialize Project
sfdcQcp.export.outputFormat"csv"Export format (csv or json)
sfdcQcp.debugModefalseEnable detailed logging
sfdcQcp.enableTelemetrytrueAnonymous 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.aiCompletionsEnabledtrueEnable AI completions (requires Pro)
sfdcQcp.apiBaseUrl"https://app.cpqdevkit.com/api"CPQ DevKit API base URL
sfdcQcp.requestTimeout30000Timeout 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/sfcpq and .env are 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

Privacy Policy

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.

Built for Oracle, Salesforce, SAP, Epicor, Infor, and ServiceNow CPQ