#!/usr/bin/env bash # FlexCard CLI Commands # Replace with your org alias and with the FlexCard API name. # Query active FlexCards in the org sf data query -q "SELECT Id,Name,DataSourceConfig,PropertySetConfig,IsActive FROM OmniUiCard WHERE IsActive=true LIMIT 200" -o # Retrieve a specific FlexCard by name sf project retrieve start -m OmniUiCard: -o # Deploy a FlexCard to the target org sf project deploy start -m OmniUiCard: -o # Retrieve all FlexCards sf project retrieve start -m OmniUiCard -o # Deploy all OmniStudio metadata (FlexCards + dependencies) sf project deploy start -m OmniUiCard -m OmniIntegrationProcedure -m OmniScript -o # Check deploy status (use job ID from deploy output) sf project deploy report --job-id -o # In namespaced orgs (managed package), prefix the metadata type: # sf project deploy start -m omnistudio__OmniUiCard: -o