Deploy a Custom Script to Data 360 Sandbox by Using CLI
The deployment process packages your Python script, its dependencies, and Data 360 configuration, and then uploads them to Data 360.
DMO-DMO Transform Limitation: If your script performs DMO-DMO transforms (transforms that read from and write to data model objects), sf data-code-extension script deploy doesn’t work as intended. Use the UI deployment instead. See Deploy a Custom Script to Data 360 Sandbox by Using UI.
| Edition Table |
|---|
| Available in: Developer, Enterprise, Performance, and Unlimited Editions. See Data 360 edition availability. |
| User Permissions Needed | |
|---|---|
| To deploy a custom script and invoke code extension by creating a batch data transform: | Permission set:
|
- Write your custom script and validate it locally against a sandbox. See Write and Validate Custom Scripts.
-
Open a terminal, and go to the root of your code extension script package (the folder that contains
payload/). -
Make sure that you’re logged in to your sandbox.
-
Deploy your code extension script.
-
--name <deployment_name>(required): Name for your code extension deployment and batch data transform. -
--package-version <package_version>(required): Semantic version for the package (for example1.0.0). -
--description "<description>"(required): Short description of the deployment. -
--package-dir ./payload(required): Directory that contains your packaged script (typically./payloadunder the package root). -
--target-org <org_alias>(required): Org username or alias. -
--cpu-size(optional): CPU size for the deployment. Available options areCPU_L,CPU_XL,CPU_2XL, andCPU_4XL. The default is CPU_XL. Larger sizes provide more vCPUs and memory but consume more credits. -
--network(optional): Network setting for packages that include Jupyter notebooks (for examplehostfor host network mode).Example:
- Confirm that the code deployment is successful. See Deployment Details.