@salesforce/b2c-cli 1.3.0 → 1.3.2

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.
Files changed (2) hide show
  1. package/oclif.manifest.json +1647 -1647
  2. package/package.json +2 -2
@@ -915,7 +915,7 @@
915
915
  "description": "Inclusive end date (YYYY-MM-DD)",
916
916
  "helpGroup": "QUERY",
917
917
  "name": "to",
918
- "default": "2026-04-13",
918
+ "default": "2026-04-14",
919
919
  "hasDynamicHelp": false,
920
920
  "multiple": false,
921
921
  "type": "option"
@@ -1211,7 +1211,7 @@
1211
1211
  "description": "Inclusive end date (YYYY-MM-DD)",
1212
1212
  "helpGroup": "QUERY",
1213
1213
  "name": "to",
1214
- "default": "2026-04-13",
1214
+ "default": "2026-04-14",
1215
1215
  "hasDynamicHelp": false,
1216
1216
  "multiple": false,
1217
1217
  "type": "option"
@@ -1642,7 +1642,7 @@
1642
1642
  "description": "Inclusive end date (YYYY-MM-DD)",
1643
1643
  "helpGroup": "QUERY",
1644
1644
  "name": "to",
1645
- "default": "2026-04-13",
1645
+ "default": "2026-04-14",
1646
1646
  "hasDynamicHelp": false,
1647
1647
  "multiple": false,
1648
1648
  "type": "option"
@@ -3433,323 +3433,6 @@
3433
3433
  "watch.js"
3434
3434
  ]
3435
3435
  },
3436
- "debug": {
3437
- "aliases": [],
3438
- "args": {},
3439
- "description": "Start a DAP debug adapter for B2C Commerce script debugging",
3440
- "examples": [
3441
- "<%= config.bin %> <%= command.id %>",
3442
- "<%= config.bin %> <%= command.id %> --cartridge-path ./cartridges",
3443
- "<%= config.bin %> <%= command.id %> --client-id my-debugger"
3444
- ],
3445
- "flags": {
3446
- "log-level": {
3447
- "description": "Set logging verbosity level",
3448
- "env": "SFCC_LOG_LEVEL",
3449
- "helpGroup": "GLOBAL",
3450
- "name": "log-level",
3451
- "hasDynamicHelp": false,
3452
- "multiple": false,
3453
- "options": [
3454
- "trace",
3455
- "debug",
3456
- "info",
3457
- "warn",
3458
- "error",
3459
- "silent"
3460
- ],
3461
- "type": "option"
3462
- },
3463
- "debug": {
3464
- "char": "D",
3465
- "description": "Enable debug logging (shorthand for --log-level debug)",
3466
- "env": "SFCC_DEBUG",
3467
- "helpGroup": "GLOBAL",
3468
- "name": "debug",
3469
- "allowNo": false,
3470
- "type": "boolean"
3471
- },
3472
- "json": {
3473
- "description": "Output result as JSON",
3474
- "helpGroup": "GLOBAL",
3475
- "name": "json",
3476
- "allowNo": false,
3477
- "type": "boolean"
3478
- },
3479
- "jsonl": {
3480
- "aliases": [
3481
- "json-logs"
3482
- ],
3483
- "description": "Output log messages as JSON lines",
3484
- "env": "SFCC_JSON_LOGS",
3485
- "helpGroup": "GLOBAL",
3486
- "name": "jsonl",
3487
- "allowNo": false,
3488
- "type": "boolean"
3489
- },
3490
- "lang": {
3491
- "char": "L",
3492
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
3493
- "helpGroup": "GLOBAL",
3494
- "name": "lang",
3495
- "hasDynamicHelp": false,
3496
- "multiple": false,
3497
- "type": "option"
3498
- },
3499
- "config": {
3500
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
3501
- "env": "SFCC_CONFIG",
3502
- "helpGroup": "GLOBAL",
3503
- "name": "config",
3504
- "hasDynamicHelp": false,
3505
- "multiple": false,
3506
- "type": "option"
3507
- },
3508
- "instance": {
3509
- "char": "i",
3510
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
3511
- "env": "SFCC_INSTANCE",
3512
- "helpGroup": "GLOBAL",
3513
- "name": "instance",
3514
- "hasDynamicHelp": false,
3515
- "multiple": false,
3516
- "type": "option"
3517
- },
3518
- "project-directory": {
3519
- "aliases": [
3520
- "working-directory"
3521
- ],
3522
- "description": "Project directory",
3523
- "env": "SFCC_PROJECT_DIRECTORY",
3524
- "helpGroup": "GLOBAL",
3525
- "name": "project-directory",
3526
- "hasDynamicHelp": false,
3527
- "multiple": false,
3528
- "type": "option"
3529
- },
3530
- "extra-query": {
3531
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
3532
- "env": "SFCC_EXTRA_QUERY",
3533
- "helpGroup": "GLOBAL",
3534
- "hidden": true,
3535
- "name": "extra-query",
3536
- "hasDynamicHelp": false,
3537
- "multiple": false,
3538
- "type": "option"
3539
- },
3540
- "extra-body": {
3541
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
3542
- "env": "SFCC_EXTRA_BODY",
3543
- "helpGroup": "GLOBAL",
3544
- "hidden": true,
3545
- "name": "extra-body",
3546
- "hasDynamicHelp": false,
3547
- "multiple": false,
3548
- "type": "option"
3549
- },
3550
- "extra-headers": {
3551
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
3552
- "env": "SFCC_EXTRA_HEADERS",
3553
- "helpGroup": "GLOBAL",
3554
- "hidden": true,
3555
- "name": "extra-headers",
3556
- "hasDynamicHelp": false,
3557
- "multiple": false,
3558
- "type": "option"
3559
- },
3560
- "client-id": {
3561
- "description": "Client ID for the debugger API",
3562
- "name": "client-id",
3563
- "default": "b2c-cli",
3564
- "hasDynamicHelp": false,
3565
- "multiple": false,
3566
- "type": "option"
3567
- },
3568
- "client-secret": {
3569
- "description": "Client Secret for OAuth",
3570
- "env": "SFCC_CLIENT_SECRET",
3571
- "helpGroup": "AUTH",
3572
- "name": "client-secret",
3573
- "hasDynamicHelp": false,
3574
- "multiple": false,
3575
- "type": "option"
3576
- },
3577
- "auth-scope": {
3578
- "description": "OAuth scopes to request (comma-separated)",
3579
- "env": "SFCC_OAUTH_SCOPES",
3580
- "helpGroup": "AUTH",
3581
- "name": "auth-scope",
3582
- "delimiter": ",",
3583
- "hasDynamicHelp": false,
3584
- "multiple": true,
3585
- "type": "option"
3586
- },
3587
- "short-code": {
3588
- "description": "SCAPI short code",
3589
- "env": "SFCC_SHORTCODE",
3590
- "helpGroup": "AUTH",
3591
- "name": "short-code",
3592
- "hasDynamicHelp": false,
3593
- "multiple": false,
3594
- "type": "option"
3595
- },
3596
- "tenant-id": {
3597
- "aliases": [
3598
- "tenant"
3599
- ],
3600
- "description": "Organization/tenant ID",
3601
- "env": "SFCC_TENANT_ID",
3602
- "helpGroup": "AUTH",
3603
- "name": "tenant-id",
3604
- "hasDynamicHelp": false,
3605
- "multiple": false,
3606
- "type": "option"
3607
- },
3608
- "auth-methods": {
3609
- "description": "Allowed auth methods in priority order (comma-separated)",
3610
- "env": "SFCC_AUTH_METHODS",
3611
- "exclusive": [
3612
- "user-auth"
3613
- ],
3614
- "helpGroup": "AUTH",
3615
- "name": "auth-methods",
3616
- "delimiter": ",",
3617
- "hasDynamicHelp": false,
3618
- "multiple": true,
3619
- "options": [
3620
- "client-credentials",
3621
- "implicit",
3622
- "basic",
3623
- "api-key"
3624
- ],
3625
- "type": "option"
3626
- },
3627
- "user-auth": {
3628
- "description": "Use browser-based user authentication (implicit OAuth flow)",
3629
- "exclusive": [
3630
- "auth-methods"
3631
- ],
3632
- "helpGroup": "AUTH",
3633
- "name": "user-auth",
3634
- "allowNo": false,
3635
- "type": "boolean"
3636
- },
3637
- "account-manager-host": {
3638
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
3639
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
3640
- "helpGroup": "AUTH",
3641
- "name": "account-manager-host",
3642
- "hasDynamicHelp": false,
3643
- "multiple": false,
3644
- "type": "option"
3645
- },
3646
- "server": {
3647
- "char": "s",
3648
- "description": "B2C instance hostname",
3649
- "env": "SFCC_SERVER",
3650
- "helpGroup": "INSTANCE",
3651
- "name": "server",
3652
- "hasDynamicHelp": false,
3653
- "multiple": false,
3654
- "type": "option"
3655
- },
3656
- "webdav-server": {
3657
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
3658
- "env": "SFCC_WEBDAV_SERVER",
3659
- "helpGroup": "INSTANCE",
3660
- "name": "webdav-server",
3661
- "hasDynamicHelp": false,
3662
- "multiple": false,
3663
- "type": "option"
3664
- },
3665
- "code-version": {
3666
- "char": "v",
3667
- "description": "Code version",
3668
- "env": "SFCC_CODE_VERSION",
3669
- "helpGroup": "INSTANCE",
3670
- "name": "code-version",
3671
- "hasDynamicHelp": false,
3672
- "multiple": false,
3673
- "type": "option"
3674
- },
3675
- "username": {
3676
- "char": "u",
3677
- "description": "Username for Basic Auth (WebDAV)",
3678
- "env": "SFCC_USERNAME",
3679
- "helpGroup": "AUTH",
3680
- "name": "username",
3681
- "hasDynamicHelp": false,
3682
- "multiple": false,
3683
- "type": "option"
3684
- },
3685
- "password": {
3686
- "char": "p",
3687
- "description": "Password/access key for Basic Auth (WebDAV)",
3688
- "env": "SFCC_PASSWORD",
3689
- "helpGroup": "AUTH",
3690
- "name": "password",
3691
- "hasDynamicHelp": false,
3692
- "multiple": false,
3693
- "type": "option"
3694
- },
3695
- "certificate": {
3696
- "description": "Path to PKCS12 certificate for two-factor auth",
3697
- "env": "SFCC_CERTIFICATE",
3698
- "helpGroup": "AUTH",
3699
- "name": "certificate",
3700
- "hasDynamicHelp": false,
3701
- "multiple": false,
3702
- "type": "option"
3703
- },
3704
- "passphrase": {
3705
- "description": "Passphrase for the certificate",
3706
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
3707
- "helpGroup": "AUTH",
3708
- "name": "passphrase",
3709
- "hasDynamicHelp": false,
3710
- "multiple": false,
3711
- "type": "option"
3712
- },
3713
- "selfsigned": {
3714
- "description": "Allow self-signed server certificates",
3715
- "env": "SFCC_SELFSIGNED",
3716
- "helpGroup": "AUTH",
3717
- "name": "selfsigned",
3718
- "allowNo": false,
3719
- "type": "boolean"
3720
- },
3721
- "verify": {
3722
- "description": "Verify SSL certificates",
3723
- "helpGroup": "AUTH",
3724
- "name": "verify",
3725
- "allowNo": true,
3726
- "type": "boolean"
3727
- },
3728
- "cartridge-path": {
3729
- "description": "Path to cartridges directory",
3730
- "name": "cartridge-path",
3731
- "default": ".",
3732
- "hasDynamicHelp": false,
3733
- "multiple": false,
3734
- "type": "option"
3735
- }
3736
- },
3737
- "hasDynamicHelp": false,
3738
- "hiddenAliases": [],
3739
- "id": "debug",
3740
- "pluginAlias": "@salesforce/b2c-cli",
3741
- "pluginName": "@salesforce/b2c-cli",
3742
- "pluginType": "core",
3743
- "strict": true,
3744
- "enableJsonFlag": false,
3745
- "isESM": true,
3746
- "relativePath": [
3747
- "dist",
3748
- "commands",
3749
- "debug",
3750
- "index.js"
3751
- ]
3752
- },
3753
3436
  "content:export": {
3754
3437
  "aliases": [],
3755
3438
  "args": {
@@ -4682,29 +4365,16 @@
4682
4365
  "validate.js"
4683
4366
  ]
4684
4367
  },
