---
schema_version: "1"
id: 7f5b53fa03ed96888760e3858634ec3565f6e7c75686f4a0ed1635acbce18e28
title: data-code-extension script run
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-run.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-code-ext-cli-reference/guide/data-code-extension-script-run.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: aa505bbce75db35dce2749873a5cd462be77155a4a694436a62b3fd7800a3108
products:
  - Data 360 Code Extension CLI Reference
  - Data 360 Developer Documentation
---
# 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.
