Package the connector bundle

Package the connector bundle

Build the connector with zcli connectors:bundle as described in the SDK documentation. This compiles your connector into a self-contained CommonJS bundle in dist/ and writes an upload-ready ZIP archive to the project root:

my-connector/├── dist/                          # compiled bundle (working output)└── my-connector-0.0.1.zip         # upload-ready archive

The ZIP is named <connector name>-<version>.zip from manifest.json, and contains the contents of dist/ flattened to the archive root - exactly the shape Developer Portal expects. Upload this file as-is; do not create your own archive around dist/.

For OAuth connectors, the bundle must include the completed settings file at the bundle root. If the file is at src/settings.json in your project, zcli connectors:bundle copies it into dist/ automatically, so it also lands in the ZIP. Otherwise copy it into the bundle root manually after bundling as follows:

cp settings.json dist/settings.json

If you copy manually, note that the ZIP was already created during bundling - either bundle again after copying, or update the ZIP as described in Package without zcli below.

zcli connectors:bundle empties dist/ on every run, so never keep the only copy of settings.json in dist/. Keep the source file at src/settings.json (copied automatically) or anywhere else outside dist/ (copied manually after each bundle).

The upload archive must have this exact shape, with every entry at the ZIP root:

manifest.json        # requiredconnector.js         # required - compiled output, not TypeScript sourcesettings.json        # required for OAuth connectors onlyassets/              # required - must contain only logo.svg, e.g. assets/logo.svgtranslations/        # optional

The ZIP file must be no larger than 1 MiB (1,048,576 bytes). After extraction, the total size of all files in the bundle must also be no larger than 1 MiB.

Package without zcli

If you assemble the archive yourself instead of using the zcli-generated ZIP, create it from the contents of dist/, not from the parent directory:

(  cd dist  zip -r ../test-github-connector-1.0.0.zip .)

To update an existing ZIP after a manual change, run zip from inside dist/ again or delete the changed entry first - do not nest a second copy of the bundle inside the archive. The connector name in manifest.json must not contain / or \ path separators; zcli connectors:bundle rejects such names with an explicit error.

Do not zip with macOS Finder ("Compress"). Finder embeds __MACOSX/ metadata files that shadow your real files and fail validation with opaque syntax errors. Package from the terminal, and strip metadata from any archive a tool created for you:

zip -d bundle.zip '__MACOSX/*' '**/.DS_Store'

Verify the archive before upload - whether zcli created it or you did - the listing must show only the expected files:

unzip -l test-github-connector-1.0.0.zip
# Archive:  test-github-connector-1.0.0.zip#   manifest.json#   connector.js#   settings.json#   assets/logo.svg

The listing must show manifest.json, connector.js, assets/logo.svg, and (for OAuth) settings.json at the archive root - not under a dist/ folder. The archive must not contain TypeScript source, .env files, public-key.pem, plaintext secrets, dependency caches, or source-control metadata.

Private vs public publishing. zcli connectors:publish publishes a private connector to your own Zendesk account. Public connectors are submitted through Developer Portal instead - see Submit your connector.