---
schema_version: "1"
id: a253f7cca87e509397a47490b4421c2877b4b43a5f9a499fa37658a585960c52
title: Use Your Salesforce DX CLI to Deploy Omniscripts or Flexcards (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_local_compile_sfdx.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_build_tool_local_compile_sfdx.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 24df301c82b6266c91308ea939b58ea43965b1631bfedf0b27c0d6d9a41d87a0
description: For the managed package runtime, you can use your own Salesforce DX CLI to deploy Omniscripts or Flexcards that are compiled locally.
products:
  - Omnistudio
release: "264"
---
# Use Your Salesforce DX CLI to Deploy Omniscripts or Flexcards (Managed Package)

For the managed package runtime, you can use your own Salesforce DX CLI to deploy Omniscripts or Flexcards that are compiled locally.

![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).

1. To use your own Salesforce DX CLI, set `useSfdxCli` to `true` in your job file like this:
    
    ```
    useSfdxCli: true
    ```
    
    The output looks like this:
    
    ![Output where useSfdxCli is true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_build_usesfdxcli_true.png)
    
    When `useSfdxCli` is false or is omitted, the output looks like this:
    
    ![Output where useSfdxCli is false or omitted](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_build_usesfdxcli_false.png)
2. To keep the Omniscript activated after deployment and activation, if LWC deployment fails, add this parameter:
    
    ```
    keepOSActiveWhenLWCDeploymentFails: true
    ```
    
    This configuration affects only the local compilation of Omniscripts and Flexcards.