---
schema_version: "1"
id: e9d87df06c0369d436356a24c5743ff2d24c961a55d8a6b6e2e512b5a510f097
title: data-code-extension script init
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-init.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-code-ext-cli-reference/guide/data-code-extension-script-init.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b77cadc90053b2f700884aa4f1a6c8f3ff73af35df80849c5762c53acc8d22d3
products:
  - Data 360 Code Extension CLI Reference
  - Data 360 Developer Documentation
---
# data-code-extension script init

Initialize a data code extension script package.

## Description

Initialize a data code extension script package by checking system requirements and setting up the necessary environment.

## Examples

```sh
sf data-code-extension script init --package-dir ./my-script-package
```

## Flags

- `-p, --package-dir <PACKAGE-DIR>` (Required): Directory path where the package is created.
- `--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.
