Skip to content

Commit 58bf7f7

Browse files
committed
fix: more consistent help text
1 parent e35e9df commit 58bf7f7

5 files changed

Lines changed: 38 additions & 54 deletions

File tree

‎README.md‎

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -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
114114
EXAMPLES
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
126126
FLAG DESCRIPTIONS
@@ -188,7 +188,7 @@ DESCRIPTION
188188
EXAMPLES
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
193193
FLAG DESCRIPTIONS
194194
-p, --package-dir=<value> Directory path where the package will be created.
@@ -225,11 +225,11 @@ DESCRIPTION
225225
EXAMPLES
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
235235
FLAG DESCRIPTIONS
@@ -279,21 +279,17 @@ DESCRIPTION
279279
dependencies. Updates the config.json and requirements.txt files based on the code analysis.
280280
281281
EXAMPLES
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
298294
FLAG DESCRIPTIONS
299295
-d, --dry-run Preview changes without modifying any files.
@@ -343,7 +339,7 @@ DESCRIPTION
343339
EXAMPLES
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
348344
FLAG 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
391387
EXAMPLES
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
402398
FLAG DESCRIPTIONS
403399
-d, --description=<value> Description of the package.
@@ -460,7 +456,7 @@ DESCRIPTION
460456
EXAMPLES
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
465461
FLAG DESCRIPTIONS
466462
-p, --package-dir=<value> Directory path where the package will be created.
@@ -497,11 +493,11 @@ DESCRIPTION
497493
EXAMPLES
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
507503
FLAG DESCRIPTIONS
@@ -551,21 +547,17 @@ DESCRIPTION
551547
dependencies. Updates the config.json and requirements.txt files based on the code analysis.
552548
553549
EXAMPLES
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
570562
FLAG DESCRIPTIONS
571563
-d, --dry-run Preview changes without modifying any files.
@@ -615,7 +607,7 @@ DESCRIPTION
615607
EXAMPLES
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
620612
FLAG DESCRIPTIONS
621613
-n, --network=<value> Network configuration, typically used for Jupyter notebook packages.

‎messages/deploy.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,37 @@ Deploy a Data Code Extension %s package to a Salesforce org.
44

55
# description
66

7-
Deploys an initialized and packaged Data Cloud code extension to a Salesforce org. The package must be initialized and zipped before deployment. Supports both script and function packages with configurable CPU resources and network settings.
7+
Deploys an initialized and packaged Data Cloud code extension to a Salesforce org. The package must be initialized and zipped before deployment. Supports both script and function packages with configurable CPU resources and network settings. Run this command from within the package directory (e.g. cd ./my-script-package).
88

99
# examples
1010

1111
- Deploy a %s package to the org with alias "myorg":
1212

13-
<%= config.bin %> data-code-extension %s deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-%s-package --target-org myorg
13+
<%= config.bin %> data-code-extension %s deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg
1414

1515
- Deploy with a specific CPU size:
1616

17-
<%= config.bin %> data-code-extension %s deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-%s-package --target-org myorg --cpu-size CPU_4XL
17+
<%= config.bin %> data-code-extension %s deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg --cpu-size CPU_4XL
1818

1919
# examples.script
2020

2121
- Deploy a script package to the org with alias "myorg":
2222

23-
<%= config.bin %> data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-script-package --target-org myorg
23+
<%= config.bin %> data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg
2424

2525
- Deploy with a specific CPU size:
2626

27-
<%= config.bin %> data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-script-package --target-org myorg --cpu-size CPU_4XL
27+
<%= config.bin %> data-code-extension script deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg --cpu-size CPU_4XL
2828

2929
# examples.function
3030

3131
- Deploy a function package to the org with alias "myorg":
3232

33-
<%= config.bin %> data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-function-package --target-org myorg --function-invoke-opt UnstructuredChunking
33+
<%= config.bin %> data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg --function-invoke-opt UnstructuredChunking
3434

3535
- Deploy with a specific CPU size:
3636

37-
<%= config.bin %> data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./my-function-package --target-org myorg --cpu-size CPU_4XL --function-invoke-opt UnstructuredChunking
37+
<%= config.bin %> data-code-extension function deploy --name my-package --package-version 1.0.0 --description "My package" --package-dir ./payload --target-org myorg --cpu-size CPU_4XL --function-invoke-opt UnstructuredChunking
3838

