Move audiences between orgs
Copy audiences from a sandbox to production, or keep orgs in step
The open-source sf CLI plugin sf-plugin-cab copies Campaign Audience Builder audiences between Salesforce orgs, for example from a sandbox to production at a go-live. It uses the org aliases that your sf CLI already knows, so there is no separate login.
The plugin copies the complete definition of each audience: its filters, sequence components, and folder, plus the Filter Library templates and outcome definitions it uses. It does not copy schedules, run results, or campaign members.
Commands
Section titled “Commands”sf cab audience listshows the audiences in an org.sf cab audience exportwrites selected audiences to a file.sf cab audience importshows a plan and then writes the audiences from a file into an org. Before it changes anything, it writes a backup of the target audiences that it updates.sf cab audience migrateexports from one org and imports into another in one step.
Install
Section titled “Install”sf plugins trust allowlist add --name @campaign-audience-builder/sf-plugin-cabsf plugins install @campaign-audience-builder/sf-plugin-cabThe first command adds the plugin to the sf CLI allowlist, so the installation does not ask for confirmation.
For the requirements, all options, and examples, see the sf-plugin-cab repository on GitHub.

