Loading
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Media Cloud
Deploy Flexcards by Using Omnistudio Build Tool

Deploy Flexcards by Using Omnistudio Build Tool

The Omnistudio Build Tool (formerly Vlocity Build Tool or VBT) is a node.js command-line automation tool that packages and deploys Salesforce data packs in a source-control-friendly format. If Omnistudio is enabled in your Salesforce org, you can use this tool to deploy the Flexcards.

Before You Begin

REQUIRED EDITIONS
Available in: Lightning Experience
Available in: all editions
REQUIRED USER PERMISSIONS 
To access Media Cloud advanced features: MediaCloudPlus Runtime
To create, read, update, and delete Flexcards: Omnistudio Admin

These are the benefits of deploying the Flexcards by using the Omnistudio Build Tool:

  • Flexcards are activated automatically after ‌deployment.
  • To avoid any potential overrides, the Flexcards are versioned as 252 for the Winter ‘25 release.
  • The order of Flexcard attributes is maintained.
  1. Authenticate your org by entering this command in Salesforce DX CLI.
    sfdx force:auth:web:login --instanceurl https://<your_org_url>
    See Authentication Methods for the Omnistudio Build Tool.
  2. To set up the local compile, request a username and password for the private Node Package Manager (NPM) repository.
    If you have previously used OmniOut, use the same credentials.
    If you don’t have credentials, go to https://repo.vlocity.com/repository/vlocity-public/, and request an NPM repository access key from your customer representative by filing a support case for using OmniOut with the subject: Request for Access Key to Vlocity's Private NPM Repository.
  3. To add the credentials to the .npmrc file in the user’s home directory, run this command:
    npm config set @omnistudio:registry https://repo.vlocity.com/repository/vlocity-public/
  4. To log in, run this command, and enter your NPM repository credentials.
    npm login --registry=https://repo.vlocity.com/repository/vlocity-public/
  5. To install the Flexcard compiler, run this command:
    npm install @omnistudio/flexcard-compiler
    
  6. In your local system, create a folder for Omnistudio Build Tool deployment.
  7. Create a YAML file by using this script:
    Note
    Note This is a sample script. To update the card names in the manifest, use the YAML provided for IDX.
    projectPath: vlocity
    
    autoRetryErrors: true
    
    manifest:
    - FlexCard/sfiAdsDigitalGrid
    - FlexCard/sfiAdsGeneratePrintIssueButton
    -<Similarly_add_all_required_Flexcards_name>
    
    npmAuthKey: <PLACE_YOUR_NPM_AUTH_KEY_HERE>
    npmRepository: 'https://repo.vlocity.com/repository/vlocity-public/'
  8. Move the YAML file to your root folder.
  9. Download the Omnistudio-enabled Flexcards.
  10. Extract the ZIP file's contents, and move the FlexCard folder to the vlocity folder under your root folder.
  11. To deploy Flexcards, open a command line interface from your root folder path, and run this command:
    vlocity -sfdx.username <ORG_USERNAME> -job <YAML_FILE_NAME> packDeploy
 
Loading
Salesforce Help | Article