3939
# info.checkingPython
4040

‎messages/run.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ Executes an initialized Data Cloud custom code package against a Salesforce org.
1010

1111
- Run a script package against the org with alias "myorg":
1212

13-
<%= config.bin %> data-code-extension script run --entrypoint ./my-script-package/entrypoint.py --target-org myorg
13+
<%= config.bin %> data-code-extension script run --entrypoint ./my-script-package/payload/entrypoint.py --target-org myorg
1414

1515
- Run with a custom config file:
1616

17-
<%= config.bin %> data-code-extension script run --entrypoint ./my-script-package/entrypoint.py --target-org myorg --config-file ./my-script-package/payload/config.json
17+
<%= config.bin %> data-code-extension script run --entrypoint ./my-script-package/payload/entrypoint.py --target-org myorg --config-file ./my-script-package/payload/config.json
1818

1919
# examples.function
2020

2121
- Run a function package against the org with alias "myorg":
2222

23-
<%= config.bin %> data-code-extension function run --entrypoint ./my-function-package/entrypoint.py --target-org myorg
23+
<%= config.bin %> data-code-extension function run --entrypoint ./my-function-package/payload/entrypoint.py --target-org myorg
2424

2525
- Run with a custom config file:
2626

27-
<%= config.bin %> data-code-extension function run --entrypoint ./my-function-package/entrypoint.py --target-org myorg --config-file ./my-function-package/payload/config.json
27+
<%= config.bin %> data-code-extension function run --entrypoint ./my-function-package/payload/entrypoint.py --target-org myorg --config-file ./my-function-package/payload/config.json
2828

2929
# info.checkingPython
3030

‎messages/scan.md‎

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,31 @@ Scans Python files in an initialized Data Code Extension package directory to id
88

99
# examples.script
1010

11-
- Scan a script package in the current directory:
12-
13-
<%= config.bin %> data-code-extension script scan
14-
1511
- Scan with a custom entrypoint file:
1612

17-
<%= config.bin %> data-code-extension script scan --entrypoint ./payload/entrypoint.py
13+
<%= config.bin %> data-code-extension script scan --entrypoint ./my-script-package/payload/entrypoint.py
1814

1915
- Perform a dry run to see what would be changed:
2016

21-
<%= config.bin %> data-code-extension script scan --dry-run
17+
<%= config.bin %> data-code-extension script scan --entrypoint ./my-script-package/payload/entrypoint.py --dry-run
2218

2319
- Scan without updating the requirements.txt file:
2420

25-
<%= config.bin %> data-code-extension script scan --no-requirements
21+
<%= config.bin %> data-code-extension script scan --entrypoint ./my-script-package/payload/entrypoint.py --no-requirements
2622

2723
# examples.function
2824

29-
- Scan a function package in the current directory:
30-
31-
<%= config.bin %> data-code-extension function scan
32-
3325
- Scan with a custom entrypoint file:
3426

35-
<%= config.bin %> data-code-extension function scan --entrypoint ./payload/entrypoint.py
27+
<%= config.bin %> data-code-extension function scan --entrypoint ./my-function-package/payload/entrypoint.py
3628

3729
- Perform a dry run to see what would be changed:
3830

39-
<%= config.bin %> data-code-extension function scan --dry-run
31+
<%= config.bin %> data-code-extension function scan --entrypoint ./my-function-package/payload/entrypoint.py --dry-run
4032

4133
- Scan without updating the requirements.txt file:
4234

43-
<%= config.bin %> data-code-extension function scan --no-requirements
35+
<%= config.bin %> data-code-extension function scan --entrypoint ./my-function-package/payload/entrypoint.py --no-requirements
4436

4537
# info.checkingPython
4638

‎messages/zip.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Creates a ZIP archive of an initialized Data Code Extension package for deployme
1010

1111
- Create an archive of a %s package:
1212

13-
<%= config.bin %> data-code-extension %s zip --package-dir ./my-%s-package
13+
<%= config.bin %> data-code-extension %s zip --package-dir ./my-%s-package/payload
1414

1515
# info.checkingPython
1616

0 commit comments

Comments
 (0)