---
schema_version: "1"
id: aa7c78967289697f2a56ec5f19181619ea6540aee053095f6b6bd0619678365e
title: data-code-extension script zip
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-zip.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-code-ext-cli-reference/guide/data-code-extension-script-zip.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 64058e712b2f444b56016e17f609446bcc787f6b297a500b5f345969a4e720bf
products:
  - Data 360 Code Extension CLI Reference
  - Data 360 Developer Documentation
---
# data-code-extension script zip

Create a compressed archive of a data code extension script package.

## Description

Create a .zip file of an initialized data code extension script package for deployment. The .zip file includes required files from the package directory and respects `.gitignore `patterns.

## Examples

Create an archive of a script package:

```sh
sf data-code-extension script zip --package-dir ./my-script-package/payload
```

## Flags

- `-p, --package-dir <PACKAGE-DIR>` (Required): Directory that contains the initialized package to archive.
- `-n, --network <NETWORK>` (Optional): Network setting for Jupyter notebook packages.
- `--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.
