@@ -109,18 +109,18 @@ DESCRIPTION
109109
110110 Deploys an initialized and packaged Data Cloud code extension to a Salesforce org. The package must be initialized and
111111 zipped before deployment. Supports both script and function packages with configurable CPU resources and network
112- settings.
112+ settings. Run this command from within the package directory (e.g. cd ./my-script-package).
113113
114114EXAMPLES
115115 Deploy a function package to the org with alias "myorg":
116116
117117 $ sf data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" \
118- --package-dir ./my-function-package --target-org myorg --function-invoke-opt UnstructuredChunking
118+ --package-dir ./payload --target-org myorg --function-invoke-opt UnstructuredChunking
119119
120120 Deploy with a specific CPU size:
121121
122122 $ sf data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" \
123- --package-dir ./my-function-package --target-org myorg --cpu-size CPU_4XL --function-invoke-opt \
123+ --package-dir ./payload --target-org myorg --cpu-size CPU_4XL --function-invoke-opt \
124124 UnstructuredChunking
125125
126126FLAG DESCRIPTIONS
@@ -188,7 +188,7 @@ DESCRIPTION
188188EXAMPLES
189189 Initialize a function-based Data Cloud package:
190190
191- $ sf data-code-extension function init --package-dir ./my-function-package
191+ $ sf data-code-extension function init --package-dir ./payload
192192
193193FLAG DESCRIPTIONS
194194 -p, --package-dir=<value> Directory path where the package will be created.
@@ -225,11 +225,11 @@ DESCRIPTION
225225EXAMPLES
226226 Run a function package against the org with alias "myorg":
227227
228- $ sf data-code-extension function run --entrypoint ./my-function-package/entrypoint.py --target-org myorg
228+ $ sf data-code-extension function run --entrypoint ./my-function-package/payload/ entrypoint.py --target-org myorg
229229
230230 Run with a custom config file:
231231
232- $ sf data-code-extension function run --entrypoint ./my-function-package/entrypoint.py --target-org myorg \
232+ $ sf data-code-extension function run --entrypoint ./my-function-package/payload/ entrypoint.py --target-org myorg \
233233 --config-file ./my-function-package/payload/config.json
234234
235235FLAG DESCRIPTIONS
@@ -279,21 +279,17 @@ DESCRIPTION
279279 dependencies. Updates the config.json and requirements.txt files based on the code analysis.
280280
281281EXAMPLES
282- Scan a function package in the current directory:
283-
284- $ sf data-code-extension function scan
285-
286282 Scan with a custom entrypoint file:
287283
288- $ sf data-code-extension function scan --entrypoint ./payload/entrypoint.py
284+ $ sf data-code-extension function scan --entrypoint ./my-function-package/ payload/entrypoint.py
289285
290286 Perform a dry run to see what would be changed:
291287
292- $ sf data-code-extension function scan --dry-run
288+ $ sf data-code-extension function scan --entrypoint ./my-function-package/payload/entrypoint.py -- dry-run
293289
294290 Scan without updating the requirements.txt file:
295291
296- $ sf data-code-extension function scan --no-requirements
292+ $ sf data-code-extension function scan --entrypoint ./my-function-package/payload/entrypoint.py -- no-requirements
297293
298294FLAG DESCRIPTIONS
299295 -d, --dry-run Preview changes without modifying any files.
@@ -343,7 +339,7 @@ DESCRIPTION
343339EXAMPLES
344340 Create an archive of a function package:
345341
346- $ sf data-code-extension function zip --package-dir ./my-function-package
342+ $ sf data-code-extension function zip --package-dir ./payload/payload
347343
348344FLAG DESCRIPTIONS
349345 -n, --network=<value> Network configuration, typically used for Jupyter notebook packages.
@@ -386,18 +382,18 @@ DESCRIPTION
386382
387383 Deploys an initialized and packaged Data Cloud code extension to a Salesforce org. The package must be initialized and
388384 zipped before deployment. Supports both script and function packages with configurable CPU resources and network
389- settings.
385+ settings. Run this command from within the package directory (e.g. cd ./my-script-package).
390386
391387EXAMPLES
392388 Deploy a script package to the org with alias "myorg":
393389
394390 $ sf data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" \
395- --package-dir ./my-script-package --target-org myorg
391+ --package-dir ./payload --target-org myorg
396392
397393 Deploy with a specific CPU size:
398394
399395 $ sf data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" \
400- --package-dir ./my-script-package --target-org myorg --cpu-size CPU_4XL
396+ --package-dir ./payload --target-org myorg --cpu-size CPU_4XL
401397
402398FLAG DESCRIPTIONS
403399 -d, --description=<value> Description of the package.
@@ -460,7 +456,7 @@ DESCRIPTION
460456EXAMPLES
461457 Initialize a script-based Data Cloud package:
462458
463- $ sf data-code-extension script init --package-dir ./my-script-package
459+ $ sf data-code-extension script init --package-dir ./payload
464460
465461FLAG DESCRIPTIONS
466462 -p, --package-dir=<value> Directory path where the package will be created.
@@ -497,11 +493,11 @@ DESCRIPTION
497493EXAMPLES
498494 Run a script package against the org with alias "myorg":
499495
500- $ sf data-code-extension script run --entrypoint ./my-script-package/entrypoint.py --target-org myorg
496+ $ sf data-code-extension script run --entrypoint ./my-script-package/payload/ entrypoint.py --target-org myorg
501497
502498 Run with a custom config file:
503499
504- $ sf data-code-extension script run --entrypoint ./my-script-package/entrypoint.py --target-org myorg \
500+ $ sf data-code-extension script run --entrypoint ./my-script-package/payload/ entrypoint.py --target-org myorg \
505501 --config-file ./my-script-package/payload/config.json
506502
507503FLAG DESCRIPTIONS
@@ -551,21 +547,17 @@ DESCRIPTION
551547 dependencies. Updates the config.json and requirements.txt files based on the code analysis.
552548
553549EXAMPLES
554- Scan a script package in the current directory:
555-
556- $ sf data-code-extension script scan
557-
558550 Scan with a custom entrypoint file:
559551
560- $ sf data-code-extension script scan --entrypoint ./payload/entrypoint.py
552+ $ sf data-code-extension script scan --entrypoint ./my-script-package/ payload/entrypoint.py
561553
562554 Perform a dry run to see what would be changed:
563555
564- $ sf data-code-extension script scan --dry-run
556+ $ sf data-code-extension script scan --entrypoint ./my-script-package/payload/entrypoint.py -- dry-run
565557
566558 Scan without updating the requirements.txt file:
567559
568- $ sf data-code-extension script scan --no-requirements
560+ $ sf data-code-extension script scan --entrypoint ./my-script-package/payload/entrypoint.py -- no-requirements
569561
570562FLAG DESCRIPTIONS
571563 -d, --dry-run Preview changes without modifying any files.
@@ -615,7 +607,7 @@ DESCRIPTION
615607EXAMPLES
616608 Create an archive of a script package:
617609
618- $ sf data-code-extension script zip --package-dir ./my-script-package
610+ $ sf data-code-extension script zip --package-dir ./payload/payload
619611
620612FLAG DESCRIPTIONS
621613 -n, --network=<value> Network configuration, typically used for Jupyter notebook packages.
0 commit comments