# 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.
