---
schema_version: "1"
id: a94e315bbd0ca2acf2f353cf857dfb7b6fd1dd57596853391aa244965d320853
title: Omnistudio Build Tool Commands (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_build_tool_commands.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_build_tool_commands.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d848452914c94915618d6f05a70c85de365405164bd640d49871a3e9f34d3034
description: For the managed package runtime, review Build Tool commands organized and described by export and deploy, troubleshooting, and additional tasks (such as rebuilding data packs, comparing local files with an org, and listing data packs that can be exported).
products:
  - Omnistudio
release: "264"
---
# Omnistudio Build Tool Commands (Managed Package)

For the managed package runtime, review Build Tool commands organized and described by export and deploy, troubleshooting, and additional tasks (such as rebuilding data packs, comparing local files with an org, and listing data packs that can be exported).

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

## Export and Deploy Commands

 
| Command | Description |
| --- | --- |
| packExport | Export from a Salesforce org into a data pack directory. |
| packExportSingle | Export a Single data pack by ID. |
| packExportAllDefault | Export all default data packs as listed in supported types table. |
| packDeploy | Deploy all contents of a data packs directory. |

## Troubleshooting Commands

 
| Command | Description |
| --- | --- |
| packContinue | Continues a job that failed due to an error. |
| packRetry | Continues a job retrying all deploy errors or re-running all export queries. |
| validateLocalData | Check for missing global keys in data. |
| cleanOrgData | Run scripts to clean data in the org and add global keys to SObjects missing them. |
| refreshProject | Refresh the project's data to the latest format for this tool. |
| checkStaleObjects | To ensure that you see any missing reference errors before your deployment, verify that all references in your project exist in either the org or locally. |

## Additional Commands

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d42684e208">Command</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d42684e211">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">packGetDiffsAndDeploy</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Deploy only files that are modified compared to the target org.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">packGetDiffs</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Find all differences in the org compared to local files.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">packBuildFile</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Build a data packs directory into a data pack file.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">runJavaScript</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Rebuild all data packs running JavaScript on each or run a Node.js script.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">packUpdateSettings</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Refresh the data pack settings to the version included in this project. Use this
              command only if you’re on the latest major version of the managed package.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">runApex</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Runs Anonymous Apex specified in the option <samp class="parmname">-apex</samp> at the
              specified path or in the <samp class="filepath">/apex</samp> folder.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">packGetAllAvailableExports</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Get list of all data packs that can be exported.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">refreshVlocityBase</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Deploy and activate the base data packs included in the managed package.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">installVlocityInitial</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">Deploy and activate the base data packs and configuration data packs included in the
              managed package.</td>

          </tr>
          <tr class="">
            <td data-label="Command" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e208 ">installDPsfromStaticResource</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d42684e211 ">
              <p>Install data packs from Static Resource based on a Query. Add this query to the job
                file:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>StaticResourceQuery: Select Name, Body from StaticResource where Name = 'DP_TEMPLATES_AsyncQuoteToContractSample'</code></pre>
            </td>

          </tr>
        </tbody>
      </table>

- **[Additional Command Line Options (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_build_tool_additional_command_line_options.htm&release=264.0.0&type=5)**  
    For the managed package runtime, the job file additionally supports some build-based options and the options available to the data packs API.
- **[Omnistudio Build Tool Command Examples (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_build_tool_sample_commands.htm&release=264.0.0&type=5)**  
    For the managed package runtime, here are some examples of Build Tool commands.