@b64hub/sfpm-cli 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -70
- package/dist/commands/add.js +29 -2
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/build/index.js +13 -11
- package/dist/commands/build/index.js.map +1 -1
- package/dist/commands/deploy/index.js +1 -1
- package/dist/commands/deploy/index.js.map +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/package/create.d.ts +3 -0
- package/dist/commands/package/create.js +68 -17
- package/dist/commands/package/create.js.map +1 -1
- package/dist/commands/pool/clean.d.ts +18 -0
- package/dist/commands/pool/clean.js +28 -0
- package/dist/commands/pool/clean.js.map +1 -0
- package/dist/commands/pool/delete.d.ts +1 -1
- package/dist/commands/pool/delete.js +12 -7
- package/dist/commands/pool/delete.js.map +1 -1
- package/dist/commands/pool/fetch.d.ts +0 -1
- package/dist/commands/pool/fetch.js +0 -2
- package/dist/commands/pool/fetch.js.map +1 -1
- package/dist/commands/project/index.js +1 -1
- package/dist/commands/project/index.js.map +1 -1
- package/dist/commands/project/init/turbo.js +2 -2
- package/dist/commands/project/init/turbo.js.map +1 -1
- package/dist/commands/project/sync.js +4 -2
- package/dist/commands/project/sync.js.map +1 -1
- package/dist/commands/publish.js +1 -1
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/skills.d.ts +23 -0
- package/dist/commands/skills.js +47 -0
- package/dist/commands/skills.js.map +1 -0
- package/oclif.manifest.json +467 -281
- package/package.json +13 -12
- package/skills/sfpm/SKILL.md +104 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @b64hub/sfpm-cli
|
|
|
20
20
|
$ sfpm COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ sfpm (--version)
|
|
23
|
-
@b64hub/sfpm-cli/0.
|
|
23
|
+
@b64hub/sfpm-cli/0.5.1 linux-x64 node-v22.23.5
|
|
24
24
|
$ sfpm --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ sfpm COMMAND
|
|
@@ -48,6 +48,7 @@ USAGE
|
|
|
48
48
|
* [`sfpm plugins uninstall [PLUGIN]`](#sfpm-plugins-uninstall-plugin)
|
|
49
49
|
* [`sfpm plugins unlink [PLUGIN]`](#sfpm-plugins-unlink-plugin)
|
|
50
50
|
* [`sfpm plugins update`](#sfpm-plugins-update)
|
|
51
|
+
* [`sfpm pool clean`](#sfpm-pool-clean)
|
|
51
52
|
* [`sfpm pool delete`](#sfpm-pool-delete)
|
|
52
53
|
* [`sfpm pool fetch`](#sfpm-pool-fetch)
|
|
53
54
|
* [`sfpm pool fill`](#sfpm-pool-fill)
|
|
@@ -60,6 +61,7 @@ USAGE
|
|
|
60
61
|
* [`sfpm publish [PACKAGES]`](#sfpm-publish-packages)
|
|
61
62
|
* [`sfpm release create [PACKAGES]`](#sfpm-release-create-packages)
|
|
62
63
|
* [`sfpm release run FILE`](#sfpm-release-run-file)
|
|
64
|
+
* [`sfpm skills`](#sfpm-skills)
|
|
63
65
|
* [`sfpm watch cancel ID`](#sfpm-watch-cancel-id)
|
|
64
66
|
* [`sfpm watch clean`](#sfpm-watch-clean)
|
|
65
67
|
* [`sfpm watch status`](#sfpm-watch-status)
|
|
@@ -90,7 +92,7 @@ EXAMPLES
|
|
|
90
92
|
$ sfpm add @myorg/package-a @myorg/package-b
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
_See code: [dist/commands/add.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
95
|
+
_See code: [dist/commands/add.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/add.js)_
|
|
94
96
|
|
|
95
97
|
## `sfpm bootstrap`
|
|
96
98
|
|
|
@@ -124,17 +126,17 @@ EXAMPLES
|
|
|
124
126
|
$ sfpm bootstrap -o my-prod-org --force
|
|
125
127
|
```
|
|
126
128
|
|
|
127
|
-
_See code: [dist/commands/bootstrap.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
129
|
+
_See code: [dist/commands/bootstrap.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/bootstrap.js)_
|
|
128
130
|
|
|
129
131
|
## `sfpm build PACKAGES`
|
|
130
132
|
|
|
131
|
-
|
|
133
|
+
Build packages
|
|
132
134
|
|
|
133
135
|
```
|
|
134
136
|
USAGE
|
|
135
137
|
$ sfpm build PACKAGES... [--json | --plain] [--log-level trace|debug|info|warn|error] [--async] [-b
|
|
136
138
|
<value>] [-o <value>] [-f] [-k <value>...] [--no-dependencies] [--source-only] [-t <value>] [-v <value>] [--turbo]
|
|
137
|
-
[-l local|org|full] [-w <value>]
|
|
139
|
+
[-l local|org|full|none] [-w <value>]
|
|
138
140
|
|
|
139
141
|
ARGUMENTS
|
|
140
142
|
PACKAGES... package(s) to build
|
|
@@ -144,10 +146,11 @@ FLAGS
|
|
|
144
146
|
-f, --force [env: SFPM_FORCE_BUILD] build even if no source changes detected
|
|
145
147
|
-k, --installation-key=<value>... installation key for unlocked packages; repeat as <package>=<key>, or a bare value
|
|
146
148
|
as the default
|
|
147
|
-
-l, --validation=<option> [default: local] validation level (use --
|
|
148
|
-
<options: local|org|full>
|
|
149
|
+
-l, --validation=<option> [default: local] validation level (use --validation none to skip)
|
|
150
|
+
<options: local|org|full|none>
|
|
149
151
|
-o, --build-org=<value> target org for source package validation (deploy + test)
|
|
150
|
-
-t, --tag=<value> tag for
|
|
152
|
+
-t, --tag=<value> package version tag for unlocked packages (passed to sf package version create
|
|
153
|
+
--tag)
|
|
151
154
|
-v, --target-dev-hub=<value> [env: SF_DEV_HUB] target dev hub username
|
|
152
155
|
-w, --wait=<value> [default: 120] timeout in minutes for package version creation
|
|
153
156
|
--async return immediately without waiting for validation results
|
|
@@ -161,7 +164,7 @@ FLAGS
|
|
|
161
164
|
--turbo single-package mode for external orchestrators (implies --no-dependencies)
|
|
162
165
|
|
|
163
166
|
DESCRIPTION
|
|
164
|
-
|
|
167
|
+
Build packages
|
|
165
168
|
|
|
166
169
|
EXAMPLES
|
|
167
170
|
$ sfpm build my-package -v my-devhub
|
|
@@ -175,7 +178,7 @@ EXAMPLES
|
|
|
175
178
|
$ sfpm build package-a package-b -v my-devhub
|
|
176
179
|
```
|
|
177
180
|
|
|
178
|
-
_See code: [dist/commands/build/index.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
181
|
+
_See code: [dist/commands/build/index.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/build/index.js)_
|
|
179
182
|
|
|
180
183
|
## `sfpm build status`
|
|
181
184
|
|
|
@@ -203,11 +206,11 @@ EXAMPLES
|
|
|
203
206
|
$ sfpm build status --poll
|
|
204
207
|
```
|
|
205
208
|
|
|
206
|
-
_See code: [dist/commands/build/status.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
209
|
+
_See code: [dist/commands/build/status.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/build/status.js)_
|
|
207
210
|
|
|
208
211
|
## `sfpm deploy PACKAGES`
|
|
209
212
|
|
|
210
|
-
|
|
213
|
+
Deploy metadata from source
|
|
211
214
|
|
|
212
215
|
```
|
|
213
216
|
USAGE
|
|
@@ -233,7 +236,7 @@ FLAGS
|
|
|
233
236
|
--turbo single-package mode for external orchestrators (implies --no-dependencies --force)
|
|
234
237
|
|
|
235
238
|
DESCRIPTION
|
|
236
|
-
|
|
239
|
+
Deploy metadata from source
|
|
237
240
|
|
|
238
241
|
EXAMPLES
|
|
239
242
|
$ sfpm deploy my-package -o my-sandbox
|
|
@@ -245,7 +248,7 @@ EXAMPLES
|
|
|
245
248
|
$ sfpm deploy package-a package-b -o my-sandbox
|
|
246
249
|
```
|
|
247
250
|
|
|
248
|
-
_See code: [dist/commands/deploy/index.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
251
|
+
_See code: [dist/commands/deploy/index.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/deploy/index.js)_
|
|
249
252
|
|
|
250
253
|
## `sfpm deploy artifact PACKAGES`
|
|
251
254
|
|
|
@@ -287,7 +290,7 @@ EXAMPLES
|
|
|
287
290
|
$ sfpm deploy artifact package-a package-b -o my-sandbox
|
|
288
291
|
```
|
|
289
292
|
|
|
290
|
-
_See code: [dist/commands/deploy/artifact.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
293
|
+
_See code: [dist/commands/deploy/artifact.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/deploy/artifact.js)_
|
|
291
294
|
|
|
292
295
|
## `sfpm help [COMMAND]`
|
|
293
296
|
|
|
@@ -311,7 +314,7 @@ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.3
|
|
|
311
314
|
|
|
312
315
|
## `sfpm install PACKAGES`
|
|
313
316
|
|
|
314
|
-
|
|
317
|
+
Install packages
|
|
315
318
|
|
|
316
319
|
```
|
|
317
320
|
USAGE
|
|
@@ -338,7 +341,7 @@ FLAGS
|
|
|
338
341
|
--turbo single-package mode for external orchestrators (implies --no-dependencies --force)
|
|
339
342
|
|
|
340
343
|
DESCRIPTION
|
|
341
|
-
|
|
344
|
+
Install packages
|
|
342
345
|
|
|
343
346
|
EXAMPLES
|
|
344
347
|
$ sfpm install my-package -o my-sandbox
|
|
@@ -350,32 +353,34 @@ EXAMPLES
|
|
|
350
353
|
$ sfpm install package-a package-b -o my-sandbox
|
|
351
354
|
```
|
|
352
355
|
|
|
353
|
-
_See code: [dist/commands/install.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
356
|
+
_See code: [dist/commands/install.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/install.js)_
|
|
354
357
|
|
|
355
358
|
## `sfpm package create`
|
|
356
359
|
|
|
357
|
-
Create a new
|
|
360
|
+
Create a new package
|
|
358
361
|
|
|
359
362
|
```
|
|
360
363
|
USAGE
|
|
361
364
|
$ sfpm package create [--log-level trace|debug|info|warn|error] [--plain | --json] [-d <value>] [-n <value>]
|
|
362
|
-
[--org-dependent] [-p <value>] [-s <value>] [-t unlocked|source|data]
|
|
365
|
+
[--org-dependent] [--package-path <value>] [-p <value>] [-s <value>] [-t unlocked|source|data]
|
|
363
366
|
|
|
364
367
|
FLAGS
|
|
365
|
-
-d, --devhub=<value>
|
|
366
|
-
-n, --name=<value>
|
|
367
|
-
-p, --path=<value>
|
|
368
|
-
-s, --scope=<value>
|
|
369
|
-
-t, --type=<option>
|
|
370
|
-
|
|
371
|
-
--json
|
|
372
|
-
--log-level=<option>
|
|
373
|
-
|
|
374
|
-
--org-dependent
|
|
375
|
-
--
|
|
368
|
+
-d, --devhub=<value> DevHub org username (required for unlocked packages)
|
|
369
|
+
-n, --name=<value> package name (without npm scope)
|
|
370
|
+
-p, --path=<value> SF source path within the package directory (default: ".")
|
|
371
|
+
-s, --scope=<value> npm scope for the package (e.g., "@myorg")
|
|
372
|
+
-t, --type=<option> package type
|
|
373
|
+
<options: unlocked|source|data>
|
|
374
|
+
--json output as JSON for CI/CD
|
|
375
|
+
--log-level=<option> [default: error, env: SFPM_LOG_LEVEL] diagnostic log level
|
|
376
|
+
<options: trace|debug|info|warn|error>
|
|
377
|
+
--org-dependent create as org-dependent unlocked package
|
|
378
|
+
--package-path=<value> path to the package directory, relative to the project root (default: workspace packages
|
|
379
|
+
dir + package name)
|
|
380
|
+
--plain non-interactive output (no spinners or cursor movement)
|
|
376
381
|
|
|
377
382
|
DESCRIPTION
|
|
378
|
-
Create a new
|
|
383
|
+
Create a new package
|
|
379
384
|
|
|
380
385
|
EXAMPLES
|
|
381
386
|
$ sfpm package create
|
|
@@ -387,7 +392,7 @@ EXAMPLES
|
|
|
387
392
|
$ sfpm package create --json
|
|
388
393
|
```
|
|
389
394
|
|
|
390
|
-
_See code: [dist/commands/package/create.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
395
|
+
_See code: [dist/commands/package/create.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/package/create.js)_
|
|
391
396
|
|
|
392
397
|
## `sfpm plugins`
|
|
393
398
|
|
|
@@ -679,26 +684,67 @@ DESCRIPTION
|
|
|
679
684
|
|
|
680
685
|
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/update.ts)_
|
|
681
686
|
|
|
687
|
+
## `sfpm pool clean`
|
|
688
|
+
|
|
689
|
+
delete only available orgs from a pool (safe to run before refilling — never touches assigned or in-progress orgs by default)
|
|
690
|
+
|
|
691
|
+
```
|
|
692
|
+
USAGE
|
|
693
|
+
$ sfpm pool clean -t <value>... [--json | --plain] [--log-level trace|debug|info|warn|error] [--exclude-stage
|
|
694
|
+
Assigned|Available|InProgress...] [--my-pool] [-v <value>] [--type scratch|sandbox]
|
|
695
|
+
|
|
696
|
+
FLAGS
|
|
697
|
+
-t, --tag=<value>... (required) pool tag to delete from (repeat to delete from multiple pools)
|
|
698
|
+
-v, --target-dev-hub=<value> target hub org username or alias
|
|
699
|
+
--exclude-stage=<option>... [default: Assigned,InProgress] exclude orgs in this pool stage from deletion (repeat
|
|
700
|
+
for multiple; default: Assigned, InProgress — only Available orgs are cleaned)
|
|
701
|
+
<options: Assigned|Available|InProgress>
|
|
702
|
+
--json output result as JSON
|
|
703
|
+
--log-level=<option> [default: error, env: SFPM_LOG_LEVEL] diagnostic log level
|
|
704
|
+
<options: trace|debug|info|warn|error>
|
|
705
|
+
--my-pool only delete orgs created by the current user
|
|
706
|
+
--plain non-interactive output (no spinners or cursor movement)
|
|
707
|
+
--type=<option> [default: scratch] pool type: scratch or sandbox
|
|
708
|
+
<options: scratch|sandbox>
|
|
709
|
+
|
|
710
|
+
DESCRIPTION
|
|
711
|
+
delete only available orgs from a pool (safe to run before refilling — never touches assigned or in-progress orgs by
|
|
712
|
+
default)
|
|
713
|
+
|
|
714
|
+
EXAMPLES
|
|
715
|
+
$ sfpm pool clean --tag dev-pool -v my-devhub
|
|
716
|
+
|
|
717
|
+
$ sfpm pool clean --tag sb-pool --type sandbox -v my-prod-org
|
|
718
|
+
|
|
719
|
+
$ sfpm pool clean --tag dev-pool -v my-devhub --exclude-stage Assigned
|
|
720
|
+
|
|
721
|
+
$ sfpm pool clean --tag dev-pool -v my-devhub --json
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
_See code: [dist/commands/pool/clean.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/pool/clean.js)_
|
|
725
|
+
|
|
682
726
|
## `sfpm pool delete`
|
|
683
727
|
|
|
684
728
|
delete orgs from a pool
|
|
685
729
|
|
|
686
730
|
```
|
|
687
731
|
USAGE
|
|
688
|
-
$ sfpm pool delete -t <value>... [--json | --plain] [--log-level trace|debug|info|warn|error]
|
|
689
|
-
|
|
732
|
+
$ sfpm pool delete -t <value>... [--json | --plain] [--log-level trace|debug|info|warn|error] [--exclude-stage
|
|
733
|
+
Assigned|Available|InProgress...] [--my-pool] [-v <value>] [--type scratch|sandbox]
|
|
690
734
|
|
|
691
735
|
FLAGS
|
|
692
|
-
-t, --tag=<value>...
|
|
693
|
-
-v, --target-dev-hub=<value>
|
|
694
|
-
--
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
--
|
|
699
|
-
|
|
700
|
-
--
|
|
701
|
-
|
|
736
|
+
-t, --tag=<value>... (required) pool tag to delete from (repeat to delete from multiple pools)
|
|
737
|
+
-v, --target-dev-hub=<value> target hub org username or alias
|
|
738
|
+
--exclude-stage=<option>... exclude orgs in this pool stage from deletion (repeat for multiple; default: none,
|
|
739
|
+
deletes every stage)
|
|
740
|
+
<options: Assigned|Available|InProgress>
|
|
741
|
+
--json output result as JSON
|
|
742
|
+
--log-level=<option> [default: error, env: SFPM_LOG_LEVEL] diagnostic log level
|
|
743
|
+
<options: trace|debug|info|warn|error>
|
|
744
|
+
--my-pool only delete orgs created by the current user
|
|
745
|
+
--plain non-interactive output (no spinners or cursor movement)
|
|
746
|
+
--type=<option> [default: scratch] pool type: scratch or sandbox
|
|
747
|
+
<options: scratch|sandbox>
|
|
702
748
|
|
|
703
749
|
DESCRIPTION
|
|
704
750
|
delete orgs from a pool
|
|
@@ -708,7 +754,7 @@ EXAMPLES
|
|
|
708
754
|
|
|
709
755
|
$ sfpm pool delete --tag sb-pool --type sandbox -v my-prod-org
|
|
710
756
|
|
|
711
|
-
$ sfpm pool delete --tag dev-pool -v my-devhub --
|
|
757
|
+
$ sfpm pool delete --tag dev-pool -v my-devhub --exclude-stage Assigned
|
|
712
758
|
|
|
713
759
|
$ sfpm pool delete --tag dev-pool -v my-devhub --my-pool
|
|
714
760
|
|
|
@@ -717,7 +763,7 @@ EXAMPLES
|
|
|
717
763
|
$ sfpm pool delete --tag dev-pool -v my-devhub --json
|
|
718
764
|
```
|
|
719
765
|
|
|
720
|
-
_See code: [dist/commands/pool/delete.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
766
|
+
_See code: [dist/commands/pool/delete.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/pool/delete.js)_
|
|
721
767
|
|
|
722
768
|
## `sfpm pool fetch`
|
|
723
769
|
|
|
@@ -726,15 +772,13 @@ fetch an org from a pool
|
|
|
726
772
|
```
|
|
727
773
|
USAGE
|
|
728
774
|
$ sfpm pool fetch -t <value> [--json | --plain] [--log-level trace|debug|info|warn|error] [-a <value>]
|
|
729
|
-
[--
|
|
730
|
-
scratch|sandbox]
|
|
775
|
+
[--my-pool] [--send-to <value>] [--set-default] [--source-tracking] [-v <value>] [--type scratch|sandbox]
|
|
731
776
|
|
|
732
777
|
FLAGS
|
|
733
778
|
-a, --alias=<value> set a local alias for the fetched org
|
|
734
779
|
-t, --tag=<value> (required) pool tag to fetch from
|
|
735
780
|
-v, --target-dev-hub=<value> target hub org username or alias
|
|
736
781
|
--json output result as JSON
|
|
737
|
-
--limit=<value> max orgs to return when using --all
|
|
738
782
|
--log-level=<option> [default: error, env: SFPM_LOG_LEVEL] diagnostic log level
|
|
739
783
|
<options: trace|debug|info|warn|error>
|
|
740
784
|
--my-pool only fetch from orgs created by the current user
|
|
@@ -757,12 +801,10 @@ EXAMPLES
|
|
|
757
801
|
|
|
758
802
|
$ sfpm pool fetch --tag dev-pool -v my-devhub --send-to user@example.com
|
|
759
803
|
|
|
760
|
-
$ sfpm pool fetch --tag dev-pool -v my-devhub --all --limit 5
|
|
761
|
-
|
|
762
804
|
$ sfpm pool fetch --tag dev-pool -v my-devhub --json
|
|
763
805
|
```
|
|
764
806
|
|
|
765
|
-
_See code: [dist/commands/pool/fetch.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
807
|
+
_See code: [dist/commands/pool/fetch.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/pool/fetch.js)_
|
|
766
808
|
|
|
767
809
|
## `sfpm pool fill`
|
|
768
810
|
|
|
@@ -803,7 +845,7 @@ EXAMPLES
|
|
|
803
845
|
$ sfpm pool fill --tag dev-pool --max 10 -d config/project-scratch-def.json -v my-devhub --json
|
|
804
846
|
```
|
|
805
847
|
|
|
806
|
-
_See code: [dist/commands/pool/fill.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
848
|
+
_See code: [dist/commands/pool/fill.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/pool/fill.js)_
|
|
807
849
|
|
|
808
850
|
## `sfpm pool list`
|
|
809
851
|
|
|
@@ -838,11 +880,11 @@ EXAMPLES
|
|
|
838
880
|
$ sfpm pool list --tag dev-pool -v my-devhub --json
|
|
839
881
|
```
|
|
840
882
|
|
|
841
|
-
_See code: [dist/commands/pool/list.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
883
|
+
_See code: [dist/commands/pool/list.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/pool/list.js)_
|
|
842
884
|
|
|
843
885
|
## `sfpm project`
|
|
844
886
|
|
|
845
|
-
|
|
887
|
+
Project overview
|
|
846
888
|
|
|
847
889
|
```
|
|
848
890
|
USAGE
|
|
@@ -856,13 +898,13 @@ FLAGS
|
|
|
856
898
|
--plain non-interactive output (no spinners or cursor movement)
|
|
857
899
|
|
|
858
900
|
DESCRIPTION
|
|
859
|
-
|
|
901
|
+
Project overview
|
|
860
902
|
|
|
861
903
|
EXAMPLES
|
|
862
904
|
$ sfpm project
|
|
863
905
|
```
|
|
864
906
|
|
|
865
|
-
_See code: [dist/commands/project/index.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
907
|
+
_See code: [dist/commands/project/index.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/project/index.js)_
|
|
866
908
|
|
|
867
909
|
## `sfpm project init`
|
|
868
910
|
|
|
@@ -888,7 +930,7 @@ EXAMPLES
|
|
|
888
930
|
$ sfpm project init --fix
|
|
889
931
|
```
|
|
890
932
|
|
|
891
|
-
_See code: [dist/commands/project/init/index.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
933
|
+
_See code: [dist/commands/project/init/index.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/project/init/index.js)_
|
|
892
934
|
|
|
893
935
|
## `sfpm project init turbo`
|
|
894
936
|
|
|
@@ -926,7 +968,7 @@ EXAMPLES
|
|
|
926
968
|
$ sfpm project init turbo --json
|
|
927
969
|
```
|
|
928
970
|
|
|
929
|
-
_See code: [dist/commands/project/init/turbo.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
971
|
+
_See code: [dist/commands/project/init/turbo.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/project/init/turbo.js)_
|
|
930
972
|
|
|
931
973
|
## `sfpm project sync`
|
|
932
974
|
|
|
@@ -952,7 +994,7 @@ EXAMPLES
|
|
|
952
994
|
$ sfpm project sync --api-version 63.0
|
|
953
995
|
```
|
|
954
996
|
|
|
955
|
-
_See code: [dist/commands/project/sync.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
997
|
+
_See code: [dist/commands/project/sync.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/project/sync.js)_
|
|
956
998
|
|
|
957
999
|
## `sfpm project version bump`
|
|
958
1000
|
|
|
@@ -996,11 +1038,11 @@ EXAMPLES
|
|
|
996
1038
|
$ sfp project version bump --package mypackage --patch --projectfile path/to/sfdx-project.json
|
|
997
1039
|
```
|
|
998
1040
|
|
|
999
|
-
_See code: [dist/commands/project/version/bump.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1041
|
+
_See code: [dist/commands/project/version/bump.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/project/version/bump.js)_
|
|
1000
1042
|
|
|
1001
1043
|
## `sfpm publish [PACKAGES]`
|
|
1002
1044
|
|
|
1003
|
-
publish packages
|
|
1045
|
+
publish packages
|
|
1004
1046
|
|
|
1005
1047
|
```
|
|
1006
1048
|
USAGE
|
|
@@ -1019,7 +1061,7 @@ FLAGS
|
|
|
1019
1061
|
--tag=<value> [default: latest] npm dist-tag (e.g., latest, next)
|
|
1020
1062
|
|
|
1021
1063
|
DESCRIPTION
|
|
1022
|
-
publish packages
|
|
1064
|
+
publish packages
|
|
1023
1065
|
|
|
1024
1066
|
EXAMPLES
|
|
1025
1067
|
$ sfpm publish my-package
|
|
@@ -1029,7 +1071,7 @@ EXAMPLES
|
|
|
1029
1071
|
$ sfpm publish all
|
|
1030
1072
|
```
|
|
1031
1073
|
|
|
1032
|
-
_See code: [dist/commands/publish.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1074
|
+
_See code: [dist/commands/publish.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/publish.js)_
|
|
1033
1075
|
|
|
1034
1076
|
## `sfpm release create [PACKAGES]`
|
|
1035
1077
|
|
|
@@ -1073,7 +1115,7 @@ EXAMPLES
|
|
|
1073
1115
|
$ sfpm release create -n summer-2025
|
|
1074
1116
|
```
|
|
1075
1117
|
|
|
1076
|
-
_See code: [dist/commands/release/create.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1118
|
+
_See code: [dist/commands/release/create.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/release/create.js)_
|
|
1077
1119
|
|
|
1078
1120
|
## `sfpm release run FILE`
|
|
1079
1121
|
|
|
@@ -1104,7 +1146,35 @@ EXAMPLES
|
|
|
1104
1146
|
$ sfpm release run release/summer-2025.yaml -o my-sandbox --json
|
|
1105
1147
|
```
|
|
1106
1148
|
|
|
1107
|
-
_See code: [dist/commands/release/run.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1149
|
+
_See code: [dist/commands/release/run.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/release/run.js)_
|
|
1150
|
+
|
|
1151
|
+
## `sfpm skills`
|
|
1152
|
+
|
|
1153
|
+
install sfpm agent skills into a project so coding agents can use sfpm
|
|
1154
|
+
|
|
1155
|
+
```
|
|
1156
|
+
USAGE
|
|
1157
|
+
$ sfpm skills [--json | --plain] [--log-level trace|debug|info|warn|error] [--dir <value>]
|
|
1158
|
+
|
|
1159
|
+
FLAGS
|
|
1160
|
+
--dir=<value> override the install target directory
|
|
1161
|
+
--json output result as JSON
|
|
1162
|
+
--log-level=<option> [default: error, env: SFPM_LOG_LEVEL] diagnostic log level
|
|
1163
|
+
<options: trace|debug|info|warn|error>
|
|
1164
|
+
--plain non-interactive output (no spinners or cursor movement)
|
|
1165
|
+
|
|
1166
|
+
DESCRIPTION
|
|
1167
|
+
install sfpm agent skills into a project so coding agents can use sfpm
|
|
1168
|
+
|
|
1169
|
+
EXAMPLES
|
|
1170
|
+
$ sfpm skills
|
|
1171
|
+
|
|
1172
|
+
$ sfpm skills --dir ~/my-agent-skills
|
|
1173
|
+
|
|
1174
|
+
$ sfpm skills --json
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
_See code: [dist/commands/skills.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/skills.js)_
|
|
1108
1178
|
|
|
1109
1179
|
## `sfpm watch cancel ID`
|
|
1110
1180
|
|
|
@@ -1130,7 +1200,7 @@ EXAMPLES
|
|
|
1130
1200
|
$ sfpm watch cancel 1234567890-abc123
|
|
1131
1201
|
```
|
|
1132
1202
|
|
|
1133
|
-
_See code: [dist/commands/watch/cancel.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1203
|
+
_See code: [dist/commands/watch/cancel.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/watch/cancel.js)_
|
|
1134
1204
|
|
|
1135
1205
|
## `sfpm watch clean`
|
|
1136
1206
|
|
|
@@ -1159,7 +1229,7 @@ EXAMPLES
|
|
|
1159
1229
|
$ sfpm watch clean --json
|
|
1160
1230
|
```
|
|
1161
1231
|
|
|
1162
|
-
_See code: [dist/commands/watch/clean.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1232
|
+
_See code: [dist/commands/watch/clean.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/watch/clean.js)_
|
|
1163
1233
|
|
|
1164
1234
|
## `sfpm watch status`
|
|
1165
1235
|
|
|
@@ -1192,5 +1262,5 @@ EXAMPLES
|
|
|
1192
1262
|
$ sfpm watch status --json
|
|
1193
1263
|
```
|
|
1194
1264
|
|
|
1195
|
-
_See code: [dist/commands/watch/status.js](https://github.com/b64hub/sfpm/blob/v0.
|
|
1265
|
+
_See code: [dist/commands/watch/status.js](https://github.com/b64hub/sfpm/blob/v0.5.1/dist/commands/watch/status.js)_
|
|
1196
1266
|
<!-- commandsstop -->
|
package/dist/commands/add.js
CHANGED
|
@@ -3,6 +3,28 @@ import { execSync } from 'node:child_process';
|
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import SfpmCommand from '../sfpm-command.js';
|
|
6
|
+
/** Strip a version/tag specifier (`name@1.2.3` or `@scope/name@1.2.3`) down to the bare package name. */
|
|
7
|
+
function parsePackageName(token) {
|
|
8
|
+
const start = token.startsWith('@') ? 1 : 0;
|
|
9
|
+
const atIndex = token.indexOf('@', start);
|
|
10
|
+
return atIndex === -1 ? token : token.slice(0, atIndex);
|
|
11
|
+
}
|
|
12
|
+
/** Names of all packages in the pnpm workspace (root + members), so `add` can prefer `workspace:*` over the registry. */
|
|
13
|
+
function getWorkspacePackageNames(projectDir) {
|
|
14
|
+
try {
|
|
15
|
+
const output = execSync('pnpm -r list --depth -1 --json', { cwd: projectDir, encoding: 'utf8' });
|
|
16
|
+
const entries = JSON.parse(output);
|
|
17
|
+
const names = new Set();
|
|
18
|
+
for (const entry of entries) {
|
|
19
|
+
if (entry.name)
|
|
20
|
+
names.add(entry.name);
|
|
21
|
+
}
|
|
22
|
+
return names;
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return new Set();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
6
28
|
export default class Add extends SfpmCommand {
|
|
7
29
|
static args = {
|
|
8
30
|
packages: Args.string({
|
|
@@ -23,8 +45,13 @@ export default class Add extends SfpmCommand {
|
|
|
23
45
|
this.error('At least one package name is required');
|
|
24
46
|
}
|
|
25
47
|
const projectDir = process.env.SFPM_PROJECT_DIR || process.cwd();
|
|
26
|
-
const
|
|
27
|
-
|
|
48
|
+
const workspaceNames = getWorkspacePackageNames(projectDir);
|
|
49
|
+
const resolvedPackages = packages.map(p => {
|
|
50
|
+
const name = parsePackageName(p);
|
|
51
|
+
return workspaceNames.has(name) ? `${name}@workspace:*` : p;
|
|
52
|
+
});
|
|
53
|
+
const pkgArgs = resolvedPackages.map(p => `'${p}'`).join(' ');
|
|
54
|
+
this.log(`Adding: ${resolvedPackages.join(', ')}`);
|
|
28
55
|
execSync(`pnpm add ${pkgArgs}`, { cwd: projectDir, stdio: 'inherit' });
|
|
29
56
|
// Validate that added packages are sfpm packages
|
|
30
57
|
const nonSfpm = [];
|
package/dist/commands/add.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAChC,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,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AC/B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAA;oBAChE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;wBAC/B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;oBACnB,CAAC;gBACH,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,mCAAmC;YACrC,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC,sCAAsC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACvE,CAAC;IACH,CAAC"}
|
|
@@ -22,7 +22,7 @@ export default class Build extends SfpmCommand {
|
|
|
22
22
|
required: true,
|
|
23
23
|
}),
|
|
24
24
|
};
|
|
25
|
-
static description = '
|
|
25
|
+
static description = 'Build packages';
|
|
26
26
|
/**
|
|
27
27
|
* Lifecycle stage: **build**
|
|
28
28
|
*
|
|
@@ -45,7 +45,7 @@ export default class Build extends SfpmCommand {
|
|
|
45
45
|
'installation-key': Flags.string({ char: 'k', description: 'installation key for unlocked packages; repeat as <package>=<key>, or a bare value as the default', multiple: true }),
|
|
46
46
|
'no-dependencies': Flags.boolean({ default: false, description: 'build the specified packages without their transitive dependencies' }),
|
|
47
47
|
'source-only': Flags.boolean({ description: 'route all packages through source deployment (no DevHub, no package version IDs)', env: 'SFPM_SOURCE_ONLY' }),
|
|
48
|
-
tag: Flags.string({ char: 't', description: 'tag for
|
|
48
|
+
tag: Flags.string({ char: 't', description: 'package version tag for unlocked packages (passed to sf package version create --tag)' }),
|
|
49
49
|
'target-dev-hub': Flags.string({
|
|
50
50
|
char: 'v',
|
|
51
51
|
async defaultHelp() {
|
|
@@ -61,11 +61,10 @@ export default class Build extends SfpmCommand {
|
|
|
61
61
|
}),
|
|
62
62
|
turbo: Flags.boolean({ description: 'single-package mode for external orchestrators (implies --no-dependencies)' }),
|
|
63
63
|
validation: Flags.string({
|
|
64
|
-
allowNo: true,
|
|
65
64
|
char: 'l',
|
|
66
65
|
default: 'local',
|
|
67
|
-
description: 'validation level (use --
|
|
68
|
-
options: ['local', 'org', 'full'],
|
|
66
|
+
description: 'validation level (use --validation none to skip)',
|
|
67
|
+
options: ['local', 'org', 'full', 'none'],
|
|
69
68
|
}),
|
|
70
69
|
wait: Flags.integer({
|
|
71
70
|
char: 'w', default: 120, description: 'timeout in minutes for package version creation', min: 1,
|
|
@@ -136,10 +135,14 @@ export default class Build extends SfpmCommand {
|
|
|
136
135
|
const failedNames = result.failedPackages.join(', ');
|
|
137
136
|
this.error(`Build failed for: ${failedNames}`, { exit: 1 });
|
|
138
137
|
}
|
|
139
|
-
this.handleResult(result, resolved, validationBus, inkInstance);
|
|
138
|
+
await this.handleResult(result, resolved, validationBus, inkInstance);
|
|
140
139
|
return result;
|
|
141
140
|
}
|
|
142
141
|
catch (error) {
|
|
142
|
+
// Already a formatted oclif error (e.g. from handleResult's validation
|
|
143
|
+
// failure reporting) — rethrow as-is instead of re-wrapping with exit 2.
|
|
144
|
+
if (error && typeof error === 'object' && 'oclif' in error)
|
|
145
|
+
throw error;
|
|
143
146
|
if (error instanceof Error) {
|
|
144
147
|
this.error(error.message, { exit: 2 });
|
|
145
148
|
}
|
|
@@ -344,8 +347,7 @@ export default class Build extends SfpmCommand {
|
|
|
344
347
|
// getPackageDir() already returns an absolute path — don't re-join with projectDir
|
|
345
348
|
this.turboResultDir = projectConfig.getPackageDir(resolvedPackages[0]);
|
|
346
349
|
}
|
|
347
|
-
|
|
348
|
-
const validation = (flags.validation === 'false' ? 'none' : flags.validation ?? 'local');
|
|
350
|
+
const validation = flags.validation;
|
|
349
351
|
// Resolve devhub (not required when validation doesn't need an org)
|
|
350
352
|
const needsOrg = validation === 'org' || validation === 'full';
|
|
351
353
|
const needsDevHub = needsOrg && !flags['source-only'];
|
|
@@ -361,7 +363,7 @@ export default class Build extends SfpmCommand {
|
|
|
361
363
|
const buildOptions = {
|
|
362
364
|
buildNumber: flags['build-number'],
|
|
363
365
|
force: flags.force,
|
|
364
|
-
unlocked: { installationKeys: flags['installation-key']?.length ? parseInstallationKeys(flags['installation-key']) : undefined, sourceOnly: flags['source-only'] },
|
|
366
|
+
unlocked: { installationKeys: flags['installation-key']?.length ? parseInstallationKeys(flags['installation-key']) : undefined, sourceOnly: flags['source-only'], tag: flags.tag },
|
|
365
367
|
validation,
|
|
366
368
|
waitTime: flags.wait,
|
|
367
369
|
};
|
|
@@ -395,7 +397,7 @@ export default class Build extends SfpmCommand {
|
|
|
395
397
|
failures.push(`${packageName}: ${result.error}`);
|
|
396
398
|
}
|
|
397
399
|
if (failures.length > 0)
|
|
398
|
-
this.error(`Validation failed for ${failures.length} package(s)`, { exit: 1 });
|
|
400
|
+
this.error(`Validation failed for ${failures.length} package(s):\n${failures.map(f => ` - ${f}`).join('\n')}`, { exit: 1 });
|
|
399
401
|
return;
|
|
400
402
|
}
|
|
401
403
|
// json path only — interactive/plain both go through the ink branch
|
|
@@ -410,7 +412,7 @@ export default class Build extends SfpmCommand {
|
|
|
410
412
|
failures.push(`${packageName}: ${result.error}`);
|
|
411
413
|
}
|
|
412
414
|
if (failures.length > 0)
|
|
413
|
-
this.error(`Validation failed for ${failures.length} package(s)`, { exit: 1 });
|
|
415
|
+
this.error(`Validation failed for ${failures.length} package(s):\n${failures.map(f => ` - ${f}`).join('\n')}`, { exit: 1 });
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
//# sourceMappingURL=index.js.map
|