# data-code-extension script run

Run a data code extension script package locally by using data from your Salesforce org.

## Description

Run an initialized data code extension package against a Salesforce org. Before you run this command, initialize the package and verify that your entrypoint file is valid.

## Examples

Run a script package against the org with alias `myorg`:

```sh
sf data-code-extension script run --entrypoint ./my-script-package/payload/entrypoint.py --target-org myorg
```

Run a script package with a custom config file:

```sh
sf data-code-extension script run --entrypoint ./my-script-package/payload/entrypoint.py --target-org myorg --config-file ./my-script-package/payload/config.json
```

## Flags

- `-e, --entrypoint <ENTRYPOINT>` (Required): Entrypoint file for the package to run.
- `-o, --target-org <TARGET-ORG>` (Required): Target Salesforce org to run against.
- `--config-file <CONFIG-FILE>` (Optional): Path to a config file.
- `--dependencies <DEPENDENCIES>` (Optional): Comma-separated dependencies override.
- `--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.
