---
schema_version: "1"
id: cd8e034acb0ab171823eb9601b8f9303dfa2a377ea5a64c2b65488066813d160
title: data-code-extension script deploy
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-code-ext/guides/cli-reference/data-code-extension-script-deploy.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-code-ext-cli-reference/guide/data-code-extension-script-deploy.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fdfda912513e1255bc06962712d7fb4e8e2281f0a934da71973e08f90bc743e1
products:
  - Data 360 Code Extension CLI Reference
  - Data 360 Developer Documentation
---
# data-code-extension script deploy

Deploy a data code extension script package to a Salesforce org.

## Description

Deploy an initialized and zipped Data Code Extension package to a Salesforce org. Use this command to configure CPU resources and network settings. Run this command from the package directory, for example, `cd ./my-script-package`.

## Examples

Deploy a script package to the org with alias `myorg`:

```sh
sf data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg
```

Deploy a script package with a specific CPU size:

```sh
sf data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg --cpu-size CPU_4XL
```

## Flags

- `-n, --name <NAME>` (Required): Package name.
- `--package-version <PACKAGE-VERSION>` (Required): Package version.
- `-d, --description <DESCRIPTION>` (Required): Package description.
- `--network <NETWORK>` (Optional): Network setting for Jupyter notebook packages.
- `-p, --package-dir <PACKAGE-DIR>` (Required): Directory that contains the packaged code.
- `--cpu-size <CPU-SIZE>` (Optional): CPU size for deployment. Values are `CPU_L`, `CPU_XL`, `CPU_2XL`, and `CPU_4XL`. Default is `CPU_2XL`.
- `-o, --target-org <TARGET-ORG>` (Required): Target Salesforce org.
- `--flags-dir <FLAGS-DIR>` (Optional): Global flag that provides command flag values from files in a directory instead of passing them on the command line. Name each file in the directory after a supported flag of the command, without the `-- ` prefix, and include the plain text value for that flag as its content. Omit required flags from the command line if they are satisfied through the directory.