4685
- "docs:download": {
4368
+ "debug": {
4686
4369
  "aliases": [],
4687
- "args": {
4688
- "output": {
4689
- "description": "Output directory for extracted documentation",
4690
- "name": "output",
4691
- "required": true
4692
- }
4693
- },
4694
- "description": "Download Script API documentation from a B2C Commerce instance",
4370
+ "args": {},
4371
+ "description": "Start a DAP debug adapter for B2C Commerce script debugging",
4695
4372
  "examples": [
4696
- "<%= config.bin %> <%= command.id %> ./docs",
4697
- "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
4698
- "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
4373
+ "<%= config.bin %> <%= command.id %>",
4374
+ "<%= config.bin %> <%= command.id %> --cartridge-path ./cartridges",
4375
+ "<%= config.bin %> <%= command.id %> --client-id my-debugger"
4699
4376
  ],
4700
4377
  "flags": {
4701
- "json": {
4702
- "description": "Output result as JSON",
4703
- "helpGroup": "GLOBAL",
4704
- "name": "json",
4705
- "allowNo": false,
4706
- "type": "boolean"
4707
- },
4708
4378
  "log-level": {
4709
4379
  "description": "Set logging verbosity level",
4710
4380
  "env": "SFCC_LOG_LEVEL",
@@ -4731,6 +4401,13 @@
4731
4401
  "allowNo": false,
4732
4402
  "type": "boolean"
4733
4403
  },
4404
+ "json": {
4405
+ "description": "Output result as JSON",
4406
+ "helpGroup": "GLOBAL",
4407
+ "name": "json",
4408
+ "allowNo": false,
4409
+ "type": "boolean"
4410
+ },
4734
4411
  "jsonl": {
4735
4412
  "aliases": [
4736
4413
  "json-logs"
@@ -4813,10 +4490,9 @@
4813
4490
  "type": "option"
4814
4491
  },
4815
4492
  "client-id": {
4816
- "description": "Client ID for OAuth",
4817
- "env": "SFCC_CLIENT_ID",
4818
- "helpGroup": "AUTH",
4493
+ "description": "Client ID for the debugger API",
4819
4494
  "name": "client-id",
4495
+ "default": "b2c-cli",
4820
4496
  "hasDynamicHelp": false,
4821
4497
  "multiple": false,
4822
4498
  "type": "option"
@@ -4981,45 +4657,45 @@
4981
4657
  "allowNo": true,
4982
4658
  "type": "boolean"
4983
4659
  },
4984
- "keep-archive": {
4985
- "description": "Keep the downloaded archive file",
4986
- "name": "keep-archive",
4987
- "allowNo": false,
4988
- "type": "boolean"
4660
+ "cartridge-path": {
4661
+ "description": "Path to cartridges directory",
4662
+ "name": "cartridge-path",
4663
+ "default": ".",
4664
+ "hasDynamicHelp": false,
4665
+ "multiple": false,
4666
+ "type": "option"
4989
4667
  }
4990
4668
  },
4991
4669
  "hasDynamicHelp": false,
4992
4670
  "hiddenAliases": [],
4993
- "id": "docs:download",
4671
+ "id": "debug",
4994
4672
  "pluginAlias": "@salesforce/b2c-cli",
4995
4673
  "pluginName": "@salesforce/b2c-cli",
4996
4674
  "pluginType": "core",
4997
4675
  "strict": true,
4998
- "enableJsonFlag": true,
4676
+ "enableJsonFlag": false,
4999
4677
  "isESM": true,
5000
4678
  "relativePath": [
5001
4679
  "dist",
5002
4680
  "commands",
5003
- "docs",
5004
- "download.js"
4681
+ "debug",
4682
+ "index.js"
5005
4683
  ]
5006
4684
  },
5007
- "docs:read": {
4685
+ "docs:download": {
5008
4686
  "aliases": [],
5009
4687
  "args": {
5010
- "query": {
5011
- "description": "Search query for documentation (class name, module path, or partial match)",
5012
- "name": "query",
4688
+ "output": {
4689
+ "description": "Output directory for extracted documentation",
4690
+ "name": "output",
5013
4691
  "required": true
5014
4692
  }
5015
4693
  },
5016
- "description": "Read Script API documentation for a class or module",
4694
+ "description": "Download Script API documentation from a B2C Commerce instance",
5017
4695
  "examples": [
5018
- "<%= config.bin %> <%= command.id %> ProductMgr",
5019
- "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
5020
- "<%= config.bin %> <%= command.id %> \"dw system Status\"",
5021
- "<%= config.bin %> <%= command.id %> ProductMgr --raw",
5022
- "<%= config.bin %> <%= command.id %> ProductMgr --json"
4696
+ "<%= config.bin %> <%= command.id %> ./docs",
4697
+ "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
4698
+ "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
5023
4699
  ],
5024
4700
  "flags": {
5025
4701
  "json": {
@@ -5136,17 +4812,185 @@
5136
4812
  "multiple": false,
5137
4813
  "type": "option"
5138
4814
  },
5139
- "raw": {
5140
- "char": "r",
5141
- "description": "Output raw markdown without terminal formatting",
5142
- "name": "raw",
4815
+ "client-id": {
4816
+ "description": "Client ID for OAuth",
4817
+ "env": "SFCC_CLIENT_ID",
4818
+ "helpGroup": "AUTH",
4819
+ "name": "client-id",
4820
+ "hasDynamicHelp": false,
4821
+ "multiple": false,
4822
+ "type": "option"
4823
+ },
4824
+ "client-secret": {
4825
+ "description": "Client Secret for OAuth",
4826
+ "env": "SFCC_CLIENT_SECRET",
4827
+ "helpGroup": "AUTH",
4828
+ "name": "client-secret",
4829
+ "hasDynamicHelp": false,
4830
+ "multiple": false,
4831
+ "type": "option"
4832
+ },
4833
+ "auth-scope": {
4834
+ "description": "OAuth scopes to request (comma-separated)",
4835
+ "env": "SFCC_OAUTH_SCOPES",
4836
+ "helpGroup": "AUTH",
4837
+ "name": "auth-scope",
4838
+ "delimiter": ",",
4839
+ "hasDynamicHelp": false,
4840
+ "multiple": true,
4841
+ "type": "option"
4842
+ },
4843
+ "short-code": {
4844
+ "description": "SCAPI short code",
4845
+ "env": "SFCC_SHORTCODE",
4846
+ "helpGroup": "AUTH",
4847
+ "name": "short-code",
4848
+ "hasDynamicHelp": false,
4849
+ "multiple": false,
4850
+ "type": "option"
4851
+ },
4852
+ "tenant-id": {
4853
+ "aliases": [
4854
+ "tenant"
4855
+ ],
4856
+ "description": "Organization/tenant ID",
4857
+ "env": "SFCC_TENANT_ID",
4858
+ "helpGroup": "AUTH",
4859
+ "name": "tenant-id",
4860
+ "hasDynamicHelp": false,
4861
+ "multiple": false,
4862
+ "type": "option"
4863
+ },
4864
+ "auth-methods": {
4865
+ "description": "Allowed auth methods in priority order (comma-separated)",
4866
+ "env": "SFCC_AUTH_METHODS",
4867
+ "exclusive": [
4868
+ "user-auth"
4869
+ ],
4870
+ "helpGroup": "AUTH",
4871
+ "name": "auth-methods",
4872
+ "delimiter": ",",
4873
+ "hasDynamicHelp": false,
4874
+ "multiple": true,
4875
+ "options": [
4876
+ "client-credentials",
4877
+ "implicit",
4878
+ "basic",
4879
+ "api-key"
4880
+ ],
4881
+ "type": "option"
4882
+ },
4883
+ "user-auth": {
4884
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
4885
+ "exclusive": [
4886
+ "auth-methods"
4887
+ ],
4888
+ "helpGroup": "AUTH",
4889
+ "name": "user-auth",
4890
+ "allowNo": false,
4891
+ "type": "boolean"
4892
+ },
4893
+ "account-manager-host": {
4894
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
4895
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
4896
+ "helpGroup": "AUTH",
4897
+ "name": "account-manager-host",
4898
+ "hasDynamicHelp": false,
4899
+ "multiple": false,
4900
+ "type": "option"
4901
+ },
4902
+ "server": {
4903
+ "char": "s",
4904
+ "description": "B2C instance hostname",
4905
+ "env": "SFCC_SERVER",
4906
+ "helpGroup": "INSTANCE",
4907
+ "name": "server",
4908
+ "hasDynamicHelp": false,
4909
+ "multiple": false,
4910
+ "type": "option"
4911
+ },
4912
+ "webdav-server": {
4913
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
4914
+ "env": "SFCC_WEBDAV_SERVER",
4915
+ "helpGroup": "INSTANCE",
4916
+ "name": "webdav-server",
4917
+ "hasDynamicHelp": false,
4918
+ "multiple": false,
4919
+ "type": "option"
4920
+ },
4921
+ "code-version": {
4922
+ "char": "v",
4923
+ "description": "Code version",
4924
+ "env": "SFCC_CODE_VERSION",
4925
+ "helpGroup": "INSTANCE",
4926
+ "name": "code-version",
4927
+ "hasDynamicHelp": false,
4928
+ "multiple": false,
4929
+ "type": "option"
4930
+ },
4931
+ "username": {
4932
+ "char": "u",
4933
+ "description": "Username for Basic Auth (WebDAV)",
4934
+ "env": "SFCC_USERNAME",
4935
+ "helpGroup": "AUTH",
4936
+ "name": "username",
4937
+ "hasDynamicHelp": false,
4938
+ "multiple": false,
4939
+ "type": "option"
4940
+ },
4941
+ "password": {
4942
+ "char": "p",
4943
+ "description": "Password/access key for Basic Auth (WebDAV)",
4944
+ "env": "SFCC_PASSWORD",
4945
+ "helpGroup": "AUTH",
4946
+ "name": "password",
4947
+ "hasDynamicHelp": false,
4948
+ "multiple": false,
4949
+ "type": "option"
4950
+ },
4951
+ "certificate": {
4952
+ "description": "Path to PKCS12 certificate for two-factor auth",
4953
+ "env": "SFCC_CERTIFICATE",
4954
+ "helpGroup": "AUTH",
4955
+ "name": "certificate",
4956
+ "hasDynamicHelp": false,
4957
+ "multiple": false,
4958
+ "type": "option"
4959
+ },
4960
+ "passphrase": {
4961
+ "description": "Passphrase for the certificate",
4962
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
4963
+ "helpGroup": "AUTH",
4964
+ "name": "passphrase",
4965
+ "hasDynamicHelp": false,
4966
+ "multiple": false,
4967
+ "type": "option"
4968
+ },
4969
+ "selfsigned": {
4970
+ "description": "Allow self-signed server certificates",
4971
+ "env": "SFCC_SELFSIGNED",
4972
+ "helpGroup": "AUTH",
4973
+ "name": "selfsigned",
4974
+ "allowNo": false,
4975
+ "type": "boolean"
4976
+ },
4977
+ "verify": {
4978
+ "description": "Verify SSL certificates",
4979
+ "helpGroup": "AUTH",
4980
+ "name": "verify",
4981
+ "allowNo": true,
4982
+ "type": "boolean"
4983
+ },
4984
+ "keep-archive": {
4985
+ "description": "Keep the downloaded archive file",
4986
+ "name": "keep-archive",
5143
4987
  "allowNo": false,
5144
4988
  "type": "boolean"
5145
4989
  }
5146
4990
  },
5147
4991
  "hasDynamicHelp": false,
5148
4992
  "hiddenAliases": [],
5149
- "id": "docs:read",
4993
+ "id": "docs:download",
5150
4994
  "pluginAlias": "@salesforce/b2c-cli",
5151
4995
  "pluginName": "@salesforce/b2c-cli",
5152
4996
  "pluginType": "core",
@@ -5157,25 +5001,181 @@
5157
5001
  "dist",
5158
5002
  "commands",
5159
5003
  "docs",
5160
- "read.js"
5004
+ "download.js"
5161
5005
  ]
5162
5006
  },
5163
- "docs:schema": {
5007
+ "docs:read": {
5164
5008
  "aliases": [],
5165
5009
  "args": {
5166
5010
  "query": {
5167
- "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
5011
+ "description": "Search query for documentation (class name, module path, or partial match)",
5168
5012
  "name": "query",
5169
- "required": false
5013
+ "required": true
5170
5014
  }
5171
5015
  },
5172
- "description": "Read an XSD schema file",
5016
+ "description": "Read Script API documentation for a class or module",
5173
5017
  "examples": [
5174
- "<%= config.bin %> <%= command.id %> catalog",
5175
- "<%= config.bin %> <%= command.id %> order",
5176
- "<%= config.bin %> <%= command.id %> --list",
5177
- "<%= config.bin %> <%= command.id %> catalog --json",
5178
- "xmllint --schema \"$(<%= config.bin %> <%= command.id %> catalog --path)\" file.xml --noout"
5018
+ "<%= config.bin %> <%= command.id %> ProductMgr",
5019
+ "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
5020
+ "<%= config.bin %> <%= command.id %> \"dw system Status\"",
5021
+ "<%= config.bin %> <%= command.id %> ProductMgr --raw",
5022
+ "<%= config.bin %> <%= command.id %> ProductMgr --json"
5023
+ ],
5024
+ "flags": {
5025
+ "json": {
5026
+ "description": "Output result as JSON",
5027
+ "helpGroup": "GLOBAL",
5028
+ "name": "json",
5029
+ "allowNo": false,
5030
+ "type": "boolean"
5031
+ },
5032
+ "log-level": {
5033
+ "description": "Set logging verbosity level",
5034
+ "env": "SFCC_LOG_LEVEL",
5035
+ "helpGroup": "GLOBAL",
5036
+ "name": "log-level",
5037
+ "hasDynamicHelp": false,
5038
+ "multiple": false,
5039
+ "options": [
5040
+ "trace",
5041
+ "debug",
5042
+ "info",
5043
+ "warn",
5044
+ "error",
5045
+ "silent"
5046
+ ],
5047
+ "type": "option"
5048
+ },
5049
+ "debug": {
5050
+ "char": "D",
5051
+ "description": "Enable debug logging (shorthand for --log-level debug)",
5052
+ "env": "SFCC_DEBUG",
5053
+ "helpGroup": "GLOBAL",
5054
+ "name": "debug",
5055
+ "allowNo": false,
5056
+ "type": "boolean"
5057
+ },
5058
+ "jsonl": {
5059
+ "aliases": [
5060
+ "json-logs"
5061
+ ],
5062
+ "description": "Output log messages as JSON lines",
5063
+ "env": "SFCC_JSON_LOGS",
5064
+ "helpGroup": "GLOBAL",
5065
+ "name": "jsonl",
5066
+ "allowNo": false,
5067
+ "type": "boolean"
5068
+ },
5069
+ "lang": {
5070
+ "char": "L",
5071
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
5072
+ "helpGroup": "GLOBAL",
5073
+ "name": "lang",
5074
+ "hasDynamicHelp": false,
5075
+ "multiple": false,
5076
+ "type": "option"
5077
+ },
5078
+ "config": {
5079
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
5080
+ "env": "SFCC_CONFIG",
5081
+ "helpGroup": "GLOBAL",
5082
+ "name": "config",
5083
+ "hasDynamicHelp": false,
5084
+ "multiple": false,
5085
+ "type": "option"
5086
+ },
5087
+ "instance": {
5088
+ "char": "i",
5089
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
5090
+ "env": "SFCC_INSTANCE",
5091
+ "helpGroup": "GLOBAL",
5092
+ "name": "instance",
5093
+ "hasDynamicHelp": false,
5094
+ "multiple": false,
5095
+ "type": "option"
5096
+ },
5097
+ "project-directory": {
5098
+ "aliases": [
5099
+ "working-directory"
5100
+ ],
5101
+ "description": "Project directory",
5102
+ "env": "SFCC_PROJECT_DIRECTORY",
5103
+ "helpGroup": "GLOBAL",
5104
+ "name": "project-directory",
5105
+ "hasDynamicHelp": false,
5106
+ "multiple": false,
5107
+ "type": "option"
5108
+ },
5109
+ "extra-query": {
5110
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
5111
+ "env": "SFCC_EXTRA_QUERY",
5112
+ "helpGroup": "GLOBAL",
5113
+ "hidden": true,
5114
+ "name": "extra-query",
5115
+ "hasDynamicHelp": false,
5116
+ "multiple": false,
5117
+ "type": "option"
5118
+ },
5119
+ "extra-body": {
5120
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
5121
+ "env": "SFCC_EXTRA_BODY",
5122
+ "helpGroup": "GLOBAL",
5123
+ "hidden": true,
5124
+ "name": "extra-body",
5125
+ "hasDynamicHelp": false,
5126
+ "multiple": false,
5127
+ "type": "option"
5128
+ },
5129
+ "extra-headers": {
5130
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
5131
+ "env": "SFCC_EXTRA_HEADERS",
5132
+ "helpGroup": "GLOBAL",
5133
+ "hidden": true,
5134
+ "name": "extra-headers",
5135
+ "hasDynamicHelp": false,
5136
+ "multiple": false,
5137
+ "type": "option"
5138
+ },
5139
+ "raw": {
5140
+ "char": "r",
5141
+ "description": "Output raw markdown without terminal formatting",
5142
+ "name": "raw",
5143
+ "allowNo": false,
5144
+ "type": "boolean"
5145
+ }
5146
+ },
5147
+ "hasDynamicHelp": false,
5148
+ "hiddenAliases": [],
5149
+ "id": "docs:read",
5150
+ "pluginAlias": "@salesforce/b2c-cli",
5151
+ "pluginName": "@salesforce/b2c-cli",
5152
+ "pluginType": "core",
5153
+ "strict": true,
5154
+ "enableJsonFlag": true,
5155
+ "isESM": true,
5156
+ "relativePath": [
5157
+ "dist",
5158
+ "commands",
5159
+ "docs",
5160
+ "read.js"
5161
+ ]
5162
+ },
5163
+ "docs:schema": {
5164
+ "aliases": [],
5165
+ "args": {
5166
+ "query": {
5167
+ "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
5168
+ "name": "query",
5169
+ "required": false
5170
+ }
5171
+ },
5172
+ "description": "Read an XSD schema file",
5173
+ "examples": [
5174
+ "<%= config.bin %> <%= command.id %> catalog",
5175
+ "<%= config.bin %> <%= command.id %> order",
5176
+ "<%= config.bin %> <%= command.id %> --list",
5177
+ "<%= config.bin %> <%= command.id %> catalog --json",
5178
+ "xmllint --schema \"$(<%= config.bin %> <%= command.id %> catalog --path)\" file.xml --noout"
5179
5179
  ],
5180
5180
  "flags": {
5181
5181
  "json": {
@@ -9169,20 +9169,207 @@
9169
9169
  "tail-logs.js"
9170
9170
  ]
9171
9171
  },
9172
- "sandbox:create": {
9173
- "aliases": [
9174
- "ods:create"
9172
+ "scaffold:generate": {
9173
+ "aliases": [],
9174
+ "args": {
9175
+ "scaffoldId": {
9176
+ "description": "Scaffold ID to generate",
9177
+ "name": "scaffoldId",
9178
+ "required": true
9179
+ }
9180
+ },
9181
+ "description": "Generate files from a scaffold template\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-generate",
9182
+ "examples": [
9183
+ "<%= config.bin %> <%= command.id %> cartridge",
9184
+ "<%= config.bin %> <%= command.id %> cartridge --name app_custom",
9185
+ "<%= config.bin %> <%= command.id %> custom-api --option apiName=my-api --option cartridgeName=app_custom",
9186
+ "<%= config.bin %> <%= command.id %> cartridge --dry-run",
9187
+ "<%= config.bin %> <%= command.id %> cartridge --force",
9188
+ "<%= config.bin %> <%= command.id %> cartridge --output ./src"
9175
9189
  ],
9176
- "args": {},
9177
- "description": "Create a new on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-create",
9190
+ "flags": {
9191
+ "json": {
9192
+ "description": "Output result as JSON",
9193
+ "helpGroup": "GLOBAL",
9194
+ "name": "json",
9195
+ "allowNo": false,
9196
+ "type": "boolean"
9197
+ },
9198
+ "log-level": {
9199
+ "description": "Set logging verbosity level",
9200
+ "env": "SFCC_LOG_LEVEL",
9201
+ "helpGroup": "GLOBAL",
9202
+ "name": "log-level",
9203
+ "hasDynamicHelp": false,
9204
+ "multiple": false,
9205
+ "options": [
9206
+ "trace",
9207
+ "debug",
9208
+ "info",
9209
+ "warn",
9210
+ "error",
9211
+ "silent"
9212
+ ],
9213
+ "type": "option"
9214
+ },
9215
+ "debug": {
9216
+ "char": "D",
9217
+ "description": "Enable debug logging (shorthand for --log-level debug)",
9218
+ "env": "SFCC_DEBUG",
9219
+ "helpGroup": "GLOBAL",
9220
+ "name": "debug",
9221
+ "allowNo": false,
9222
+ "type": "boolean"
9223
+ },
9224
+ "jsonl": {
9225
+ "aliases": [
9226
+ "json-logs"
9227
+ ],
9228
+ "description": "Output log messages as JSON lines",
9229
+ "env": "SFCC_JSON_LOGS",
9230
+ "helpGroup": "GLOBAL",
9231
+ "name": "jsonl",
9232
+ "allowNo": false,
9233
+ "type": "boolean"
9234
+ },
9235
+ "lang": {
9236
+ "char": "L",
9237
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
9238
+ "helpGroup": "GLOBAL",
9239
+ "name": "lang",
9240
+ "hasDynamicHelp": false,
9241
+ "multiple": false,
9242
+ "type": "option"
9243
+ },
9244
+ "config": {
9245
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
9246
+ "env": "SFCC_CONFIG",
9247
+ "helpGroup": "GLOBAL",
9248
+ "name": "config",
9249
+ "hasDynamicHelp": false,
9250
+ "multiple": false,
9251
+ "type": "option"
9252
+ },
9253
+ "instance": {
9254
+ "char": "i",
9255
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
9256
+ "env": "SFCC_INSTANCE",
9257
+ "helpGroup": "GLOBAL",
9258
+ "name": "instance",
9259
+ "hasDynamicHelp": false,
9260
+ "multiple": false,
9261
+ "type": "option"
9262
+ },
9263
+ "project-directory": {
9264
+ "aliases": [
9265
+ "working-directory"
9266
+ ],
9267
+ "description": "Project directory",
9268
+ "env": "SFCC_PROJECT_DIRECTORY",
9269
+ "helpGroup": "GLOBAL",
9270
+ "name": "project-directory",
9271
+ "hasDynamicHelp": false,
9272
+ "multiple": false,
9273
+ "type": "option"
9274
+ },
9275
+ "extra-query": {
9276
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
9277
+ "env": "SFCC_EXTRA_QUERY",
9278
+ "helpGroup": "GLOBAL",
9279
+ "hidden": true,
9280
+ "name": "extra-query",
9281
+ "hasDynamicHelp": false,
9282
+ "multiple": false,
9283
+ "type": "option"
9284
+ },
9285
+ "extra-body": {
9286
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
9287
+ "env": "SFCC_EXTRA_BODY",
9288
+ "helpGroup": "GLOBAL",
9289
+ "hidden": true,
9290
+ "name": "extra-body",
9291
+ "hasDynamicHelp": false,
9292
+ "multiple": false,
9293
+ "type": "option"
9294
+ },
9295
+ "extra-headers": {
9296
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
9297
+ "env": "SFCC_EXTRA_HEADERS",
9298
+ "helpGroup": "GLOBAL",
9299
+ "hidden": true,
9300
+ "name": "extra-headers",
9301
+ "hasDynamicHelp": false,
9302
+ "multiple": false,
9303
+ "type": "option"
9304
+ },
9305
+ "name": {
9306
+ "char": "n",
9307
+ "description": "Primary name parameter (shorthand for --option name=VALUE)",
9308
+ "name": "name",
9309
+ "hasDynamicHelp": false,
9310
+ "multiple": false,
9311
+ "type": "option"
9312
+ },
9313
+ "output": {
9314
+ "char": "o",
9315
+ "description": "Output directory (defaults to scaffold default or current directory)",
9316
+ "name": "output",
9317
+ "hasDynamicHelp": false,
9318
+ "multiple": false,
9319
+ "type": "option"
9320
+ },
9321
+ "option": {
9322
+ "description": "Parameter value in key=value format (can be repeated)",
9323
+ "name": "option",
9324
+ "hasDynamicHelp": false,
9325
+ "multiple": true,
9326
+ "type": "option"
9327
+ },
9328
+ "dry-run": {
9329
+ "description": "Preview files without writing them",
9330
+ "name": "dry-run",
9331
+ "allowNo": false,
9332
+ "type": "boolean"
9333
+ },
9334
+ "force": {
9335
+ "char": "f",
9336
+ "description": "Skip prompts, use defaults, and overwrite existing files",
9337
+ "name": "force",
9338
+ "allowNo": false,
9339
+ "type": "boolean"
9340
+ }
9341
+ },
9342
+ "hasDynamicHelp": false,
9343
+ "hiddenAliases": [],
9344
+ "id": "scaffold:generate",
9345
+ "pluginAlias": "@salesforce/b2c-cli",
9346
+ "pluginName": "@salesforce/b2c-cli",
9347
+ "pluginType": "core",
9348
+ "strict": true,
9349
+ "enableJsonFlag": true,
9350
+ "isESM": true,
9351
+ "relativePath": [
9352
+ "dist",
9353
+ "commands",
9354
+ "scaffold",
9355
+ "generate.js"
9356
+ ]
9357
+ },
9358
+ "scaffold": {
9359
+ "aliases": [],
9360
+ "args": {
9361
+ "scaffoldId": {
9362
+ "description": "Scaffold ID to generate (optional - omit to see available commands)",
9363
+ "name": "scaffoldId",
9364
+ "required": false
9365
+ }
9366
+ },
9367
+ "description": "Work with project scaffolds and templates\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html",
9178
9368
  "examples": [
9179
- "<%= config.bin %> <%= command.id %> --realm abcd",
9180
- "<%= config.bin %> <%= command.id %> --realm abcd --ttl 48",
9181
- "<%= config.bin %> <%= command.id %> --realm abcd --profile large",
9182
- "<%= config.bin %> <%= command.id %> --realm abcd --auto-scheduled",
9183
- "<%= config.bin %> <%= command.id %> --realm abcd --wait",
9184
- "<%= config.bin %> <%= command.id %> --realm abcd --wait --poll-interval 15",
9185
- "<%= config.bin %> <%= command.id %> --realm abcd --json"
9369
+ "<%= config.bin %> scaffold --help",
9370
+ "<%= config.bin %> scaffold list",
9371
+ "<%= config.bin %> scaffold cartridge",
9372
+ "<%= config.bin %> scaffold cartridge --name app_custom"
9186
9373
  ],
9187
9374
  "flags": {
9188
9375
  "json": {
@@ -9299,204 +9486,184 @@
9299
9486
  "multiple": false,
9300
9487
  "type": "option"
9301
9488
  },
9302
- "client-id": {
9303
- "description": "Client ID for OAuth",
9304
- "env": "SFCC_CLIENT_ID",
9305
- "helpGroup": "AUTH",
9306
- "name": "client-id",
9307
- "hasDynamicHelp": false,
9308
- "multiple": false,
9309
- "type": "option"
9310
- },
9311
- "client-secret": {
9312
- "description": "Client Secret for OAuth",
9313
- "env": "SFCC_CLIENT_SECRET",
9314
- "helpGroup": "AUTH",
9315
- "name": "client-secret",
9316
- "hasDynamicHelp": false,
9317
- "multiple": false,
9318
- "type": "option"
9319
- },
9320
- "auth-scope": {
9321
- "description": "OAuth scopes to request (comma-separated)",
9322
- "env": "SFCC_OAUTH_SCOPES",
9323
- "helpGroup": "AUTH",
9324
- "name": "auth-scope",
9325
- "delimiter": ",",
9326
- "hasDynamicHelp": false,
9327
- "multiple": true,
9328
- "type": "option"
9329
- },
9330
- "short-code": {
9331
- "description": "SCAPI short code",
9332
- "env": "SFCC_SHORTCODE",
9333
- "helpGroup": "AUTH",
9334
- "name": "short-code",
9489
+ "name": {
9490
+ "char": "n",
9491
+ "description": "Primary name parameter (shorthand for --option name=VALUE)",
9492
+ "name": "name",
9335
9493
  "hasDynamicHelp": false,
9336
9494
  "multiple": false,
9337
9495
  "type": "option"
9338
9496
  },
9339
- "tenant-id": {
9340
- "aliases": [
9341
- "tenant"
9342
- ],
9343
- "description": "Organization/tenant ID",
9344
- "env": "SFCC_TENANT_ID",
9345
- "helpGroup": "AUTH",
9346
- "name": "tenant-id",
9497
+ "output": {
9498
+ "char": "o",
9499
+ "description": "Output directory (defaults to scaffold default or current directory)",
9500
+ "name": "output",
9347
9501
  "hasDynamicHelp": false,
9348
9502
  "multiple": false,
9349
9503
  "type": "option"
9350
9504
  },
9351
- "auth-methods": {
9352
- "description": "Allowed auth methods in priority order (comma-separated)",
9353
- "env": "SFCC_AUTH_METHODS",
9354
- "exclusive": [
9355
- "user-auth"
9356
- ],
9357
- "helpGroup": "AUTH",
9358
- "name": "auth-methods",
9359
- "delimiter": ",",
9505
+ "option": {
9506
+ "description": "Parameter value in key=value format (can be repeated)",
9507
+ "name": "option",
9360
9508
  "hasDynamicHelp": false,
9361
9509
  "multiple": true,
9362
- "options": [
9363
- "client-credentials",
9364
- "implicit",
9365
- "basic",
9366
- "api-key"
9367
- ],
9368
9510
  "type": "option"
9369
9511
  },
9370
- "user-auth": {
9371
- "description": "Use browser-based user authentication (implicit OAuth flow)",
9372
- "exclusive": [
9373
- "auth-methods"
9374
- ],
9375
- "helpGroup": "AUTH",
9376
- "name": "user-auth",
9512
+ "dry-run": {
9513
+ "description": "Preview files without writing them",
9514
+ "name": "dry-run",
9377
9515
  "allowNo": false,
9378
9516
  "type": "boolean"
9379
9517
  },
9380
- "account-manager-host": {
9381
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
9382
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
9383
- "helpGroup": "AUTH",
9384
- "name": "account-manager-host",
9385
- "hasDynamicHelp": false,
9386
- "multiple": false,
9387
- "type": "option"
9388
- },
9389
- "sandbox-api-host": {
9390
- "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
9391
- "env": "SFCC_SANDBOX_API_HOST",
9392
- "name": "sandbox-api-host",
9393
- "hasDynamicHelp": false,
9394
- "multiple": false,
9395
- "type": "option"
9396
- },
9397
- "realm": {
9398
- "char": "r",
9399
- "description": "Realm ID (four-letter ID)",
9400
- "name": "realm",
9401
- "required": true,
9402
- "hasDynamicHelp": false,
9403
- "multiple": false,
9404
- "type": "option"
9405
- },
9406
- "ttl": {
9407
- "description": "Time to live in hours (0 for infinite)",
9408
- "name": "ttl",
9409
- "default": 24,
9410
- "hasDynamicHelp": false,
9411
- "multiple": false,
9412
- "type": "option"
9518
+ "force": {
9519
+ "char": "f",
9520
+ "description": "Skip prompts, use defaults, and overwrite existing files",
9521
+ "name": "force",
9522
+ "allowNo": false,
9523
+ "type": "boolean"
9524
+ }
9525
+ },
9526
+ "hasDynamicHelp": false,
9527
+ "hiddenAliases": [],
9528
+ "id": "scaffold",
9529
+ "pluginAlias": "@salesforce/b2c-cli",
9530
+ "pluginName": "@salesforce/b2c-cli",
9531
+ "pluginType": "core",
9532
+ "strict": true,
9533
+ "enableJsonFlag": true,
9534
+ "isESM": true,
9535
+ "relativePath": [
9536
+ "dist",
9537
+ "commands",
9538
+ "scaffold",
9539
+ "index.js"
9540
+ ]
9541
+ },
9542
+ "scaffold:info": {
9543
+ "aliases": [],
9544
+ "args": {
9545
+ "scaffoldId": {
9546
+ "description": "Scaffold ID to get info for",
9547
+ "name": "scaffoldId",
9548
+ "required": true
9549
+ }
9550
+ },
9551
+ "description": "Show detailed information about a scaffold\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-info",
9552
+ "examples": [
9553
+ "<%= config.bin %> <%= command.id %> cartridge",
9554
+ "<%= config.bin %> <%= command.id %> custom-api --json"
9555
+ ],
9556
+ "flags": {
9557
+ "json": {
9558
+ "description": "Output result as JSON",
9559
+ "helpGroup": "GLOBAL",
9560
+ "name": "json",
9561
+ "allowNo": false,
9562
+ "type": "boolean"
9413
9563
  },
9414
- "profile": {
9415
- "description": "Resource profile (medium, large, xlarge, xxlarge)",
9416
- "name": "profile",
9417
- "default": "medium",
9564
+ "log-level": {
9565
+ "description": "Set logging verbosity level",
9566
+ "env": "SFCC_LOG_LEVEL",
9567
+ "helpGroup": "GLOBAL",
9568
+ "name": "log-level",
9418
9569
  "hasDynamicHelp": false,
9419
9570
  "multiple": false,
9420
9571
  "options": [
9421
- "medium",
9422
- "large",
9423
- "xlarge",
9424
- "xxlarge"
9572
+ "trace",
9573
+ "debug",
9574
+ "info",
9575
+ "warn",
9576
+ "error",
9577
+ "silent"
9425
9578
  ],
9426
9579
  "type": "option"
9427
9580
  },
9428
- "auto-scheduled": {
9429
- "description": "Enable automatic start/stop scheduling",
9430
- "name": "auto-scheduled",
9581
+ "debug": {
9582
+ "char": "D",
9583
+ "description": "Enable debug logging (shorthand for --log-level debug)",
9584
+ "env": "SFCC_DEBUG",
9585
+ "helpGroup": "GLOBAL",
9586
+ "name": "debug",
9431
9587
  "allowNo": false,
9432
9588
  "type": "boolean"
9433
9589
  },
9434
- "wait": {
9435
- "char": "w",
9436
- "description": "Wait for the sandbox to reach started or failed state before returning",
9437
- "name": "wait",
9590
+ "jsonl": {
9591
+ "aliases": [
9592
+ "json-logs"
9593
+ ],
9594
+ "description": "Output log messages as JSON lines",
9595
+ "env": "SFCC_JSON_LOGS",
9596
+ "helpGroup": "GLOBAL",
9597
+ "name": "jsonl",
9438
9598
  "allowNo": false,
9439
9599
  "type": "boolean"
9440
9600
  },
9441
- "poll-interval": {
9442
- "dependsOn": [
9443
- "wait"
9444
- ],
9445
- "description": "Polling interval in seconds when using --wait",
9446
- "name": "poll-interval",
9447
- "default": 10,
9601
+ "lang": {
9602
+ "char": "L",
9603
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
9604
+ "helpGroup": "GLOBAL",
9605
+ "name": "lang",
9448
9606
  "hasDynamicHelp": false,
9449
9607
  "multiple": false,
9450
9608
  "type": "option"
9451
9609
  },
9452
- "timeout": {
9453
- "dependsOn": [
9454
- "wait"
9455
- ],
9456
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
9457
- "name": "timeout",
9458
- "default": 600,
9610
+ "config": {
9611
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
9612
+ "env": "SFCC_CONFIG",
9613
+ "helpGroup": "GLOBAL",
9614
+ "name": "config",
9459
9615
  "hasDynamicHelp": false,
9460
9616
  "multiple": false,
9461
9617
  "type": "option"
9462
9618
  },
9463
- "set-permissions": {
9464
- "description": "Automatically set OCAPI and WebDAV permissions for the client ID used to create the sandbox",
9465
- "name": "set-permissions",
9466
- "allowNo": true,
9467
- "type": "boolean"
9468
- },
9469
- "permissions-client-id": {
9470
- "description": "Client ID to use for default OCAPI/WebDAV permissions (defaults to auth client ID)",
9471
- "name": "permissions-client-id",
9619
+ "instance": {
9620
+ "char": "i",
9621
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
9622
+ "env": "SFCC_INSTANCE",
9623
+ "helpGroup": "GLOBAL",
9624
+ "name": "instance",
9472
9625
  "hasDynamicHelp": false,
9473
9626
  "multiple": false,
9474
9627
  "type": "option"
9475
9628
  },
9476
- "ocapi-settings": {
9477
- "description": "Custom OCAPI settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"resources\":[...]}]",
9478
- "name": "ocapi-settings",
9629
+ "project-directory": {
9630
+ "aliases": [
9631
+ "working-directory"
9632
+ ],
9633
+ "description": "Project directory",
9634
+ "env": "SFCC_PROJECT_DIRECTORY",
9635
+ "helpGroup": "GLOBAL",
9636
+ "name": "project-directory",
9479
9637
  "hasDynamicHelp": false,
9480
9638
  "multiple": false,
9481
9639
  "type": "option"
9482
9640
  },
9483
- "webdav-settings": {
9484
- "description": "Custom WebDAV settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"permissions\":[...]}]",
9485
- "name": "webdav-settings",
9641
+ "extra-query": {
9642
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
9643
+ "env": "SFCC_EXTRA_QUERY",
9644
+ "helpGroup": "GLOBAL",
9645
+ "hidden": true,
9646
+ "name": "extra-query",
9486
9647
  "hasDynamicHelp": false,
9487
9648
  "multiple": false,
9488
9649
  "type": "option"
9489
9650
  },
9490
- "start-scheduler": {
9491
- "description": "Start schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"08:00:00+03:00\"}",
9492
- "name": "start-scheduler",
9651
+ "extra-body": {
9652
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
9653
+ "env": "SFCC_EXTRA_BODY",
9654
+ "helpGroup": "GLOBAL",
9655
+ "hidden": true,
9656
+ "name": "extra-body",
9493
9657
  "hasDynamicHelp": false,
9494
9658
  "multiple": false,
9495
9659
  "type": "option"
9496
9660
  },
9497
- "stop-scheduler": {
9498
- "description": "Stop schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"19:00:00Z\"}",
9499
- "name": "stop-scheduler",
9661
+ "extra-headers": {
9662
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
9663
+ "env": "SFCC_EXTRA_HEADERS",
9664
+ "helpGroup": "GLOBAL",
9665
+ "hidden": true,
9666
+ "name": "extra-headers",
9500
9667
  "hasDynamicHelp": false,
9501
9668
  "multiple": false,
9502
9669
  "type": "option"
@@ -9504,7 +9671,7 @@
9504
9671
  },
9505
9672
  "hasDynamicHelp": false,
9506
9673
  "hiddenAliases": [],
9507
- "id": "sandbox:create",
9674
+ "id": "scaffold:info",
9508
9675
  "pluginAlias": "@salesforce/b2c-cli",
9509
9676
  "pluginName": "@salesforce/b2c-cli",
9510
9677
  "pluginType": "core",
@@ -9514,28 +9681,34 @@
9514
9681
  "relativePath": [
9515
9682
  "dist",
9516
9683
  "commands",
9517
- "sandbox",
9518
- "create.js"
9684
+ "scaffold",
9685
+ "info.js"
9519
9686
  ]
9520
9687
  },
9521
- "sandbox:delete": {
9522
- "aliases": [
9523
- "ods:delete"
9524
- ],
9688
+ "scaffold:init": {
9689
+ "aliases": [],
9525
9690
  "args": {
9526
- "sandboxId": {
9527
- "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
9528
- "name": "sandboxId",
9529
- "required": true
9691
+ "name": {
9692
+ "description": "Name for the new scaffold (kebab-case)",
9693
+ "name": "name",
9694
+ "required": false
9530
9695
  }
9531
9696
  },
9532
- "description": "Delete an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-delete",
9697
+ "description": "Create a new custom scaffold template\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-init",
9533
9698
  "examples": [
9534
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
9535
- "<%= config.bin %> <%= command.id %> zzzv-123",
9536
- "<%= config.bin %> <%= command.id %> zzzv_123 --force"
9699
+ "<%= config.bin %> <%= command.id %> my-scaffold",
9700
+ "<%= config.bin %> <%= command.id %> my-scaffold --project",
9701
+ "<%= config.bin %> <%= command.id %> my-scaffold --user",
9702
+ "<%= config.bin %> <%= command.id %> --output ./scaffolds/custom"
9537
9703
  ],
9538
9704
  "flags": {
9705
+ "json": {
9706
+ "description": "Output result as JSON",
9707
+ "helpGroup": "GLOBAL",
9708
+ "name": "json",
9709
+ "allowNo": false,
9710
+ "type": "boolean"
9711
+ },
9539
9712
  "log-level": {
9540
9713
  "description": "Set logging verbosity level",
9541
9714
  "env": "SFCC_LOG_LEVEL",
@@ -9562,13 +9735,6 @@
9562
9735
  "allowNo": false,
9563
9736
  "type": "boolean"
9564
9737
  },
9565
- "json": {
9566
- "description": "Output result as JSON",
9567
- "helpGroup": "GLOBAL",
9568
- "name": "json",
9569
- "allowNo": false,
9570
- "type": "boolean"
9571
- },
9572
9738
  "jsonl": {
9573
9739
  "aliases": [
9574
9740
  "json-logs"
@@ -9650,171 +9816,72 @@
9650
9816
  "multiple": false,
9651
9817
  "type": "option"
9652
9818
  },
9653
- "client-id": {
9654
- "description": "Client ID for OAuth",
9655
- "env": "SFCC_CLIENT_ID",
9656
- "helpGroup": "AUTH",
9657
- "name": "client-id",
9658
- "hasDynamicHelp": false,
9659
- "multiple": false,
9660
- "type": "option"
9661
- },
9662
- "client-secret": {
9663
- "description": "Client Secret for OAuth",
9664
- "env": "SFCC_CLIENT_SECRET",
9665
- "helpGroup": "AUTH",
9666
- "name": "client-secret",
9667
- "hasDynamicHelp": false,
9668
- "multiple": false,
9669
- "type": "option"
9670
- },
9671
- "auth-scope": {
9672
- "description": "OAuth scopes to request (comma-separated)",
9673
- "env": "SFCC_OAUTH_SCOPES",
9674
- "helpGroup": "AUTH",
9675
- "name": "auth-scope",
9676
- "delimiter": ",",
9677
- "hasDynamicHelp": false,
9678
- "multiple": true,
9679
- "type": "option"
9680
- },
9681
- "short-code": {
9682
- "description": "SCAPI short code",
9683
- "env": "SFCC_SHORTCODE",
9684
- "helpGroup": "AUTH",
9685
- "name": "short-code",
9686
- "hasDynamicHelp": false,
9687
- "multiple": false,
9688
- "type": "option"
9689
- },
9690
- "tenant-id": {
9691
- "aliases": [
9692
- "tenant"
9693
- ],
9694
- "description": "Organization/tenant ID",
9695
- "env": "SFCC_TENANT_ID",
9696
- "helpGroup": "AUTH",
9697
- "name": "tenant-id",
9698
- "hasDynamicHelp": false,
9699
- "multiple": false,
9700
- "type": "option"
9701
- },
9702
- "auth-methods": {
9703
- "description": "Allowed auth methods in priority order (comma-separated)",
9704
- "env": "SFCC_AUTH_METHODS",
9819
+ "project": {
9820
+ "description": "Create in project scaffolds directory (.b2c/scaffolds/)",
9705
9821
  "exclusive": [
9706
- "user-auth"
9707
- ],
9708
- "helpGroup": "AUTH",
9709
- "name": "auth-methods",
9710
- "delimiter": ",",
9711
- "hasDynamicHelp": false,
9712
- "multiple": true,
9713
- "options": [
9714
- "client-credentials",
9715
- "implicit",
9716
- "basic",
9717
- "api-key"
9822
+ "user",
9823
+ "output"
9718
9824
  ],
9719
- "type": "option"
9825
+ "name": "project",
9826
+ "allowNo": false,
9827
+ "type": "boolean"
9720
9828
  },
9721
- "user-auth": {
9722
- "description": "Use browser-based user authentication (implicit OAuth flow)",
9829
+ "user": {
9830
+ "description": "Create in user scaffolds directory (~/.b2c/scaffolds/)",
9723
9831
  "exclusive": [
9724
- "auth-methods"
9832
+ "project",
9833
+ "output"
9725
9834
  ],
9726
- "helpGroup": "AUTH",
9727
- "name": "user-auth",
9835
+ "name": "user",
9728
9836
  "allowNo": false,
9729
9837
  "type": "boolean"
9730
9838
  },
9731
- "account-manager-host": {
9732
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
9733
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
9734
- "helpGroup": "AUTH",
9735
- "name": "account-manager-host",
9736
- "hasDynamicHelp": false,
9737
- "multiple": false,
9738
- "type": "option"
9739
- },
9740
- "sandbox-api-host": {
9741
- "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
9742
- "env": "SFCC_SANDBOX_API_HOST",
9743
- "name": "sandbox-api-host",
9839
+ "output": {
9840
+ "char": "o",
9841
+ "description": "Custom output directory for the scaffold",
9842
+ "exclusive": [
9843
+ "project",
9844
+ "user"
9845
+ ],
9846
+ "name": "output",
9744
9847
  "hasDynamicHelp": false,
9745
9848
  "multiple": false,
9746
9849
  "type": "option"
9747
9850
  },
9748
9851
  "force": {
9749
9852
  "char": "f",
9750
- "description": "Skip confirmation prompt",
9853
+ "description": "Overwrite existing scaffold if it exists",
9751
9854
  "name": "force",
9752
9855
  "allowNo": false,
9753
9856
  "type": "boolean"
9754
- },
9755
- "wait": {
9756
- "char": "w",
9757
- "description": "Wait for the sandbox to be fully deleted before returning",
9758
- "name": "wait",
9759
- "allowNo": false,
9760
- "type": "boolean"
9761
- },
9762
- "poll-interval": {
9763
- "dependsOn": [
9764
- "wait"
9765
- ],
9766
- "description": "Polling interval in seconds when using --wait",
9767
- "name": "poll-interval",
9768
- "default": 10,
9769
- "hasDynamicHelp": false,
9770
- "multiple": false,
9771
- "type": "option"
9772
- },
9773
- "timeout": {
9774
- "dependsOn": [
9775
- "wait"
9776
- ],
9777
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
9778
- "name": "timeout",
9779
- "default": 600,
9780
- "hasDynamicHelp": false,
9781
- "multiple": false,
9782
- "type": "option"
9783
9857
  }
9784
9858
  },
9785
9859
  "hasDynamicHelp": false,
9786
9860
  "hiddenAliases": [],
9787
- "id": "sandbox:delete",
9861
+ "id": "scaffold:init",
9788
9862
  "pluginAlias": "@salesforce/b2c-cli",
9789
9863
  "pluginName": "@salesforce/b2c-cli",
9790
9864
  "pluginType": "core",
9791
9865
  "strict": true,
9792
- "enableJsonFlag": false,
9866
+ "enableJsonFlag": true,
9793
9867
  "isESM": true,
9794
9868
  "relativePath": [
9795
9869
  "dist",
9796
9870
  "commands",
9797
- "sandbox",
9798
- "delete.js"
9871
+ "scaffold",
9872
+ "init.js"
9799
9873
  ]
9800
9874
  },
9801
- "sandbox:get": {
9802
- "aliases": [
9803
- "ods:get"
9804
- ],
9805
- "args": {
9806
- "sandboxId": {
9807
- "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
9808
- "name": "sandboxId",
9809
- "required": true
9810
- }
9811
- },
9812
- "description": "Get details of a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-get",
9875
+ "scaffold:list": {
9876
+ "aliases": [],
9877
+ "args": {},
9878
+ "description": "List available project scaffolds\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-list",
9813
9879
  "examples": [
9814
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
9815
- "<%= config.bin %> <%= command.id %> zzzv-123",
9816
- "<%= config.bin %> <%= command.id %> zzzv_123 --json",
9817
- "<%= config.bin %> <%= command.id %> zzzv_123 --clone-details"
9880
+ "<%= config.bin %> <%= command.id %>",
9881
+ "<%= config.bin %> <%= command.id %> --category cartridge",
9882
+ "<%= config.bin %> <%= command.id %> --source project",
9883
+ "<%= config.bin %> <%= command.id %> --extended",
9884
+ "<%= config.bin %> <%= command.id %> --json"
9818
9885
  ],
9819
9886
  "flags": {
9820
9887
  "json": {
@@ -9931,111 +9998,46 @@
9931
9998
  "multiple": false,
9932
9999
  "type": "option"
9933
10000
  },
9934
- "client-id": {
9935
- "description": "Client ID for OAuth",
9936
- "env": "SFCC_CLIENT_ID",
9937
- "helpGroup": "AUTH",
9938
- "name": "client-id",
9939
- "hasDynamicHelp": false,
9940
- "multiple": false,
9941
- "type": "option"
9942
- },
9943
- "client-secret": {
9944
- "description": "Client Secret for OAuth",
9945
- "env": "SFCC_CLIENT_SECRET",
9946
- "helpGroup": "AUTH",
9947
- "name": "client-secret",
9948
- "hasDynamicHelp": false,
9949
- "multiple": false,
9950
- "type": "option"
9951
- },
9952
- "auth-scope": {
9953
- "description": "OAuth scopes to request (comma-separated)",
9954
- "env": "SFCC_OAUTH_SCOPES",
9955
- "helpGroup": "AUTH",
9956
- "name": "auth-scope",
9957
- "delimiter": ",",
9958
- "hasDynamicHelp": false,
9959
- "multiple": true,
9960
- "type": "option"
9961
- },
9962
- "short-code": {
9963
- "description": "SCAPI short code",
9964
- "env": "SFCC_SHORTCODE",
9965
- "helpGroup": "AUTH",
9966
- "name": "short-code",
10001
+ "category": {
10002
+ "char": "c",
10003
+ "description": "Filter by category",
10004
+ "name": "category",
9967
10005
  "hasDynamicHelp": false,
9968
10006
  "multiple": false,
9969
10007
  "type": "option"
9970
10008
  },
9971
- "tenant-id": {
9972
- "aliases": [
9973
- "tenant"
9974
- ],
9975
- "description": "Organization/tenant ID",
9976
- "env": "SFCC_TENANT_ID",
9977
- "helpGroup": "AUTH",
9978
- "name": "tenant-id",
10009
+ "source": {
10010
+ "char": "s",
10011
+ "description": "Filter by source (built-in, user, project, plugin)",
10012
+ "name": "source",
9979
10013
  "hasDynamicHelp": false,
9980
10014
  "multiple": false,
9981
- "type": "option"
9982
- },
9983
- "auth-methods": {
9984
- "description": "Allowed auth methods in priority order (comma-separated)",
9985
- "env": "SFCC_AUTH_METHODS",
9986
- "exclusive": [
9987
- "user-auth"
9988
- ],
9989
- "helpGroup": "AUTH",
9990
- "name": "auth-methods",
9991
- "delimiter": ",",
9992
- "hasDynamicHelp": false,
9993
- "multiple": true,
9994
10015
  "options": [
9995
- "client-credentials",
9996
- "implicit",
9997
- "basic",
9998
- "api-key"
9999
- ],
10000
- "type": "option"
10001
- },
10002
- "user-auth": {
10003
- "description": "Use browser-based user authentication (implicit OAuth flow)",
10004
- "exclusive": [
10005
- "auth-methods"
10016
+ "built-in",
10017
+ "user",
10018
+ "project",
10019
+ "plugin"
10006
10020
  ],
10007
- "helpGroup": "AUTH",
10008
- "name": "user-auth",
10009
- "allowNo": false,
10010
- "type": "boolean"
10011
- },
10012
- "account-manager-host": {
10013
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
10014
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
10015
- "helpGroup": "AUTH",
10016
- "name": "account-manager-host",
10017
- "hasDynamicHelp": false,
10018
- "multiple": false,
10019
10021
  "type": "option"
10020
10022
  },
10021
- "sandbox-api-host": {
10022
- "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
10023
- "env": "SFCC_SANDBOX_API_HOST",
10024
- "name": "sandbox-api-host",
10023
+ "columns": {
10024
+ "description": "Columns to display (comma-separated). Available: id, displayName, category, source, description, path",
10025
+ "name": "columns",
10025
10026
  "hasDynamicHelp": false,
10026
10027
  "multiple": false,
10027
10028
  "type": "option"
10028
10029
  },
10029
- "clone-details": {
10030
- "description": "Include detailed clone information if the sandbox was created by cloning",
10031
- "name": "clone-details",
10030
+ "extended": {
10031
+ "char": "x",
10032
+ "description": "Show all columns including extended fields",
10033
+ "name": "extended",
10032
10034
  "allowNo": false,
10033
10035
  "type": "boolean"
10034
10036
  }
10035
10037
  },
10036
10038
  "hasDynamicHelp": false,
10037
10039
  "hiddenAliases": [],
10038
- "id": "sandbox:get",
10040
+ "id": "scaffold:list",
10039
10041
  "pluginAlias": "@salesforce/b2c-cli",
10040
10042
  "pluginName": "@salesforce/b2c-cli",
10041
10043
  "pluginType": "core",
@@ -10045,20 +10047,25 @@
10045
10047
  "relativePath": [
10046
10048
  "dist",
10047
10049
  "commands",
10048
- "sandbox",
10049
- "get.js"
10050
+ "scaffold",
10051
+ "list.js"
10050
10052
  ]
10051
10053
  },
10052
- "sandbox:info": {
10053
- "aliases": [
10054
- "ods:info"
10055
- ],
10056
- "args": {},
10057
- "description": "Display sandbox user and system information\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-info",
10054
+ "scaffold:search": {
10055
+ "aliases": [],
10056
+ "args": {
10057
+ "query": {
10058
+ "description": "Search query (matches name and description)",
10059
+ "name": "query",
10060
+ "required": true
10061
+ }
10062
+ },
10063
+ "description": "Search for scaffolds by name, description, or tags\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-search",
10058
10064
  "examples": [
10059
- "<%= config.bin %> <%= command.id %>",
10060
- "<%= config.bin %> <%= command.id %> --json",
10061
- "<%= config.bin %> <%= command.id %> --host admin.eu01.dx.commercecloud.salesforce.com"
10065
+ "<%= config.bin %> <%= command.id %> controller",
10066
+ "<%= config.bin %> <%= command.id %> api",
10067
+ "<%= config.bin %> <%= command.id %> hook --category cartridge",
10068
+ "<%= config.bin %> <%= command.id %> job --json"
10062
10069
  ],
10063
10070
  "flags": {
10064
10071
  "json": {
@@ -10175,97 +10182,10 @@
10175
10182
  "multiple": false,
10176
10183
  "type": "option"
10177
10184
  },
10178
- "client-id": {
10179
- "description": "Client ID for OAuth",
10180
- "env": "SFCC_CLIENT_ID",
10181
- "helpGroup": "AUTH",
10182
- "name": "client-id",
10183
- "hasDynamicHelp": false,
10184
- "multiple": false,
10185
- "type": "option"
10186
- },
10187
- "client-secret": {
10188
- "description": "Client Secret for OAuth",
10189
- "env": "SFCC_CLIENT_SECRET",
10190
- "helpGroup": "AUTH",
10191
- "name": "client-secret",
10192
- "hasDynamicHelp": false,
10193
- "multiple": false,
10194
- "type": "option"
10195
- },
10196
- "auth-scope": {
10197
- "description": "OAuth scopes to request (comma-separated)",
10198
- "env": "SFCC_OAUTH_SCOPES",
10199
- "helpGroup": "AUTH",
10200
- "name": "auth-scope",
10201
- "delimiter": ",",
10202
- "hasDynamicHelp": false,
10203
- "multiple": true,
10204
- "type": "option"
10205
- },
10206
- "short-code": {
10207
- "description": "SCAPI short code",
10208
- "env": "SFCC_SHORTCODE",
10209
- "helpGroup": "AUTH",
10210
- "name": "short-code",
10211
- "hasDynamicHelp": false,
10212
- "multiple": false,
10213
- "type": "option"
10214
- },
10215
- "tenant-id": {
10216
- "aliases": [
10217
- "tenant"
10218
- ],
10219
- "description": "Organization/tenant ID",
10220
- "env": "SFCC_TENANT_ID",
10221
- "helpGroup": "AUTH",
10222
- "name": "tenant-id",
10223
- "hasDynamicHelp": false,
10224
- "multiple": false,
10225
- "type": "option"
10226
- },
10227
- "auth-methods": {
10228
- "description": "Allowed auth methods in priority order (comma-separated)",
10229
- "env": "SFCC_AUTH_METHODS",
10230
- "exclusive": [
10231
- "user-auth"
10232
- ],
10233
- "helpGroup": "AUTH",
10234
- "name": "auth-methods",
10235
- "delimiter": ",",
10236
- "hasDynamicHelp": false,
10237
- "multiple": true,
10238
- "options": [
10239
- "client-credentials",
10240
- "implicit",
10241
- "basic",
10242
- "api-key"
10243
- ],
10244
- "type": "option"
10245
- },
10246
- "user-auth": {
10247
- "description": "Use browser-based user authentication (implicit OAuth flow)",
10248
- "exclusive": [
10249
- "auth-methods"
10250
- ],
10251
- "helpGroup": "AUTH",
10252
- "name": "user-auth",
10253
- "allowNo": false,
10254
- "type": "boolean"
10255
- },
10256
- "account-manager-host": {
10257
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
10258
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
10259
- "helpGroup": "AUTH",
10260
- "name": "account-manager-host",
10261
- "hasDynamicHelp": false,
10262
- "multiple": false,
10263
- "type": "option"
10264
- },
10265
- "sandbox-api-host": {
10266
- "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
10267
- "env": "SFCC_SANDBOX_API_HOST",
10268
- "name": "sandbox-api-host",
10185
+ "category": {
10186
+ "char": "c",
10187
+ "description": "Filter results by category",
10188
+ "name": "category",
10269
10189
  "hasDynamicHelp": false,
10270
10190
  "multiple": false,
10271
10191
  "type": "option"
@@ -10273,7 +10193,7 @@
10273
10193
  },
10274
10194
  "hasDynamicHelp": false,
10275
10195
  "hiddenAliases": [],
10276
- "id": "sandbox:info",
10196
+ "id": "scaffold:search",
10277
10197
  "pluginAlias": "@salesforce/b2c-cli",
10278
10198
  "pluginName": "@salesforce/b2c-cli",
10279
10199
  "pluginType": "core",
@@ -10283,21 +10203,24 @@
10283
10203
  "relativePath": [
10284
10204
  "dist",
10285
10205
  "commands",
10286
- "sandbox",
10287
- "info.js"
10206
+ "scaffold",
10207
+ "search.js"
10288
10208
  ]
10289
10209
  },
10290
- "sandbox:ips": {
10291
- "aliases": [
10292
- "ods:ips"
10293
- ],
10294
- "args": {},
10295
- "description": "List inbound and outbound IP addresses for ODS sandboxes\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-ips",
10210
+ "scaffold:validate": {
10211
+ "aliases": [],
10212
+ "args": {
10213
+ "path": {
10214
+ "description": "Path to the scaffold directory",
10215
+ "name": "path",
10216
+ "required": true
10217
+ }
10218
+ },
10219
+ "description": "Validate a custom scaffold manifest and templates\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-validate",
10296
10220
  "examples": [
10297
- "<%= config.bin %> <%= command.id %>",
10298
- "<%= config.bin %> <%= command.id %> --json",
10299
- "<%= config.bin %> <%= command.id %> --realm zzzz",
10300
- "<%= config.bin %> <%= command.id %> -r zzzz --json"
10221
+ "<%= config.bin %> <%= command.id %> ./my-scaffold",
10222
+ "<%= config.bin %> <%= command.id %> ~/.b2c/scaffolds/my-scaffold",
10223
+ "<%= config.bin %> <%= command.id %> .b2c/scaffolds/my-scaffold --json"
10301
10224
  ],
10302
10225
  "flags": {
10303
10226
  "json": {
@@ -10414,113 +10337,16 @@
10414
10337
  "multiple": false,
10415
10338
  "type": "option"
10416
10339
  },
10417
- "client-id": {
10418
- "description": "Client ID for OAuth",
10419
- "env": "SFCC_CLIENT_ID",
10420
- "helpGroup": "AUTH",
10421
- "name": "client-id",
10422
- "hasDynamicHelp": false,
10423
- "multiple": false,
10424
- "type": "option"
10425
- },
10426
- "client-secret": {
10427
- "description": "Client Secret for OAuth",
10428
- "env": "SFCC_CLIENT_SECRET",
10429
- "helpGroup": "AUTH",
10430
- "name": "client-secret",
10431
- "hasDynamicHelp": false,
10432
- "multiple": false,
10433
- "type": "option"
10434
- },
10435
- "auth-scope": {
10436
- "description": "OAuth scopes to request (comma-separated)",
10437
- "env": "SFCC_OAUTH_SCOPES",
10438
- "helpGroup": "AUTH",
10439
- "name": "auth-scope",
10440
- "delimiter": ",",
10441
- "hasDynamicHelp": false,
10442
- "multiple": true,
10443
- "type": "option"
10444
- },
10445
- "short-code": {
10446
- "description": "SCAPI short code",
10447
- "env": "SFCC_SHORTCODE",
10448
- "helpGroup": "AUTH",
10449
- "name": "short-code",
10450
- "hasDynamicHelp": false,
10451
- "multiple": false,
10452
- "type": "option"
10453
- },
10454
- "tenant-id": {
10455
- "aliases": [
10456
- "tenant"
10457
- ],
10458
- "description": "Organization/tenant ID",
10459
- "env": "SFCC_TENANT_ID",
10460
- "helpGroup": "AUTH",
10461
- "name": "tenant-id",
10462
- "hasDynamicHelp": false,
10463
- "multiple": false,
10464
- "type": "option"
10465
- },
10466
- "auth-methods": {
10467
- "description": "Allowed auth methods in priority order (comma-separated)",
10468
- "env": "SFCC_AUTH_METHODS",
10469
- "exclusive": [
10470
- "user-auth"
10471
- ],
10472
- "helpGroup": "AUTH",
10473
- "name": "auth-methods",
10474
- "delimiter": ",",
10475
- "hasDynamicHelp": false,
10476
- "multiple": true,
10477
- "options": [
10478
- "client-credentials",
10479
- "implicit",
10480
- "basic",
10481
- "api-key"
10482
- ],
10483
- "type": "option"
10484
- },
10485
- "user-auth": {
10486
- "description": "Use browser-based user authentication (implicit OAuth flow)",
10487
- "exclusive": [
10488
- "auth-methods"
10489
- ],
10490
- "helpGroup": "AUTH",
10491
- "name": "user-auth",
10340
+ "strict": {
10341
+ "description": "Treat warnings as errors",
10342
+ "name": "strict",
10492
10343
  "allowNo": false,
10493
10344
  "type": "boolean"
10494
- },
10495
- "account-manager-host": {
10496
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
10497
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
10498
- "helpGroup": "AUTH",
10499
- "name": "account-manager-host",
10500
- "hasDynamicHelp": false,
10501
- "multiple": false,
10502
- "type": "option"
10503
- },
10504
- "sandbox-api-host": {
10505
- "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
10506
- "env": "SFCC_SANDBOX_API_HOST",
10507
- "name": "sandbox-api-host",
10508
- "hasDynamicHelp": false,
10509
- "multiple": false,
10510
- "type": "option"
10511
- },
10512
- "realm": {
10513
- "char": "r",
10514
- "description": "Realm ID (four-letter ID) to get IP details for",
10515
- "name": "realm",
10516
- "hasDynamicHelp": false,
10517
- "multiple": false,
10518
- "type": "option"
10519
10345
  }
10520
10346
  },
10521
10347
  "hasDynamicHelp": false,
10522
10348
  "hiddenAliases": [],
10523
- "id": "sandbox:ips",
10349
+ "id": "scaffold:validate",
10524
10350
  "pluginAlias": "@salesforce/b2c-cli",
10525
10351
  "pluginName": "@salesforce/b2c-cli",
10526
10352
  "pluginType": "core",
@@ -10530,24 +10356,24 @@
10530
10356
  "relativePath": [
10531
10357
  "dist",
10532
10358
  "commands",
10533
- "sandbox",
10534
- "ips.js"
10359
+ "scaffold",
10360
+ "validate.js"
10535
10361
  ]
10536
10362
  },
10537
- "sandbox:list": {
10363
+ "sandbox:create": {
10538
10364
  "aliases": [
10539
- "ods:list"
10365
+ "ods:create"
10540
10366
  ],
10541
10367
  "args": {},
10542
- "description": "List all on-demand sandboxes\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-list",
10368
+ "description": "Create a new on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-create",
10543
10369
  "examples": [
10544
- "<%= config.bin %> <%= command.id %>",
10545
10370
  "<%= config.bin %> <%= command.id %> --realm abcd",
10546
- "<%= config.bin %> <%= command.id %> --filter-params \"realm=abcd&state=started\"",
10547
- "<%= config.bin %> <%= command.id %> --show-deleted",
10548
- "<%= config.bin %> <%= command.id %> --extended",
10549
- "<%= config.bin %> <%= command.id %> --columns realm,instance,state,hostname",
10550
- "<%= config.bin %> <%= command.id %> --json"
10371
+ "<%= config.bin %> <%= command.id %> --realm abcd --ttl 48",
10372
+ "<%= config.bin %> <%= command.id %> --realm abcd --profile large",
10373
+ "<%= config.bin %> <%= command.id %> --realm abcd --auto-scheduled",
10374
+ "<%= config.bin %> <%= command.id %> --realm abcd --wait",
10375
+ "<%= config.bin %> <%= command.id %> --realm abcd --wait --poll-interval 15",
10376
+ "<%= config.bin %> <%= command.id %> --realm abcd --json"
10551
10377
  ],
10552
10378
  "flags": {
10553
10379
  "json": {
@@ -10761,44 +10587,115 @@
10761
10587
  },
10762
10588
  "realm": {
10763
10589
  "char": "r",
10764
- "description": "Filter by realm ID (four-letter ID)",
10590
+ "description": "Realm ID (four-letter ID)",
10765
10591
  "name": "realm",
10592
+ "required": true,
10766
10593
  "hasDynamicHelp": false,
10767
10594
  "multiple": false,
10768
10595
  "type": "option"
10769
10596
  },
10770
- "filter-params": {
10771
- "description": "Raw filter parameters (e.g., \"realm=abcd&state=started&resourceProfile=medium\")",
10772
- "name": "filter-params",
10597
+ "ttl": {
10598
+ "description": "Time to live in hours (0 for infinite)",
10599
+ "name": "ttl",
10600
+ "default": 24,
10773
10601
  "hasDynamicHelp": false,
10774
10602
  "multiple": false,
10775
10603
  "type": "option"
10776
10604
  },
10777
- "show-deleted": {
10778
- "description": "Include deleted sandboxes in the list",
10779
- "name": "show-deleted",
10605
+ "profile": {
10606
+ "description": "Resource profile (medium, large, xlarge, xxlarge)",
10607
+ "name": "profile",
10608
+ "default": "medium",
10609
+ "hasDynamicHelp": false,
10610
+ "multiple": false,
10611
+ "options": [
10612
+ "medium",
10613
+ "large",
10614
+ "xlarge",
10615
+ "xxlarge"
10616
+ ],
10617
+ "type": "option"
10618
+ },
10619
+ "auto-scheduled": {
10620
+ "description": "Enable automatic start/stop scheduling",
10621
+ "name": "auto-scheduled",
10780
10622
  "allowNo": false,
10781
10623
  "type": "boolean"
10782
10624
  },
10783
- "columns": {
10784
- "char": "c",
10785
- "description": "Columns to display (comma-separated). Available: realm, instance, state, profile, created, eol, id, hostname, createdBy, autoScheduled, isCloned",
10786
- "name": "columns",
10625
+ "wait": {
10626
+ "char": "w",
10627
+ "description": "Wait for the sandbox to reach started or failed state before returning",
10628
+ "name": "wait",
10629
+ "allowNo": false,
10630
+ "type": "boolean"
10631
+ },
10632
+ "poll-interval": {
10633
+ "dependsOn": [
10634
+ "wait"
10635
+ ],
10636
+ "description": "Polling interval in seconds when using --wait",
10637
+ "name": "poll-interval",
10638
+ "default": 10,
10787
10639
  "hasDynamicHelp": false,
10788
10640
  "multiple": false,
10789
10641
  "type": "option"
10790
10642
  },
10791
- "extended": {
10792
- "char": "x",
10793
- "description": "Show all columns including extended fields",
10794
- "name": "extended",
10795
- "allowNo": false,
10643
+ "timeout": {
10644
+ "dependsOn": [
10645
+ "wait"
10646
+ ],
10647
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
10648
+ "name": "timeout",
10649
+ "default": 600,
10650
+ "hasDynamicHelp": false,
10651
+ "multiple": false,
10652
+ "type": "option"
10653
+ },
10654
+ "set-permissions": {
10655
+ "description": "Automatically set OCAPI and WebDAV permissions for the client ID used to create the sandbox",
10656
+ "name": "set-permissions",
10657
+ "allowNo": true,
10796
10658
  "type": "boolean"
10659
+ },
10660
+ "permissions-client-id": {
10661
+ "description": "Client ID to use for default OCAPI/WebDAV permissions (defaults to auth client ID)",
10662
+ "name": "permissions-client-id",
10663
+ "hasDynamicHelp": false,
10664
+ "multiple": false,
10665
+ "type": "option"
10666
+ },
10667
+ "ocapi-settings": {
10668
+ "description": "Custom OCAPI settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"resources\":[...]}]",
10669
+ "name": "ocapi-settings",
10670
+ "hasDynamicHelp": false,
10671
+ "multiple": false,
10672
+ "type": "option"
10673
+ },
10674
+ "webdav-settings": {
10675
+ "description": "Custom WebDAV settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"permissions\":[...]}]",
10676
+ "name": "webdav-settings",
10677
+ "hasDynamicHelp": false,
10678
+ "multiple": false,
10679
+ "type": "option"
10680
+ },
10681
+ "start-scheduler": {
10682
+ "description": "Start schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"08:00:00+03:00\"}",
10683
+ "name": "start-scheduler",
10684
+ "hasDynamicHelp": false,
10685
+ "multiple": false,
10686
+ "type": "option"
10687
+ },
10688
+ "stop-scheduler": {
10689
+ "description": "Stop schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"19:00:00Z\"}",
10690
+ "name": "stop-scheduler",
10691
+ "hasDynamicHelp": false,
10692
+ "multiple": false,
10693
+ "type": "option"
10797
10694
  }
10798
10695
  },
10799
10696
  "hasDynamicHelp": false,
10800
10697
  "hiddenAliases": [],
10801
- "id": "sandbox:list",
10698
+ "id": "sandbox:create",
10802
10699
  "pluginAlias": "@salesforce/b2c-cli",
10803
10700
  "pluginName": "@salesforce/b2c-cli",
10804
10701
  "pluginType": "core",
@@ -10809,12 +10706,12 @@
10809
10706
  "dist",
10810
10707
  "commands",
10811
10708
  "sandbox",
10812
- "list.js"
10709
+ "create.js"
10813
10710
  ]
10814
10711
  },
10815
- "sandbox:reset": {
10712
+ "sandbox:delete": {
10816
10713
  "aliases": [
10817
- "ods:reset"
10714
+ "ods:delete"
10818
10715
  ],
10819
10716
  "args": {
10820
10717
  "sandboxId": {
@@ -10823,21 +10720,13 @@
10823
10720
  "required": true
10824
10721
  }
10825
10722
  },
10826
- "description": "Reset a sandbox to clean state (clears all data and code but preserves configuration)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-reset",
10723
+ "description": "Delete an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-delete",
10827
10724
  "examples": [
10828
10725
  "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
10829
10726
  "<%= config.bin %> <%= command.id %> zzzv-123",
10830
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
10831
- "<%= config.bin %> <%= command.id %> zzzv-123 --force --json"
10727
+ "<%= config.bin %> <%= command.id %> zzzv_123 --force"
10832
10728
  ],
10833
10729
  "flags": {
10834
- "json": {
10835
- "description": "Output result as JSON",
10836
- "helpGroup": "GLOBAL",
10837
- "name": "json",
10838
- "allowNo": false,
10839
- "type": "boolean"
10840
- },
10841
10730
  "log-level": {
10842
10731
  "description": "Set logging verbosity level",
10843
10732
  "env": "SFCC_LOG_LEVEL",
@@ -10864,6 +10753,13 @@
10864
10753
  "allowNo": false,
10865
10754
  "type": "boolean"
10866
10755
  },
10756
+ "json": {
10757
+ "description": "Output result as JSON",
10758
+ "helpGroup": "GLOBAL",
10759
+ "name": "json",
10760
+ "allowNo": false,
10761
+ "type": "boolean"
10762
+ },
10867
10763
  "jsonl": {
10868
10764
  "aliases": [
10869
10765
  "json-logs"
@@ -11040,9 +10936,16 @@
11040
10936
  "multiple": false,
11041
10937
  "type": "option"
11042
10938
  },
10939
+ "force": {
10940
+ "char": "f",
10941
+ "description": "Skip confirmation prompt",
10942
+ "name": "force",
10943
+ "allowNo": false,
10944
+ "type": "boolean"
10945
+ },
11043
10946
  "wait": {
11044
10947
  "char": "w",
11045
- "description": "Wait for the sandbox to reach started state after reset",
10948
+ "description": "Wait for the sandbox to be fully deleted before returning",
11046
10949
  "name": "wait",
11047
10950
  "allowNo": false,
11048
10951
  "type": "boolean"
@@ -11068,34 +10971,27 @@
11068
10971
  "hasDynamicHelp": false,
11069
10972
  "multiple": false,
11070
10973
  "type": "option"
11071
- },
11072
- "force": {
11073
- "char": "f",
11074
- "description": "Skip confirmation prompt",
11075
- "name": "force",
11076
- "allowNo": false,
11077
- "type": "boolean"
11078
10974
  }
11079
10975
  },
11080
10976
  "hasDynamicHelp": false,
11081
10977
  "hiddenAliases": [],
11082
- "id": "sandbox:reset",
10978
+ "id": "sandbox:delete",
11083
10979
  "pluginAlias": "@salesforce/b2c-cli",
11084
10980
  "pluginName": "@salesforce/b2c-cli",
11085
10981
  "pluginType": "core",
11086
10982
  "strict": true,
11087
- "enableJsonFlag": true,
10983
+ "enableJsonFlag": false,
11088
10984
  "isESM": true,
11089
10985
  "relativePath": [
11090
10986
  "dist",
11091
10987
  "commands",
11092
10988
  "sandbox",
11093
- "reset.js"
10989
+ "delete.js"
11094
10990
  ]
11095
10991
  },
11096
- "sandbox:restart": {
10992
+ "sandbox:get": {
11097
10993
  "aliases": [
11098
- "ods:restart"
10994
+ "ods:get"
11099
10995
  ],
11100
10996
  "args": {
11101
10997
  "sandboxId": {
@@ -11104,13 +11000,12 @@
11104
11000
  "required": true
11105
11001
  }
11106
11002
  },
11107
- "description": "Restart an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-restart",
11003
+ "description": "Get details of a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-get",
11108
11004
  "examples": [
11109
11005
  "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
11110
11006
  "<%= config.bin %> <%= command.id %> zzzv-123",
11111
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
11112
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
11113
- "<%= config.bin %> <%= command.id %> zzzv_123 --json"
11007
+ "<%= config.bin %> <%= command.id %> zzzv_123 --json",
11008
+ "<%= config.bin %> <%= command.id %> zzzv_123 --clone-details"
11114
11009
  ],
11115
11010
  "flags": {
11116
11011
  "json": {
@@ -11322,39 +11217,16 @@
11322
11217
  "multiple": false,
11323
11218
  "type": "option"
11324
11219
  },
11325
- "wait": {
11326
- "char": "w",
11327
- "description": "Wait for the sandbox to reach started or failed state before returning",
11328
- "name": "wait",
11220
+ "clone-details": {
11221
+ "description": "Include detailed clone information if the sandbox was created by cloning",
11222
+ "name": "clone-details",
11329
11223
  "allowNo": false,
11330
11224
  "type": "boolean"
11331
- },
11332
- "poll-interval": {
11333
- "dependsOn": [
11334
- "wait"
11335
- ],
11336
- "description": "Polling interval in seconds when using --wait",
11337
- "name": "poll-interval",
11338
- "default": 10,
11339
- "hasDynamicHelp": false,
11340
- "multiple": false,
11341
- "type": "option"
11342
- },
11343
- "timeout": {
11344
- "dependsOn": [
11345
- "wait"
11346
- ],
11347
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
11348
- "name": "timeout",
11349
- "default": 600,
11350
- "hasDynamicHelp": false,
11351
- "multiple": false,
11352
- "type": "option"
11353
11225
  }
11354
11226
  },
11355
11227
  "hasDynamicHelp": false,
11356
11228
  "hiddenAliases": [],
11357
- "id": "sandbox:restart",
11229
+ "id": "sandbox:get",
11358
11230
  "pluginAlias": "@salesforce/b2c-cli",
11359
11231
  "pluginName": "@salesforce/b2c-cli",
11360
11232
  "pluginType": "core",
@@ -11365,24 +11237,19 @@
11365
11237
  "dist",
11366
11238
  "commands",
11367
11239
  "sandbox",
11368
- "restart.js"
11240
+ "get.js"
11369
11241
  ]
11370
11242
  },
11371
- "sandbox:settings": {
11243
+ "sandbox:info": {
11372
11244
  "aliases": [
11373
- "ods:settings"
11245
+ "ods:info"
11374
11246
  ],
11375
- "args": {
11376
- "sandboxId": {
11377
- "description": "Sandbox ID (UUID or realm-instance, e.g., zzzz-001)",
11378
- "name": "sandboxId",
11379
- "required": true
11380
- }
11381
- },
11382
- "description": "Show settings for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-settings",
11247
+ "args": {},
11248
+ "description": "Display sandbox user and system information\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-info",
11383
11249
  "examples": [
11384
- "<%= config.bin %> <%= command.id %> zzzz-001",
11385
- "<%= config.bin %> <%= command.id %> zzzz-001 --json"
11250
+ "<%= config.bin %> <%= command.id %>",
11251
+ "<%= config.bin %> <%= command.id %> --json",
11252
+ "<%= config.bin %> <%= command.id %> --host admin.eu01.dx.commercecloud.salesforce.com"
11386
11253
  ],
11387
11254
  "flags": {
11388
11255
  "json": {
@@ -11597,7 +11464,7 @@
11597
11464
  },
11598
11465
  "hasDynamicHelp": false,
11599
11466
  "hiddenAliases": [],
11600
- "id": "sandbox:settings",
11467
+ "id": "sandbox:info",
11601
11468
  "pluginAlias": "@salesforce/b2c-cli",
11602
11469
  "pluginName": "@salesforce/b2c-cli",
11603
11470
  "pluginType": "core",
@@ -11608,27 +11475,20 @@
11608
11475
  "dist",
11609
11476
  "commands",
11610
11477
  "sandbox",
11611
- "settings.js"
11478
+ "info.js"
11612
11479
  ]
11613
11480
  },
11614
- "sandbox:start": {
11481
+ "sandbox:ips": {
11615
11482
  "aliases": [
11616
- "ods:start"
11483
+ "ods:ips"
11617
11484
  ],
11618
- "args": {
11619
- "sandboxId": {
11620
- "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
11621
- "name": "sandboxId",
11622
- "required": true
11623
- }
11624
- },
11625
- "description": "Start an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-start",
11485
+ "args": {},
11486
+ "description": "List inbound and outbound IP addresses for ODS sandboxes\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-ips",
11626
11487
  "examples": [
11627
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
11628
- "<%= config.bin %> <%= command.id %> zzzv-123",
11629
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
11630
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
11631
- "<%= config.bin %> <%= command.id %> zzzv_123 --json"
11488
+ "<%= config.bin %> <%= command.id %>",
11489
+ "<%= config.bin %> <%= command.id %> --json",
11490
+ "<%= config.bin %> <%= command.id %> --realm zzzz",
11491
+ "<%= config.bin %> <%= command.id %> -r zzzz --json"
11632
11492
  ],
11633
11493
  "flags": {
11634
11494
  "json": {
@@ -11840,31 +11700,10 @@
11840
11700
  "multiple": false,
11841
11701
  "type": "option"
11842
11702
  },
11843
- "wait": {
11844
- "char": "w",
11845
- "description": "Wait for the sandbox to reach started or failed state before returning",
11846
- "name": "wait",
11847
- "allowNo": false,
11848
- "type": "boolean"
11849
- },
11850
- "poll-interval": {
11851
- "dependsOn": [
11852
- "wait"
11853
- ],
11854
- "description": "Polling interval in seconds when using --wait",
11855
- "name": "poll-interval",
11856
- "default": 10,
11857
- "hasDynamicHelp": false,
11858
- "multiple": false,
11859
- "type": "option"
11860
- },
11861
- "timeout": {
11862
- "dependsOn": [
11863
- "wait"
11864
- ],
11865
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
11866
- "name": "timeout",
11867
- "default": 600,
11703
+ "realm": {
11704
+ "char": "r",
11705
+ "description": "Realm ID (four-letter ID) to get IP details for",
11706
+ "name": "realm",
11868
11707
  "hasDynamicHelp": false,
11869
11708
  "multiple": false,
11870
11709
  "type": "option"
@@ -11872,7 +11711,7 @@
11872
11711
  },
11873
11712
  "hasDynamicHelp": false,
11874
11713
  "hiddenAliases": [],
11875
- "id": "sandbox:start",
11714
+ "id": "sandbox:ips",
11876
11715
  "pluginAlias": "@salesforce/b2c-cli",
11877
11716
  "pluginName": "@salesforce/b2c-cli",
11878
11717
  "pluginType": "core",
@@ -11883,27 +11722,23 @@
11883
11722
  "dist",
11884
11723
  "commands",
11885
11724
  "sandbox",
11886
- "start.js"
11725
+ "ips.js"
11887
11726
  ]
11888
11727
  },
11889
- "sandbox:stop": {
11728
+ "sandbox:list": {
11890
11729
  "aliases": [
11891
- "ods:stop"
11730
+ "ods:list"
11892
11731
  ],
11893
- "args": {
11894
- "sandboxId": {
11895
- "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
11896
- "name": "sandboxId",
11897
- "required": true
11898
- }
11899
- },
11900
- "description": "Stop an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-stop",
11732
+ "args": {},
11733
+ "description": "List all on-demand sandboxes\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-list",
11901
11734
  "examples": [
11902
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
11903
- "<%= config.bin %> <%= command.id %> zzzv-123",
11904
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
11905
- "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
11906
- "<%= config.bin %> <%= command.id %> zzzv_123 --json"
11735
+ "<%= config.bin %> <%= command.id %>",
11736
+ "<%= config.bin %> <%= command.id %> --realm abcd",
11737
+ "<%= config.bin %> <%= command.id %> --filter-params \"realm=abcd&state=started\"",
11738
+ "<%= config.bin %> <%= command.id %> --show-deleted",
11739
+ "<%= config.bin %> <%= command.id %> --extended",
11740
+ "<%= config.bin %> <%= command.id %> --columns realm,instance,state,hostname",
11741
+ "<%= config.bin %> <%= command.id %> --json"
11907
11742
  ],
11908
11743
  "flags": {
11909
11744
  "json": {
@@ -12115,39 +11950,46 @@
12115
11950
  "multiple": false,
12116
11951
  "type": "option"
12117
11952
  },
12118
- "wait": {
12119
- "char": "w",
12120
- "description": "Wait for the sandbox to reach stopped or failed state before returning",
12121
- "name": "wait",
12122
- "allowNo": false,
12123
- "type": "boolean"
11953
+ "realm": {
11954
+ "char": "r",
11955
+ "description": "Filter by realm ID (four-letter ID)",
11956
+ "name": "realm",
11957
+ "hasDynamicHelp": false,
11958
+ "multiple": false,
11959
+ "type": "option"
12124
11960
  },
12125
- "poll-interval": {
12126
- "dependsOn": [
12127
- "wait"
12128
- ],
12129
- "description": "Polling interval in seconds when using --wait",
12130
- "name": "poll-interval",
12131
- "default": 10,
11961
+ "filter-params": {
11962
+ "description": "Raw filter parameters (e.g., \"realm=abcd&state=started&resourceProfile=medium\")",
11963
+ "name": "filter-params",
12132
11964
  "hasDynamicHelp": false,
12133
11965
  "multiple": false,
12134
11966
  "type": "option"
12135
11967
  },
12136
- "timeout": {
12137
- "dependsOn": [
12138
- "wait"
12139
- ],
12140
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
12141
- "name": "timeout",
12142
- "default": 600,
11968
+ "show-deleted": {
11969
+ "description": "Include deleted sandboxes in the list",
11970
+ "name": "show-deleted",
11971
+ "allowNo": false,
11972
+ "type": "boolean"
11973
+ },
11974
+ "columns": {
11975
+ "char": "c",
11976
+ "description": "Columns to display (comma-separated). Available: realm, instance, state, profile, created, eol, id, hostname, createdBy, autoScheduled, isCloned",
11977
+ "name": "columns",
12143
11978
  "hasDynamicHelp": false,
12144
11979
  "multiple": false,
12145
11980
  "type": "option"
11981
+ },
11982
+ "extended": {
11983
+ "char": "x",
11984
+ "description": "Show all columns including extended fields",
11985
+ "name": "extended",
11986
+ "allowNo": false,
11987
+ "type": "boolean"
12146
11988
  }
12147
11989
  },
12148
11990
  "hasDynamicHelp": false,
12149
11991
  "hiddenAliases": [],
12150
- "id": "sandbox:stop",
11992
+ "id": "sandbox:list",
12151
11993
  "pluginAlias": "@salesforce/b2c-cli",
12152
11994
  "pluginName": "@salesforce/b2c-cli",
12153
11995
  "pluginType": "core",
@@ -12158,24 +12000,26 @@
12158
12000
  "dist",
12159
12001
  "commands",
12160
12002
  "sandbox",
12161
- "stop.js"
12003
+ "list.js"
12162
12004
  ]
12163
12005
  },
12164
- "sandbox:storage": {
12006
+ "sandbox:reset": {
12165
12007
  "aliases": [
12166
- "ods:storage"
12008
+ "ods:reset"
12167
12009
  ],
12168
12010
  "args": {
12169
12011
  "sandboxId": {
12170
- "description": "Sandbox ID (UUID or realm-instance, e.g., zzzz-001)",
12012
+ "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
12171
12013
  "name": "sandboxId",
12172
12014
  "required": true
12173
12015
  }
12174
12016
  },
12175
- "description": "Show storage details for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-storage",
12017
+ "description": "Reset a sandbox to clean state (clears all data and code but preserves configuration)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-reset",
12176
12018
  "examples": [
12177
- "<%= config.bin %> <%= command.id %> zzzz-001",
12178
- "<%= config.bin %> <%= command.id %> zzzz-001 --json"
12019
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
12020
+ "<%= config.bin %> <%= command.id %> zzzv-123",
12021
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
12022
+ "<%= config.bin %> <%= command.id %> zzzv-123 --force --json"
12179
12023
  ],
12180
12024
  "flags": {
12181
12025
  "json": {
@@ -12386,11 +12230,47 @@
12386
12230
  "hasDynamicHelp": false,
12387
12231
  "multiple": false,
12388
12232
  "type": "option"
12233
+ },
12234
+ "wait": {
12235
+ "char": "w",
12236
+ "description": "Wait for the sandbox to reach started state after reset",
12237
+ "name": "wait",
12238
+ "allowNo": false,
12239
+ "type": "boolean"
12240
+ },
12241
+ "poll-interval": {
12242
+ "dependsOn": [
12243
+ "wait"
12244
+ ],
12245
+ "description": "Polling interval in seconds when using --wait",
12246
+ "name": "poll-interval",
12247
+ "default": 10,
12248
+ "hasDynamicHelp": false,
12249
+ "multiple": false,
12250
+ "type": "option"
12251
+ },
12252
+ "timeout": {
12253
+ "dependsOn": [
12254
+ "wait"
12255
+ ],
12256
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
12257
+ "name": "timeout",
12258
+ "default": 600,
12259
+ "hasDynamicHelp": false,
12260
+ "multiple": false,
12261
+ "type": "option"
12262
+ },
12263
+ "force": {
12264
+ "char": "f",
12265
+ "description": "Skip confirmation prompt",
12266
+ "name": "force",
12267
+ "allowNo": false,
12268
+ "type": "boolean"
12389
12269
  }
12390
12270
  },
12391
12271
  "hasDynamicHelp": false,
12392
12272
  "hiddenAliases": [],
12393
- "id": "sandbox:storage",
12273
+ "id": "sandbox:reset",
12394
12274
  "pluginAlias": "@salesforce/b2c-cli",
12395
12275
  "pluginName": "@salesforce/b2c-cli",
12396
12276
  "pluginType": "core",
@@ -12401,12 +12281,12 @@
12401
12281
  "dist",
12402
12282
  "commands",
12403
12283
  "sandbox",
12404
- "storage.js"
12284
+ "reset.js"
12405
12285
  ]
12406
12286
  },
12407
- "sandbox:update": {
12287
+ "sandbox:restart": {
12408
12288
  "aliases": [
12409
- "ods:update"
12289
+ "ods:restart"
12410
12290
  ],
12411
12291
  "args": {
12412
12292
  "sandboxId": {
@@ -12415,16 +12295,13 @@
12415
12295
  "required": true
12416
12296
  }
12417
12297
  },
12418
- "description": "Update a sandbox (extend TTL, change scheduling, update resource xprofile, tags, or emails)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-update",
12298
+ "description": "Restart an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-restart",
12419
12299
  "examples": [
12420
- "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 48",
12421
- "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 0",
12422
- "<%= config.bin %> <%= command.id %> zzzv-123 --auto-scheduled",
12423
- "<%= config.bin %> <%= command.id %> zzzv-123 --no-auto-scheduled",
12424
- "<%= config.bin %> <%= command.id %> zzzv-123 --resource-profile large",
12425
- "<%= config.bin %> <%= command.id %> zzzv-123 --tags tag1,tag2",
12426
- "<%= config.bin %> <%= command.id %> zzzv-123 --emails user@example.com,dev@example.com",
12427
- "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 48 --resource-profile xlarge --tags ci,nightly --json"
12300
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
12301
+ "<%= config.bin %> <%= command.id %> zzzv-123",
12302
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
12303
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
12304
+ "<%= config.bin %> <%= command.id %> zzzv_123 --json"
12428
12305
  ],
12429
12306
  "flags": {
12430
12307
  "json": {
@@ -12636,42 +12513,31 @@
12636
12513
  "multiple": false,
12637
12514
  "type": "option"
12638
12515
  },
12639
- "ttl": {
12640
- "description": "Number of hours to add to sandbox lifetime (0 or less for infinite)",
12641
- "name": "ttl",
12642
- "hasDynamicHelp": false,
12643
- "multiple": false,
12644
- "type": "option"
12645
- },
12646
- "auto-scheduled": {
12647
- "description": "Enable or disable automatic start/stop scheduling",
12648
- "name": "auto-scheduled",
12649
- "allowNo": true,
12516
+ "wait": {
12517
+ "char": "w",
12518
+ "description": "Wait for the sandbox to reach started or failed state before returning",
12519
+ "name": "wait",
12520
+ "allowNo": false,
12650
12521
  "type": "boolean"
12651
12522
  },
12652
- "resource-profile": {
12653
- "description": "Resource profile (medium, large, xlarge, xxlarge)",
12654
- "name": "resource-profile",
12655
- "hasDynamicHelp": false,
12656
- "multiple": false,
12657
- "options": [
12658
- "medium",
12659
- "large",
12660
- "xlarge",
12661
- "xxlarge"
12523
+ "poll-interval": {
12524
+ "dependsOn": [
12525
+ "wait"
12662
12526
  ],
12663
- "type": "option"
12664
- },
12665
- "tags": {
12666
- "description": "Comma-separated list of tags",
12667
- "name": "tags",
12527
+ "description": "Polling interval in seconds when using --wait",
12528
+ "name": "poll-interval",
12529
+ "default": 10,
12668
12530
  "hasDynamicHelp": false,
12669
12531
  "multiple": false,
12670
12532
  "type": "option"
12671
12533
  },
12672
- "emails": {
12673
- "description": "Comma-separated list of notification email addresses",
12674
- "name": "emails",
12534
+ "timeout": {
12535
+ "dependsOn": [
12536
+ "wait"
12537
+ ],
12538
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
12539
+ "name": "timeout",
12540
+ "default": 600,
12675
12541
  "hasDynamicHelp": false,
12676
12542
  "multiple": false,
12677
12543
  "type": "option"
@@ -12679,7 +12545,7 @@
12679
12545
  },
12680
12546
  "hasDynamicHelp": false,
12681
12547
  "hiddenAliases": [],
12682
- "id": "sandbox:update",
12548
+ "id": "sandbox:restart",
12683
12549
  "pluginAlias": "@salesforce/b2c-cli",
12684
12550
  "pluginName": "@salesforce/b2c-cli",
12685
12551
  "pluginType": "core",
@@ -12690,12 +12556,12 @@
12690
12556
  "dist",
12691
12557
  "commands",
12692
12558
  "sandbox",
12693
- "update.js"
12559
+ "restart.js"
12694
12560
  ]
12695
12561
  },
12696
- "sandbox:usage": {
12562
+ "sandbox:settings": {
12697
12563
  "aliases": [
12698
- "ods:usage"
12564
+ "ods:settings"
12699
12565
  ],
12700
12566
  "args": {
12701
12567
  "sandboxId": {
@@ -12704,11 +12570,10 @@
12704
12570
  "required": true
12705
12571
  }
12706
12572
  },
12707
- "description": "Show usage information for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-usage",
12573
+ "description": "Show settings for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-settings",
12708
12574
  "examples": [
12709
12575
  "<%= config.bin %> <%= command.id %> zzzz-001",
12710
- "<%= config.bin %> <%= command.id %> zzzz-001 --from 2026-02-08 --to 2026-02-11",
12711
- "<%= config.bin %> <%= command.id %> zzzz-001 --from 2026-02-08 --to 2026-02-11 --json"
12576
+ "<%= config.bin %> <%= command.id %> zzzz-001 --json"
12712
12577
  ],
12713
12578
  "flags": {
12714
12579
  "json": {
@@ -12919,25 +12784,11 @@
12919
12784
  "hasDynamicHelp": false,
12920
12785
  "multiple": false,
12921
12786
  "type": "option"
12922
- },
12923
- "from": {
12924
- "description": "Start date for usage data (ISO 8601 format, e.g., 2024-01-01)",
12925
- "name": "from",
12926
- "hasDynamicHelp": false,
12927
- "multiple": false,
12928
- "type": "option"
12929
- },
12930
- "to": {
12931
- "description": "End date for usage data (ISO 8601 format, e.g., 2024-12-31)",
12932
- "name": "to",
12933
- "hasDynamicHelp": false,
12934
- "multiple": false,
12935
- "type": "option"
12936
12787
  }
12937
12788
  },
12938
12789
  "hasDynamicHelp": false,
12939
12790
  "hiddenAliases": [],
12940
- "id": "sandbox:usage",
12791
+ "id": "sandbox:settings",
12941
12792
  "pluginAlias": "@salesforce/b2c-cli",
12942
12793
  "pluginName": "@salesforce/b2c-cli",
12943
12794
  "pluginType": "core",
@@ -12948,26 +12799,27 @@
12948
12799
  "dist",
12949
12800
  "commands",
12950
12801
  "sandbox",
12951
- "usage.js"
12802
+ "settings.js"
12952
12803
  ]
12953
12804
  },
12954
- "scaffold:generate": {
12955
- "aliases": [],
12805
+ "sandbox:start": {
12806
+ "aliases": [
12807
+ "ods:start"
12808
+ ],
12956
12809
  "args": {
12957
- "scaffoldId": {
12958
- "description": "Scaffold ID to generate",
12959
- "name": "scaffoldId",
12810
+ "sandboxId": {
12811
+ "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
12812
+ "name": "sandboxId",
12960
12813
  "required": true
12961
12814
  }
12962
12815
  },
12963
- "description": "Generate files from a scaffold template\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-generate",
12816
+ "description": "Start an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-start",
12964
12817
  "examples": [
12965
- "<%= config.bin %> <%= command.id %> cartridge",
12966
- "<%= config.bin %> <%= command.id %> cartridge --name app_custom",
12967
- "<%= config.bin %> <%= command.id %> custom-api --option apiName=my-api --option cartridgeName=app_custom",
12968
- "<%= config.bin %> <%= command.id %> cartridge --dry-run",
12969
- "<%= config.bin %> <%= command.id %> cartridge --force",
12970
- "<%= config.bin %> <%= command.id %> cartridge --output ./src"
12818
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
12819
+ "<%= config.bin %> <%= command.id %> zzzv-123",
12820
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
12821
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
12822
+ "<%= config.bin %> <%= command.id %> zzzv_123 --json"
12971
12823
  ],
12972
12824
  "flags": {
12973
12825
  "json": {
@@ -13084,46 +12936,134 @@
13084
12936
  "multiple": false,
13085
12937
  "type": "option"
13086
12938
  },
13087
- "name": {
13088
- "char": "n",
13089
- "description": "Primary name parameter (shorthand for --option name=VALUE)",
13090
- "name": "name",
12939
+ "client-id": {
12940
+ "description": "Client ID for OAuth",
12941
+ "env": "SFCC_CLIENT_ID",
12942
+ "helpGroup": "AUTH",
12943
+ "name": "client-id",
13091
12944
  "hasDynamicHelp": false,
13092
12945
  "multiple": false,
13093
12946
  "type": "option"
13094
12947
  },
13095
- "output": {
13096
- "char": "o",
13097
- "description": "Output directory (defaults to scaffold default or current directory)",
13098
- "name": "output",
12948
+ "client-secret": {
12949
+ "description": "Client Secret for OAuth",
12950
+ "env": "SFCC_CLIENT_SECRET",
12951
+ "helpGroup": "AUTH",
12952
+ "name": "client-secret",
13099
12953
  "hasDynamicHelp": false,
13100
12954
  "multiple": false,
13101
12955
  "type": "option"
13102
12956
  },
13103
- "option": {
13104
- "description": "Parameter value in key=value format (can be repeated)",
13105
- "name": "option",
12957
+ "auth-scope": {
12958
+ "description": "OAuth scopes to request (comma-separated)",
12959
+ "env": "SFCC_OAUTH_SCOPES",
12960
+ "helpGroup": "AUTH",
12961
+ "name": "auth-scope",
12962
+ "delimiter": ",",
13106
12963
  "hasDynamicHelp": false,
13107
12964
  "multiple": true,
13108
12965
  "type": "option"
13109
12966
  },
13110
- "dry-run": {
13111
- "description": "Preview files without writing them",
13112
- "name": "dry-run",
12967
+ "short-code": {
12968
+ "description": "SCAPI short code",
12969
+ "env": "SFCC_SHORTCODE",
12970
+ "helpGroup": "AUTH",
12971
+ "name": "short-code",
12972
+ "hasDynamicHelp": false,
12973
+ "multiple": false,
12974
+ "type": "option"
12975
+ },
12976
+ "tenant-id": {
12977
+ "aliases": [
12978
+ "tenant"
12979
+ ],
12980
+ "description": "Organization/tenant ID",
12981
+ "env": "SFCC_TENANT_ID",
12982
+ "helpGroup": "AUTH",
12983
+ "name": "tenant-id",
12984
+ "hasDynamicHelp": false,
12985
+ "multiple": false,
12986
+ "type": "option"
12987
+ },
12988
+ "auth-methods": {
12989
+ "description": "Allowed auth methods in priority order (comma-separated)",
12990
+ "env": "SFCC_AUTH_METHODS",
12991
+ "exclusive": [
12992
+ "user-auth"
12993
+ ],
12994
+ "helpGroup": "AUTH",
12995
+ "name": "auth-methods",
12996
+ "delimiter": ",",
12997
+ "hasDynamicHelp": false,
12998
+ "multiple": true,
12999
+ "options": [
13000
+ "client-credentials",
13001
+ "implicit",
13002
+ "basic",
13003
+ "api-key"
13004
+ ],
13005
+ "type": "option"
13006
+ },
13007
+ "user-auth": {
13008
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
13009
+ "exclusive": [
13010
+ "auth-methods"
13011
+ ],
13012
+ "helpGroup": "AUTH",
13013
+ "name": "user-auth",
13113
13014
  "allowNo": false,
13114
13015
  "type": "boolean"
13115
13016
  },
13116
- "force": {
13117
- "char": "f",
13118
- "description": "Skip prompts, use defaults, and overwrite existing files",
13119
- "name": "force",
13017
+ "account-manager-host": {
13018
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
13019
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
13020
+ "helpGroup": "AUTH",
13021
+ "name": "account-manager-host",
13022
+ "hasDynamicHelp": false,
13023
+ "multiple": false,
13024
+ "type": "option"
13025
+ },
13026
+ "sandbox-api-host": {
13027
+ "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
13028
+ "env": "SFCC_SANDBOX_API_HOST",
13029
+ "name": "sandbox-api-host",
13030
+ "hasDynamicHelp": false,
13031
+ "multiple": false,
13032
+ "type": "option"
13033
+ },
13034
+ "wait": {
13035
+ "char": "w",
13036
+ "description": "Wait for the sandbox to reach started or failed state before returning",
13037
+ "name": "wait",
13120
13038
  "allowNo": false,
13121
13039
  "type": "boolean"
13040
+ },
13041
+ "poll-interval": {
13042
+ "dependsOn": [
13043
+ "wait"
13044
+ ],
13045
+ "description": "Polling interval in seconds when using --wait",
13046
+ "name": "poll-interval",
13047
+ "default": 10,
13048
+ "hasDynamicHelp": false,
13049
+ "multiple": false,
13050
+ "type": "option"
13051
+ },
13052
+ "timeout": {
13053
+ "dependsOn": [
13054
+ "wait"
13055
+ ],
13056
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
13057
+ "name": "timeout",
13058
+ "default": 600,
13059
+ "hasDynamicHelp": false,
13060
+ "multiple": false,
13061
+ "type": "option"
13122
13062
  }
13123
13063
  },
13124
13064
  "hasDynamicHelp": false,
13125
13065
  "hiddenAliases": [],
13126
- "id": "scaffold:generate",
13066
+ "id": "sandbox:start",
13127
13067
  "pluginAlias": "@salesforce/b2c-cli",
13128
13068
  "pluginName": "@salesforce/b2c-cli",
13129
13069
  "pluginType": "core",
@@ -13133,25 +13073,28 @@
13133
13073
  "relativePath": [
13134
13074
  "dist",
13135
13075
  "commands",
13136
- "scaffold",
13137
- "generate.js"
13076
+ "sandbox",
13077
+ "start.js"
13138
13078
  ]
13139
13079
  },
13140
- "scaffold": {
13141
- "aliases": [],
13080
+ "sandbox:stop": {
13081
+ "aliases": [
13082
+ "ods:stop"
13083
+ ],
13142
13084
  "args": {
13143
- "scaffoldId": {
13144
- "description": "Scaffold ID to generate (optional - omit to see available commands)",
13145
- "name": "scaffoldId",
13146
- "required": false
13085
+ "sandboxId": {
13086
+ "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
13087
+ "name": "sandboxId",
13088
+ "required": true
13147
13089
  }
13148
13090
  },
13149
- "description": "Work with project scaffolds and templates\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html",
13091
+ "description": "Stop an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-stop",
13150
13092
  "examples": [
13151
- "<%= config.bin %> scaffold --help",
13152
- "<%= config.bin %> scaffold list",
13153
- "<%= config.bin %> scaffold cartridge",
13154
- "<%= config.bin %> scaffold cartridge --name app_custom"
13093
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
13094
+ "<%= config.bin %> <%= command.id %> zzzv-123",
13095
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait",
13096
+ "<%= config.bin %> <%= command.id %> zzzv-123 --wait --poll-interval 15",
13097
+ "<%= config.bin %> <%= command.id %> zzzv_123 --json"
13155
13098
  ],
13156
13099
  "flags": {
13157
13100
  "json": {
@@ -13268,184 +13211,126 @@
13268
13211
  "multiple": false,
13269
13212
  "type": "option"
13270
13213
  },
13271
- "name": {
13272
- "char": "n",
13273
- "description": "Primary name parameter (shorthand for --option name=VALUE)",
13274
- "name": "name",
13214
+ "client-id": {
13215
+ "description": "Client ID for OAuth",
13216
+ "env": "SFCC_CLIENT_ID",
13217
+ "helpGroup": "AUTH",
13218
+ "name": "client-id",
13275
13219
  "hasDynamicHelp": false,
13276
13220
  "multiple": false,
13277
13221
  "type": "option"
13278
13222
  },
13279
- "output": {
13280
- "char": "o",
13281
- "description": "Output directory (defaults to scaffold default or current directory)",
13282
- "name": "output",
13223
+ "client-secret": {
13224
+ "description": "Client Secret for OAuth",
13225
+ "env": "SFCC_CLIENT_SECRET",
13226
+ "helpGroup": "AUTH",
13227
+ "name": "client-secret",
13283
13228
  "hasDynamicHelp": false,
13284
13229
  "multiple": false,
13285
13230
  "type": "option"
13286
13231
  },
13287
- "option": {
13288
- "description": "Parameter value in key=value format (can be repeated)",
13289
- "name": "option",
13232
+ "auth-scope": {
13233
+ "description": "OAuth scopes to request (comma-separated)",
13234
+ "env": "SFCC_OAUTH_SCOPES",
13235
+ "helpGroup": "AUTH",
13236
+ "name": "auth-scope",
13237
+ "delimiter": ",",
13290
13238
  "hasDynamicHelp": false,
13291
13239
  "multiple": true,
13292
13240
  "type": "option"
13293
13241
  },
13294
- "dry-run": {
13295
- "description": "Preview files without writing them",
13296
- "name": "dry-run",
13297
- "allowNo": false,
13298
- "type": "boolean"
13299
- },
13300
- "force": {
13301
- "char": "f",
13302
- "description": "Skip prompts, use defaults, and overwrite existing files",
13303
- "name": "force",
13304
- "allowNo": false,
13305
- "type": "boolean"
13306
- }
13307
- },
13308
- "hasDynamicHelp": false,
13309
- "hiddenAliases": [],
13310
- "id": "scaffold",
13311
- "pluginAlias": "@salesforce/b2c-cli",
13312
- "pluginName": "@salesforce/b2c-cli",
13313
- "pluginType": "core",
13314
- "strict": true,
13315
- "enableJsonFlag": true,
13316
- "isESM": true,
13317
- "relativePath": [
13318
- "dist",
13319
- "commands",
13320
- "scaffold",
13321
- "index.js"
13322
- ]
13323
- },
13324
- "scaffold:info": {
13325
- "aliases": [],
13326
- "args": {
13327
- "scaffoldId": {
13328
- "description": "Scaffold ID to get info for",
13329
- "name": "scaffoldId",
13330
- "required": true
13331
- }
13332
- },
13333
- "description": "Show detailed information about a scaffold\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-info",
13334
- "examples": [
13335
- "<%= config.bin %> <%= command.id %> cartridge",
13336
- "<%= config.bin %> <%= command.id %> custom-api --json"
13337
- ],
13338
- "flags": {
13339
- "json": {
13340
- "description": "Output result as JSON",
13341
- "helpGroup": "GLOBAL",
13342
- "name": "json",
13343
- "allowNo": false,
13344
- "type": "boolean"
13345
- },
13346
- "log-level": {
13347
- "description": "Set logging verbosity level",
13348
- "env": "SFCC_LOG_LEVEL",
13349
- "helpGroup": "GLOBAL",
13350
- "name": "log-level",
13242
+ "short-code": {
13243
+ "description": "SCAPI short code",
13244
+ "env": "SFCC_SHORTCODE",
13245
+ "helpGroup": "AUTH",
13246
+ "name": "short-code",
13351
13247
  "hasDynamicHelp": false,
13352
13248
  "multiple": false,
13353
- "options": [
13354
- "trace",
13355
- "debug",
13356
- "info",
13357
- "warn",
13358
- "error",
13359
- "silent"
13360
- ],
13361
13249
  "type": "option"
13362
13250
  },
13363
- "debug": {
13364
- "char": "D",
13365
- "description": "Enable debug logging (shorthand for --log-level debug)",
13366
- "env": "SFCC_DEBUG",
13367
- "helpGroup": "GLOBAL",
13368
- "name": "debug",
13369
- "allowNo": false,
13370
- "type": "boolean"
13371
- },
13372
- "jsonl": {
13251
+ "tenant-id": {
13373
13252
  "aliases": [
13374
- "json-logs"
13253
+ "tenant"
13375
13254
  ],
13376
- "description": "Output log messages as JSON lines",
13377
- "env": "SFCC_JSON_LOGS",
13378
- "helpGroup": "GLOBAL",
13379
- "name": "jsonl",
13380
- "allowNo": false,
13381
- "type": "boolean"
13382
- },
13383
- "lang": {
13384
- "char": "L",
13385
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
13386
- "helpGroup": "GLOBAL",
13387
- "name": "lang",
13388
- "hasDynamicHelp": false,
13389
- "multiple": false,
13390
- "type": "option"
13391
- },
13392
- "config": {
13393
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
13394
- "env": "SFCC_CONFIG",
13395
- "helpGroup": "GLOBAL",
13396
- "name": "config",
13255
+ "description": "Organization/tenant ID",
13256
+ "env": "SFCC_TENANT_ID",
13257
+ "helpGroup": "AUTH",
13258
+ "name": "tenant-id",
13397
13259
  "hasDynamicHelp": false,
13398
13260
  "multiple": false,
13399
13261
  "type": "option"
13400
13262
  },
13401
- "instance": {
13402
- "char": "i",
13403
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
13404
- "env": "SFCC_INSTANCE",
13405
- "helpGroup": "GLOBAL",
13406
- "name": "instance",
13263
+ "auth-methods": {
13264
+ "description": "Allowed auth methods in priority order (comma-separated)",
13265
+ "env": "SFCC_AUTH_METHODS",
13266
+ "exclusive": [
13267
+ "user-auth"
13268
+ ],
13269
+ "helpGroup": "AUTH",
13270
+ "name": "auth-methods",
13271
+ "delimiter": ",",
13407
13272
  "hasDynamicHelp": false,
13408
- "multiple": false,
13273
+ "multiple": true,
13274
+ "options": [
13275
+ "client-credentials",
13276
+ "implicit",
13277
+ "basic",
13278
+ "api-key"
13279
+ ],
13409
13280
  "type": "option"
13410
13281
  },
13411
- "project-directory": {
13412
- "aliases": [
13413
- "working-directory"
13282
+ "user-auth": {
13283
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
13284
+ "exclusive": [
13285
+ "auth-methods"
13414
13286
  ],
13415
- "description": "Project directory",
13416
- "env": "SFCC_PROJECT_DIRECTORY",
13417
- "helpGroup": "GLOBAL",
13418
- "name": "project-directory",
13287
+ "helpGroup": "AUTH",
13288
+ "name": "user-auth",
13289
+ "allowNo": false,
13290
+ "type": "boolean"
13291
+ },
13292
+ "account-manager-host": {
13293
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
13294
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
13295
+ "helpGroup": "AUTH",
13296
+ "name": "account-manager-host",
13419
13297
  "hasDynamicHelp": false,
13420
13298
  "multiple": false,
13421
13299
  "type": "option"
13422
13300
  },
13423
- "extra-query": {
13424
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
13425
- "env": "SFCC_EXTRA_QUERY",
13426
- "helpGroup": "GLOBAL",
13427
- "hidden": true,
13428
- "name": "extra-query",
13301
+ "sandbox-api-host": {
13302
+ "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
13303
+ "env": "SFCC_SANDBOX_API_HOST",
13304
+ "name": "sandbox-api-host",
13429
13305
  "hasDynamicHelp": false,
13430
13306
  "multiple": false,
13431
13307
  "type": "option"
13432
13308
  },
13433
- "extra-body": {
13434
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
13435
- "env": "SFCC_EXTRA_BODY",
13436
- "helpGroup": "GLOBAL",
13437
- "hidden": true,
13438
- "name": "extra-body",
13309
+ "wait": {
13310
+ "char": "w",
13311
+ "description": "Wait for the sandbox to reach stopped or failed state before returning",
13312
+ "name": "wait",
13313
+ "allowNo": false,
13314
+ "type": "boolean"
13315
+ },
13316
+ "poll-interval": {
13317
+ "dependsOn": [
13318
+ "wait"
13319
+ ],
13320
+ "description": "Polling interval in seconds when using --wait",
13321
+ "name": "poll-interval",
13322
+ "default": 10,
13439
13323
  "hasDynamicHelp": false,
13440
13324
  "multiple": false,
13441
13325
  "type": "option"
13442
13326
  },
13443
- "extra-headers": {
13444
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
13445
- "env": "SFCC_EXTRA_HEADERS",
13446
- "helpGroup": "GLOBAL",
13447
- "hidden": true,
13448
- "name": "extra-headers",
13327
+ "timeout": {
13328
+ "dependsOn": [
13329
+ "wait"
13330
+ ],
13331
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
13332
+ "name": "timeout",
13333
+ "default": 600,
13449
13334
  "hasDynamicHelp": false,
13450
13335
  "multiple": false,
13451
13336
  "type": "option"
@@ -13453,7 +13338,7 @@
13453
13338
  },
13454
13339
  "hasDynamicHelp": false,
13455
13340
  "hiddenAliases": [],
13456
- "id": "scaffold:info",
13341
+ "id": "sandbox:stop",
13457
13342
  "pluginAlias": "@salesforce/b2c-cli",
13458
13343
  "pluginName": "@salesforce/b2c-cli",
13459
13344
  "pluginType": "core",
@@ -13463,25 +13348,25 @@
13463
13348
  "relativePath": [
13464
13349
  "dist",
13465
13350
  "commands",
13466
- "scaffold",
13467
- "info.js"
13351
+ "sandbox",
13352
+ "stop.js"
13468
13353
  ]
13469
13354
  },
13470
- "scaffold:init": {
13471
- "aliases": [],
13355
+ "sandbox:storage": {
13356
+ "aliases": [
13357
+ "ods:storage"
13358
+ ],
13472
13359
  "args": {
13473
- "name": {
13474
- "description": "Name for the new scaffold (kebab-case)",
13475
- "name": "name",
13476
- "required": false
13360
+ "sandboxId": {
13361
+ "description": "Sandbox ID (UUID or realm-instance, e.g., zzzz-001)",
13362
+ "name": "sandboxId",
13363
+ "required": true
13477
13364
  }
13478
13365
  },
13479
- "description": "Create a new custom scaffold template\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-init",
13366
+ "description": "Show storage details for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-storage",
13480
13367
  "examples": [
13481
- "<%= config.bin %> <%= command.id %> my-scaffold",
13482
- "<%= config.bin %> <%= command.id %> my-scaffold --project",
13483
- "<%= config.bin %> <%= command.id %> my-scaffold --user",
13484
- "<%= config.bin %> <%= command.id %> --output ./scaffolds/custom"
13368
+ "<%= config.bin %> <%= command.id %> zzzz-001",
13369
+ "<%= config.bin %> <%= command.id %> zzzz-001 --json"
13485
13370
  ],
13486
13371
  "flags": {
13487
13372
  "json": {
@@ -13598,49 +13483,105 @@
13598
13483
  "multiple": false,
13599
13484
  "type": "option"
13600
13485
  },
13601
- "project": {
13602
- "description": "Create in project scaffolds directory (.b2c/scaffolds/)",
13486
+ "client-id": {
13487
+ "description": "Client ID for OAuth",
13488
+ "env": "SFCC_CLIENT_ID",
13489
+ "helpGroup": "AUTH",
13490
+ "name": "client-id",
13491
+ "hasDynamicHelp": false,
13492
+ "multiple": false,
13493
+ "type": "option"
13494
+ },
13495
+ "client-secret": {
13496
+ "description": "Client Secret for OAuth",
13497
+ "env": "SFCC_CLIENT_SECRET",
13498
+ "helpGroup": "AUTH",
13499
+ "name": "client-secret",
13500
+ "hasDynamicHelp": false,
13501
+ "multiple": false,
13502
+ "type": "option"
13503
+ },
13504
+ "auth-scope": {
13505
+ "description": "OAuth scopes to request (comma-separated)",
13506
+ "env": "SFCC_OAUTH_SCOPES",
13507
+ "helpGroup": "AUTH",
13508
+ "name": "auth-scope",
13509
+ "delimiter": ",",
13510
+ "hasDynamicHelp": false,
13511
+ "multiple": true,
13512
+ "type": "option"
13513
+ },
13514
+ "short-code": {
13515
+ "description": "SCAPI short code",
13516
+ "env": "SFCC_SHORTCODE",
13517
+ "helpGroup": "AUTH",
13518
+ "name": "short-code",
13519
+ "hasDynamicHelp": false,
13520
+ "multiple": false,
13521
+ "type": "option"
13522
+ },
13523
+ "tenant-id": {
13524
+ "aliases": [
13525
+ "tenant"
13526
+ ],
13527
+ "description": "Organization/tenant ID",
13528
+ "env": "SFCC_TENANT_ID",
13529
+ "helpGroup": "AUTH",
13530
+ "name": "tenant-id",
13531
+ "hasDynamicHelp": false,
13532
+ "multiple": false,
13533
+ "type": "option"
13534
+ },
13535
+ "auth-methods": {
13536
+ "description": "Allowed auth methods in priority order (comma-separated)",
13537
+ "env": "SFCC_AUTH_METHODS",
13603
13538
  "exclusive": [
13604
- "user",
13605
- "output"
13539
+ "user-auth"
13606
13540
  ],
13607
- "name": "project",
13608
- "allowNo": false,
13609
- "type": "boolean"
13541
+ "helpGroup": "AUTH",
13542
+ "name": "auth-methods",
13543
+ "delimiter": ",",
13544
+ "hasDynamicHelp": false,
13545
+ "multiple": true,
13546
+ "options": [
13547
+ "client-credentials",
13548
+ "implicit",
13549
+ "basic",
13550
+ "api-key"
13551
+ ],
13552
+ "type": "option"
13610
13553
  },
13611
- "user": {
13612
- "description": "Create in user scaffolds directory (~/.b2c/scaffolds/)",
13554
+ "user-auth": {
13555
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
13613
13556
  "exclusive": [
13614
- "project",
13615
- "output"
13557
+ "auth-methods"
13616
13558
  ],
13617
- "name": "user",
13559
+ "helpGroup": "AUTH",
13560
+ "name": "user-auth",
13618
13561
  "allowNo": false,
13619
13562
  "type": "boolean"
13620
13563
  },
13621
- "output": {
13622
- "char": "o",
13623
- "description": "Custom output directory for the scaffold",
13624
- "exclusive": [
13625
- "project",
13626
- "user"
13627
- ],
13628
- "name": "output",
13564
+ "account-manager-host": {
13565
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
13566
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
13567
+ "helpGroup": "AUTH",
13568
+ "name": "account-manager-host",
13629
13569
  "hasDynamicHelp": false,
13630
13570
  "multiple": false,
13631
13571
  "type": "option"
13632
13572
  },
13633
- "force": {
13634
- "char": "f",
13635
- "description": "Overwrite existing scaffold if it exists",
13636
- "name": "force",
13637
- "allowNo": false,
13638
- "type": "boolean"
13573
+ "sandbox-api-host": {
13574
+ "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
13575
+ "env": "SFCC_SANDBOX_API_HOST",
13576
+ "name": "sandbox-api-host",
13577
+ "hasDynamicHelp": false,
13578
+ "multiple": false,
13579
+ "type": "option"
13639
13580
  }
13640
13581
  },
13641
13582
  "hasDynamicHelp": false,
13642
13583
  "hiddenAliases": [],
13643
- "id": "scaffold:init",
13584
+ "id": "sandbox:storage",
13644
13585
  "pluginAlias": "@salesforce/b2c-cli",
13645
13586
  "pluginName": "@salesforce/b2c-cli",
13646
13587
  "pluginType": "core",
@@ -13650,20 +13591,31 @@
13650
13591
  "relativePath": [
13651
13592
  "dist",
13652
13593
  "commands",
13653
- "scaffold",
13654
- "init.js"
13594
+ "sandbox",
13595
+ "storage.js"
13655
13596
  ]
13656
13597
  },
13657
- "scaffold:list": {
13658
- "aliases": [],
13659
- "args": {},
13660
- "description": "List available project scaffolds\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-list",
13598
+ "sandbox:update": {
13599
+ "aliases": [
13600
+ "ods:update"
13601
+ ],
13602
+ "args": {
13603
+ "sandboxId": {
13604
+ "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
13605
+ "name": "sandboxId",
13606
+ "required": true
13607
+ }
13608
+ },
13609
+ "description": "Update a sandbox (extend TTL, change scheduling, update resource xprofile, tags, or emails)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-update",
13661
13610
  "examples": [
13662
- "<%= config.bin %> <%= command.id %>",
13663
- "<%= config.bin %> <%= command.id %> --category cartridge",
13664
- "<%= config.bin %> <%= command.id %> --source project",
13665
- "<%= config.bin %> <%= command.id %> --extended",
13666
- "<%= config.bin %> <%= command.id %> --json"
13611
+ "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 48",
13612
+ "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 0",
13613
+ "<%= config.bin %> <%= command.id %> zzzv-123 --auto-scheduled",
13614
+ "<%= config.bin %> <%= command.id %> zzzv-123 --no-auto-scheduled",
13615
+ "<%= config.bin %> <%= command.id %> zzzv-123 --resource-profile large",
13616
+ "<%= config.bin %> <%= command.id %> zzzv-123 --tags tag1,tag2",
13617
+ "<%= config.bin %> <%= command.id %> zzzv-123 --emails user@example.com,dev@example.com",
13618
+ "<%= config.bin %> <%= command.id %> zzzv-123 --ttl 48 --resource-profile xlarge --tags ci,nightly --json"
13667
13619
  ],
13668
13620
  "flags": {
13669
13621
  "json": {
@@ -13780,46 +13732,145 @@
13780
13732
  "multiple": false,
13781
13733
  "type": "option"
13782
13734
  },
13783
- "category": {
13784
- "char": "c",
13785
- "description": "Filter by category",
13786
- "name": "category",
13735
+ "client-id": {
13736
+ "description": "Client ID for OAuth",
13737
+ "env": "SFCC_CLIENT_ID",
13738
+ "helpGroup": "AUTH",
13739
+ "name": "client-id",
13787
13740
  "hasDynamicHelp": false,
13788
13741
  "multiple": false,
13789
13742
  "type": "option"
13790
13743
  },
13791
- "source": {
13792
- "char": "s",
13793
- "description": "Filter by source (built-in, user, project, plugin)",
13794
- "name": "source",
13744
+ "client-secret": {
13745
+ "description": "Client Secret for OAuth",
13746
+ "env": "SFCC_CLIENT_SECRET",
13747
+ "helpGroup": "AUTH",
13748
+ "name": "client-secret",
13749
+ "hasDynamicHelp": false,
13750
+ "multiple": false,
13751
+ "type": "option"
13752
+ },
13753
+ "auth-scope": {
13754
+ "description": "OAuth scopes to request (comma-separated)",
13755
+ "env": "SFCC_OAUTH_SCOPES",
13756
+ "helpGroup": "AUTH",
13757
+ "name": "auth-scope",
13758
+ "delimiter": ",",
13759
+ "hasDynamicHelp": false,
13760
+ "multiple": true,
13761
+ "type": "option"
13762
+ },
13763
+ "short-code": {
13764
+ "description": "SCAPI short code",
13765
+ "env": "SFCC_SHORTCODE",
13766
+ "helpGroup": "AUTH",
13767
+ "name": "short-code",
13768
+ "hasDynamicHelp": false,
13769
+ "multiple": false,
13770
+ "type": "option"
13771
+ },
13772
+ "tenant-id": {
13773
+ "aliases": [
13774
+ "tenant"
13775
+ ],
13776
+ "description": "Organization/tenant ID",
13777
+ "env": "SFCC_TENANT_ID",
13778
+ "helpGroup": "AUTH",
13779
+ "name": "tenant-id",
13795
13780
  "hasDynamicHelp": false,
13796
13781
  "multiple": false,
13782
+ "type": "option"
13783
+ },
13784
+ "auth-methods": {
13785
+ "description": "Allowed auth methods in priority order (comma-separated)",
13786
+ "env": "SFCC_AUTH_METHODS",
13787
+ "exclusive": [
13788
+ "user-auth"
13789
+ ],
13790
+ "helpGroup": "AUTH",
13791
+ "name": "auth-methods",
13792
+ "delimiter": ",",
13793
+ "hasDynamicHelp": false,
13794
+ "multiple": true,
13797
13795
  "options": [
13798
- "built-in",
13799
- "user",
13800
- "project",
13801
- "plugin"
13796
+ "client-credentials",
13797
+ "implicit",
13798
+ "basic",
13799
+ "api-key"
13802
13800
  ],
13803
13801
  "type": "option"
13804
13802
  },
13805
- "columns": {
13806
- "description": "Columns to display (comma-separated). Available: id, displayName, category, source, description, path",
13807
- "name": "columns",
13803
+ "user-auth": {
13804
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
13805
+ "exclusive": [
13806
+ "auth-methods"
13807
+ ],
13808
+ "helpGroup": "AUTH",
13809
+ "name": "user-auth",
13810
+ "allowNo": false,
13811
+ "type": "boolean"
13812
+ },
13813
+ "account-manager-host": {
13814
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
13815
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
13816
+ "helpGroup": "AUTH",
13817
+ "name": "account-manager-host",
13808
13818
  "hasDynamicHelp": false,
13809
13819
  "multiple": false,
13810
13820
  "type": "option"
13811
13821
  },
13812
- "extended": {
13813
- "char": "x",
13814
- "description": "Show all columns including extended fields",
13815
- "name": "extended",
13816
- "allowNo": false,
13822
+ "sandbox-api-host": {
13823
+ "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
13824
+ "env": "SFCC_SANDBOX_API_HOST",
13825
+ "name": "sandbox-api-host",
13826
+ "hasDynamicHelp": false,
13827
+ "multiple": false,
13828
+ "type": "option"
13829
+ },
13830
+ "ttl": {
13831
+ "description": "Number of hours to add to sandbox lifetime (0 or less for infinite)",
13832
+ "name": "ttl",
13833
+ "hasDynamicHelp": false,
13834
+ "multiple": false,
13835
+ "type": "option"
13836
+ },
13837
+ "auto-scheduled": {
13838
+ "description": "Enable or disable automatic start/stop scheduling",
13839
+ "name": "auto-scheduled",
13840
+ "allowNo": true,
13817
13841
  "type": "boolean"
13842
+ },
13843
+ "resource-profile": {
13844
+ "description": "Resource profile (medium, large, xlarge, xxlarge)",
13845
+ "name": "resource-profile",
13846
+ "hasDynamicHelp": false,
13847
+ "multiple": false,
13848
+ "options": [
13849
+ "medium",
13850
+ "large",
13851
+ "xlarge",
13852
+ "xxlarge"
13853
+ ],
13854
+ "type": "option"
13855
+ },
13856
+ "tags": {
13857
+ "description": "Comma-separated list of tags",
13858
+ "name": "tags",
13859
+ "hasDynamicHelp": false,
13860
+ "multiple": false,
13861
+ "type": "option"
13862
+ },
13863
+ "emails": {
13864
+ "description": "Comma-separated list of notification email addresses",
13865
+ "name": "emails",
13866
+ "hasDynamicHelp": false,
13867
+ "multiple": false,
13868
+ "type": "option"
13818
13869
  }
13819
13870
  },
13820
13871
  "hasDynamicHelp": false,
13821
13872
  "hiddenAliases": [],
13822
- "id": "scaffold:list",
13873
+ "id": "sandbox:update",
13823
13874
  "pluginAlias": "@salesforce/b2c-cli",
13824
13875
  "pluginName": "@salesforce/b2c-cli",
13825
13876
  "pluginType": "core",
@@ -13829,25 +13880,26 @@
13829
13880
  "relativePath": [
13830
13881
  "dist",
13831
13882
  "commands",
13832
- "scaffold",
13833
- "list.js"
13883
+ "sandbox",
13884
+ "update.js"
13834
13885
  ]
13835
13886
  },
13836
- "scaffold:search": {
13837
- "aliases": [],
13887
+ "sandbox:usage": {
13888
+ "aliases": [
13889
+ "ods:usage"
13890
+ ],
13838
13891
  "args": {
13839
- "query": {
13840
- "description": "Search query (matches name and description)",
13841
- "name": "query",
13892
+ "sandboxId": {
13893
+ "description": "Sandbox ID (UUID or realm-instance, e.g., zzzz-001)",
13894
+ "name": "sandboxId",
13842
13895
  "required": true
13843
13896
  }
13844
13897
  },
13845
- "description": "Search for scaffolds by name, description, or tags\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-search",
13898
+ "description": "Show usage information for a specific sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-usage",
13846
13899
  "examples": [
13847
- "<%= config.bin %> <%= command.id %> controller",
13848
- "<%= config.bin %> <%= command.id %> api",
13849
- "<%= config.bin %> <%= command.id %> hook --category cartridge",
13850
- "<%= config.bin %> <%= command.id %> job --json"
13900
+ "<%= config.bin %> <%= command.id %> zzzz-001",
13901
+ "<%= config.bin %> <%= command.id %> zzzz-001 --from 2026-02-08 --to 2026-02-11",
13902
+ "<%= config.bin %> <%= command.id %> zzzz-001 --from 2026-02-08 --to 2026-02-11 --json"
13851
13903
  ],
13852
13904
  "flags": {
13853
13905
  "json": {
@@ -13964,171 +14016,119 @@
13964
14016
  "multiple": false,
13965
14017
  "type": "option"
13966
14018
  },
13967
- "category": {
13968
- "char": "c",
13969
- "description": "Filter results by category",
13970
- "name": "category",
14019
+ "client-id": {
14020
+ "description": "Client ID for OAuth",
14021
+ "env": "SFCC_CLIENT_ID",
14022
+ "helpGroup": "AUTH",
14023
+ "name": "client-id",
13971
14024
  "hasDynamicHelp": false,
13972
14025
  "multiple": false,
13973
14026
  "type": "option"
13974
- }
13975
- },
13976
- "hasDynamicHelp": false,
13977
- "hiddenAliases": [],
13978
- "id": "scaffold:search",
13979
- "pluginAlias": "@salesforce/b2c-cli",
13980
- "pluginName": "@salesforce/b2c-cli",
13981
- "pluginType": "core",
13982
- "strict": true,
13983
- "enableJsonFlag": true,
13984
- "isESM": true,
13985
- "relativePath": [
13986
- "dist",
13987
- "commands",
13988
- "scaffold",
13989
- "search.js"
13990
- ]
13991
- },
13992
- "scaffold:validate": {
13993
- "aliases": [],
13994
- "args": {
13995
- "path": {
13996
- "description": "Path to the scaffold directory",
13997
- "name": "path",
13998
- "required": true
13999
- }
14000
- },
14001
- "description": "Validate a custom scaffold manifest and templates\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-validate",
14002
- "examples": [
14003
- "<%= config.bin %> <%= command.id %> ./my-scaffold",
14004
- "<%= config.bin %> <%= command.id %> ~/.b2c/scaffolds/my-scaffold",
14005
- "<%= config.bin %> <%= command.id %> .b2c/scaffolds/my-scaffold --json"
14006
- ],
14007
- "flags": {
14008
- "json": {
14009
- "description": "Output result as JSON",
14010
- "helpGroup": "GLOBAL",
14011
- "name": "json",
14012
- "allowNo": false,
14013
- "type": "boolean"
14014
14027
  },
14015
- "log-level": {
14016
- "description": "Set logging verbosity level",
14017
- "env": "SFCC_LOG_LEVEL",
14018
- "helpGroup": "GLOBAL",
14019
- "name": "log-level",
14028
+ "client-secret": {
14029
+ "description": "Client Secret for OAuth",
14030
+ "env": "SFCC_CLIENT_SECRET",
14031
+ "helpGroup": "AUTH",
14032
+ "name": "client-secret",
14020
14033
  "hasDynamicHelp": false,
14021
14034
  "multiple": false,
14022
- "options": [
14023
- "trace",
14024
- "debug",
14025
- "info",
14026
- "warn",
14027
- "error",
14028
- "silent"
14029
- ],
14030
14035
  "type": "option"
14031
14036
  },
14032
- "debug": {
14033
- "char": "D",
14034
- "description": "Enable debug logging (shorthand for --log-level debug)",
14035
- "env": "SFCC_DEBUG",
14036
- "helpGroup": "GLOBAL",
14037
- "name": "debug",
14038
- "allowNo": false,
14039
- "type": "boolean"
14040
- },
14041
- "jsonl": {
14042
- "aliases": [
14043
- "json-logs"
14044
- ],
14045
- "description": "Output log messages as JSON lines",
14046
- "env": "SFCC_JSON_LOGS",
14047
- "helpGroup": "GLOBAL",
14048
- "name": "jsonl",
14049
- "allowNo": false,
14050
- "type": "boolean"
14037
+ "auth-scope": {
14038
+ "description": "OAuth scopes to request (comma-separated)",
14039
+ "env": "SFCC_OAUTH_SCOPES",
14040
+ "helpGroup": "AUTH",
14041
+ "name": "auth-scope",
14042
+ "delimiter": ",",
14043
+ "hasDynamicHelp": false,
14044
+ "multiple": true,
14045
+ "type": "option"
14051
14046
  },
14052
- "lang": {
14053
- "char": "L",
14054
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
14055
- "helpGroup": "GLOBAL",
14056
- "name": "lang",
14047
+ "short-code": {
14048
+ "description": "SCAPI short code",
14049
+ "env": "SFCC_SHORTCODE",
14050
+ "helpGroup": "AUTH",
14051
+ "name": "short-code",
14057
14052
  "hasDynamicHelp": false,
14058
14053
  "multiple": false,
14059
14054
  "type": "option"
14060
14055
  },
14061
- "config": {
14062
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
14063
- "env": "SFCC_CONFIG",
14064
- "helpGroup": "GLOBAL",
14065
- "name": "config",
14056
+ "tenant-id": {
14057
+ "aliases": [
14058
+ "tenant"
14059
+ ],
14060
+ "description": "Organization/tenant ID",
14061
+ "env": "SFCC_TENANT_ID",
14062
+ "helpGroup": "AUTH",
14063
+ "name": "tenant-id",
14066
14064
  "hasDynamicHelp": false,
14067
14065
  "multiple": false,
14068
14066
  "type": "option"
14069
14067
  },
14070
- "instance": {
14071
- "char": "i",
14072
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
14073
- "env": "SFCC_INSTANCE",
14074
- "helpGroup": "GLOBAL",
14075
- "name": "instance",
14068
+ "auth-methods": {
14069
+ "description": "Allowed auth methods in priority order (comma-separated)",
14070
+ "env": "SFCC_AUTH_METHODS",
14071
+ "exclusive": [
14072
+ "user-auth"
14073
+ ],
14074
+ "helpGroup": "AUTH",
14075
+ "name": "auth-methods",
14076
+ "delimiter": ",",
14076
14077
  "hasDynamicHelp": false,
14077
- "multiple": false,
14078
+ "multiple": true,
14079
+ "options": [
14080
+ "client-credentials",
14081
+ "implicit",
14082
+ "basic",
14083
+ "api-key"
14084
+ ],
14078
14085
  "type": "option"
14079
14086
  },
14080
- "project-directory": {
14081
- "aliases": [
14082
- "working-directory"
14087
+ "user-auth": {
14088
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
14089
+ "exclusive": [
14090
+ "auth-methods"
14083
14091
  ],
14084
- "description": "Project directory",
14085
- "env": "SFCC_PROJECT_DIRECTORY",
14086
- "helpGroup": "GLOBAL",
14087
- "name": "project-directory",
14092
+ "helpGroup": "AUTH",
14093
+ "name": "user-auth",
14094
+ "allowNo": false,
14095
+ "type": "boolean"
14096
+ },
14097
+ "account-manager-host": {
14098
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
14099
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
14100
+ "helpGroup": "AUTH",
14101
+ "name": "account-manager-host",
14088
14102
  "hasDynamicHelp": false,
14089
14103
  "multiple": false,
14090
14104
  "type": "option"
14091
14105
  },
14092
- "extra-query": {
14093
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
14094
- "env": "SFCC_EXTRA_QUERY",
14095
- "helpGroup": "GLOBAL",
14096
- "hidden": true,
14097
- "name": "extra-query",
14106
+ "sandbox-api-host": {
14107
+ "description": "ODS API hostname (default: admin.dx.commercecloud.salesforce.com)",
14108
+ "env": "SFCC_SANDBOX_API_HOST",
14109
+ "name": "sandbox-api-host",
14098
14110
  "hasDynamicHelp": false,
14099
14111
  "multiple": false,
14100
14112
  "type": "option"
14101
14113
  },
14102
- "extra-body": {
14103
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
14104
- "env": "SFCC_EXTRA_BODY",
14105
- "helpGroup": "GLOBAL",
14106
- "hidden": true,
14107
- "name": "extra-body",
14114
+ "from": {
14115
+ "description": "Start date for usage data (ISO 8601 format, e.g., 2024-01-01)",
14116
+ "name": "from",
14108
14117
  "hasDynamicHelp": false,
14109
14118
  "multiple": false,
14110
14119
  "type": "option"
14111
14120
  },
14112
- "extra-headers": {
14113
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
14114
- "env": "SFCC_EXTRA_HEADERS",
14115
- "helpGroup": "GLOBAL",
14116
- "hidden": true,
14117
- "name": "extra-headers",
14121
+ "to": {
14122
+ "description": "End date for usage data (ISO 8601 format, e.g., 2024-12-31)",
14123
+ "name": "to",
14118
14124
  "hasDynamicHelp": false,
14119
14125
  "multiple": false,
14120
14126
  "type": "option"
14121
- },
14122
- "strict": {
14123
- "description": "Treat warnings as errors",
14124
- "name": "strict",
14125
- "allowNo": false,
14126
- "type": "boolean"
14127
14127
  }
14128
14128
  },
14129
14129
  "hasDynamicHelp": false,
14130
14130
  "hiddenAliases": [],
14131
- "id": "scaffold:validate",
14131
+ "id": "sandbox:usage",
14132
14132
  "pluginAlias": "@salesforce/b2c-cli",
14133
14133
  "pluginName": "@salesforce/b2c-cli",
14134
14134
  "pluginType": "core",
@@ -14138,8 +14138,8 @@
14138
14138
  "relativePath": [
14139
14139
  "dist",
14140
14140
  "commands",
14141
- "scaffold",
14142
- "validate.js"
14141
+ "sandbox",
14142
+ "usage.js"
14143
14143
  ]
14144
14144
  },
14145
14145
  "setup": {
@@ -24978,7 +24978,7 @@
24978
24978
  "description": "Inclusive end date (YYYY-MM-DD)",
24979
24979
  "helpGroup": "QUERY",
24980
24980
  "name": "to",
24981
- "default": "2026-04-13",
24981
+ "default": "2026-04-14",
24982
24982
  "hasDynamicHelp": false,
24983
24983
  "multiple": false,
24984
24984
  "type": "option"
@@ -25309,7 +25309,7 @@
25309
25309
  "description": "Inclusive end date (YYYY-MM-DD)",
25310
25310
  "helpGroup": "QUERY",
25311
25311
  "name": "to",
25312
- "default": "2026-04-13",
25312
+ "default": "2026-04-14",
25313
25313
  "hasDynamicHelp": false,
25314
25314
  "multiple": false,
25315
25315
  "type": "option"
@@ -25640,7 +25640,7 @@
25640
25640
  "description": "Inclusive end date (YYYY-MM-DD)",
25641
25641
  "helpGroup": "QUERY",
25642
25642
  "name": "to",
25643
- "default": "2026-04-13",
25643
+ "default": "2026-04-14",
25644
25644
  "hasDynamicHelp": false,
25645
25645
  "multiple": false,
25646
25646
  "type": "option"
@@ -25971,7 +25971,7 @@
25971
25971
  "description": "Inclusive end date (YYYY-MM-DD)",
25972
25972
  "helpGroup": "QUERY",
25973
25973
  "name": "to",
25974
- "default": "2026-04-13",
25974
+ "default": "2026-04-14",
25975
25975
  "hasDynamicHelp": false,
25976
25976
  "multiple": false,
25977
25977
  "type": "option"
@@ -26302,7 +26302,7 @@
26302
26302
  "description": "Inclusive end date (YYYY-MM-DD)",
26303
26303
  "helpGroup": "QUERY",
26304
26304
  "name": "to",
26305
- "default": "2026-04-13",
26305
+ "default": "2026-04-14",
26306
26306
  "hasDynamicHelp": false,
26307
26307
  "multiple": false,
26308
26308
  "type": "option"
@@ -26624,7 +26624,7 @@
26624
26624
  "description": "Inclusive end date (YYYY-MM-DD)",
26625
26625
  "helpGroup": "QUERY",
26626
26626
  "name": "to",
26627
- "default": "2026-04-13",
26627
+ "default": "2026-04-14",
26628
26628
  "hasDynamicHelp": false,
26629
26629
  "multiple": false,
26630
26630
  "type": "option"
@@ -26955,7 +26955,7 @@
26955
26955
  "description": "Inclusive end date (YYYY-MM-DD)",
26956
26956
  "helpGroup": "QUERY",
26957
26957
  "name": "to",
26958
- "default": "2026-04-13",
26958
+ "default": "2026-04-14",
26959
26959
  "hasDynamicHelp": false,
26960
26960
  "multiple": false,
26961
26961
  "type": "option"
@@ -27286,7 +27286,7 @@
27286
27286
  "description": "Inclusive end date (YYYY-MM-DD)",
27287
27287
  "helpGroup": "QUERY",
27288
27288
  "name": "to",
27289
- "default": "2026-04-13",
27289
+ "default": "2026-04-14",
27290
27290
  "hasDynamicHelp": false,
27291
27291
  "multiple": false,
27292
27292
  "type": "option"
@@ -27630,7 +27630,7 @@
27630
27630
  "description": "Inclusive end date (YYYY-MM-DD)",
27631
27631
  "helpGroup": "QUERY",
27632
27632
  "name": "to",
27633
- "default": "2026-04-13",
27633
+ "default": "2026-04-14",
27634
27634
  "hasDynamicHelp": false,
27635
27635
  "multiple": false,
27636
27636
  "type": "option"
@@ -27970,7 +27970,7 @@
27970
27970
  "description": "Inclusive end date (YYYY-MM-DD)",
27971
27971
  "helpGroup": "QUERY",
27972
27972
  "name": "to",
27973
- "default": "2026-04-13",
27973
+ "default": "2026-04-14",
27974
27974
  "hasDynamicHelp": false,
27975
27975
  "multiple": false,
27976
27976
  "type": "option"
@@ -59922,5 +59922,5 @@
59922
59922
  ]
59923
59923
  }
59924
59924
  },
59925
- "version": "1.3.0"
59925
+ "version": "1.3.2"
59926
59926
  }