@salesforce/b2c-cli 1.3.1 → 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 +1227 -1227
  2. package/package.json +2 -2
@@ -9169,20 +9169,23 @@
9169
9169
  "tail-logs.js"
9170
9170
  ]
9171
9171
  },
9172
- "sandbox:create": {
9173
- "aliases": [
9174
- "ods:create"
9175
- ],
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",
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",
9178
9182
  "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"
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"
9186
9189
  ],
9187
9190
  "flags": {
9188
9191
  "json": {
@@ -9299,212 +9302,230 @@
9299
9302
  "multiple": false,
9300
9303
  "type": "option"
9301
9304
  },
9302
- "client-id": {
9303
- "description": "Client ID for OAuth",
9304
- "env": "SFCC_CLIENT_ID",
9305
- "helpGroup": "AUTH",
9306
- "name": "client-id",
9305
+ "name": {
9306
+ "char": "n",
9307
+ "description": "Primary name parameter (shorthand for --option name=VALUE)",
9308
+ "name": "name",
9307
9309
  "hasDynamicHelp": false,
9308
9310
  "multiple": false,
9309
9311
  "type": "option"
9310
9312
  },
9311
- "client-secret": {
9312
- "description": "Client Secret for OAuth",
9313
- "env": "SFCC_CLIENT_SECRET",
9314
- "helpGroup": "AUTH",
9315
- "name": "client-secret",
9313
+ "output": {
9314
+ "char": "o",
9315
+ "description": "Output directory (defaults to scaffold default or current directory)",
9316
+ "name": "output",
9316
9317
  "hasDynamicHelp": false,
9317
9318
  "multiple": false,
9318
9319
  "type": "option"
9319
9320
  },
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": ",",
9321
+ "option": {
9322
+ "description": "Parameter value in key=value format (can be repeated)",
9323
+ "name": "option",
9326
9324
  "hasDynamicHelp": false,
9327
9325
  "multiple": true,
9328
9326
  "type": "option"
9329
9327
  },
9330
- "short-code": {
9331
- "description": "SCAPI short code",
9332
- "env": "SFCC_SHORTCODE",
9333
- "helpGroup": "AUTH",
9334
- "name": "short-code",
9335
- "hasDynamicHelp": false,
9336
- "multiple": false,
9337
- "type": "option"
9328
+ "dry-run": {
9329
+ "description": "Preview files without writing them",
9330
+ "name": "dry-run",
9331
+ "allowNo": false,
9332
+ "type": "boolean"
9338
9333
  },
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",
9347
- "hasDynamicHelp": false,
9348
- "multiple": false,
9349
- "type": "option"
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",
9368
+ "examples": [
9369
+ "<%= config.bin %> scaffold --help",
9370
+ "<%= config.bin %> scaffold list",
9371
+ "<%= config.bin %> scaffold cartridge",
9372
+ "<%= config.bin %> scaffold cartridge --name app_custom"
9373
+ ],
9374
+ "flags": {
9375
+ "json": {
9376
+ "description": "Output result as JSON",
9377
+ "helpGroup": "GLOBAL",
9378
+ "name": "json",
9379
+ "allowNo": false,
9380
+ "type": "boolean"
9350
9381
  },
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": ",",
9382
+ "log-level": {
9383
+ "description": "Set logging verbosity level",
9384
+ "env": "SFCC_LOG_LEVEL",
9385
+ "helpGroup": "GLOBAL",
9386
+ "name": "log-level",
9360
9387
  "hasDynamicHelp": false,
9361
- "multiple": true,
9388
+ "multiple": false,
9362
9389
  "options": [
9363
- "client-credentials",
9364
- "implicit",
9365
- "basic",
9366
- "api-key"
9390
+ "trace",
9391
+ "debug",
9392
+ "info",
9393
+ "warn",
9394
+ "error",
9395
+ "silent"
9367
9396
  ],
9368
9397
  "type": "option"
9369
9398
  },
9370
- "user-auth": {
9371
- "description": "Use browser-based user authentication (implicit OAuth flow)",
9372
- "exclusive": [
9373
- "auth-methods"
9399
+ "debug": {
9400
+ "char": "D",
9401
+ "description": "Enable debug logging (shorthand for --log-level debug)",
9402
+ "env": "SFCC_DEBUG",
9403
+ "helpGroup": "GLOBAL",
9404
+ "name": "debug",
9405
+ "allowNo": false,
9406
+ "type": "boolean"
9407
+ },
9408
+ "jsonl": {
9409
+ "aliases": [
9410
+ "json-logs"
9374
9411
  ],
9375
- "helpGroup": "AUTH",
9376
- "name": "user-auth",
9412
+ "description": "Output log messages as JSON lines",
9413
+ "env": "SFCC_JSON_LOGS",
9414
+ "helpGroup": "GLOBAL",
9415
+ "name": "jsonl",
9377
9416
  "allowNo": false,
9378
9417
  "type": "boolean"
9379
9418
  },
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",
9419
+ "lang": {
9420
+ "char": "L",
9421
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
9422
+ "helpGroup": "GLOBAL",
9423
+ "name": "lang",
9385
9424
  "hasDynamicHelp": false,
9386
9425
  "multiple": false,
9387
9426
  "type": "option"
9388
9427
  },
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",
9428
+ "config": {
9429
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
9430
+ "env": "SFCC_CONFIG",
9431
+ "helpGroup": "GLOBAL",
9432
+ "name": "config",
9393
9433
  "hasDynamicHelp": false,
9394
9434
  "multiple": false,
9395
9435
  "type": "option"
9396
9436
  },
9397
- "realm": {
9398
- "char": "r",
9399
- "description": "Realm ID (four-letter ID)",
9400
- "name": "realm",
9401
- "required": true,
9437
+ "instance": {
9438
+ "char": "i",
9439
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
9440
+ "env": "SFCC_INSTANCE",
9441
+ "helpGroup": "GLOBAL",
9442
+ "name": "instance",
9402
9443
  "hasDynamicHelp": false,
9403
9444
  "multiple": false,
9404
9445
  "type": "option"
9405
9446
  },
9406
- "ttl": {
9407
- "description": "Time to live in hours (0 for infinite)",
9408
- "name": "ttl",
9409
- "default": 24,
9447
+ "project-directory": {
9448
+ "aliases": [
9449
+ "working-directory"
9450
+ ],
9451
+ "description": "Project directory",
9452
+ "env": "SFCC_PROJECT_DIRECTORY",
9453
+ "helpGroup": "GLOBAL",
9454
+ "name": "project-directory",
9410
9455
  "hasDynamicHelp": false,
9411
9456
  "multiple": false,
9412
9457
  "type": "option"
9413
9458
  },
9414
- "profile": {
9415
- "description": "Resource profile (medium, large, xlarge, xxlarge)",
9416
- "name": "profile",
9417
- "default": "medium",
9459
+ "extra-query": {
9460
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
9461
+ "env": "SFCC_EXTRA_QUERY",
9462
+ "helpGroup": "GLOBAL",
9463
+ "hidden": true,
9464
+ "name": "extra-query",
9418
9465
  "hasDynamicHelp": false,
9419
9466
  "multiple": false,
9420
- "options": [
9421
- "medium",
9422
- "large",
9423
- "xlarge",
9424
- "xxlarge"
9425
- ],
9426
9467
  "type": "option"
9427
9468
  },
9428
- "auto-scheduled": {
9429
- "description": "Enable automatic start/stop scheduling",
9430
- "name": "auto-scheduled",
9431
- "allowNo": false,
9432
- "type": "boolean"
9433
- },
9434
- "wait": {
9435
- "char": "w",
9436
- "description": "Wait for the sandbox to reach started or failed state before returning",
9437
- "name": "wait",
9438
- "allowNo": false,
9439
- "type": "boolean"
9440
- },
9441
- "poll-interval": {
9442
- "dependsOn": [
9443
- "wait"
9444
- ],
9445
- "description": "Polling interval in seconds when using --wait",
9446
- "name": "poll-interval",
9447
- "default": 10,
9469
+ "extra-body": {
9470
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
9471
+ "env": "SFCC_EXTRA_BODY",
9472
+ "helpGroup": "GLOBAL",
9473
+ "hidden": true,
9474
+ "name": "extra-body",
9448
9475
  "hasDynamicHelp": false,
9449
9476
  "multiple": false,
9450
9477
  "type": "option"
9451
9478
  },
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,
9479
+ "extra-headers": {
9480
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
9481
+ "env": "SFCC_EXTRA_HEADERS",
9482
+ "helpGroup": "GLOBAL",
9483
+ "hidden": true,
9484
+ "name": "extra-headers",
9459
9485
  "hasDynamicHelp": false,
9460
9486
  "multiple": false,
9461
9487
  "type": "option"
9462
9488
  },
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",
9489
+ "name": {
9490
+ "char": "n",
9491
+ "description": "Primary name parameter (shorthand for --option name=VALUE)",
9492
+ "name": "name",
9472
9493
  "hasDynamicHelp": false,
9473
9494
  "multiple": false,
9474
9495
  "type": "option"
9475
9496
  },
9476
- "ocapi-settings": {
9477
- "description": "Custom OCAPI settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"resources\":[...]}]",
9478
- "name": "ocapi-settings",
9497
+ "output": {
9498
+ "char": "o",
9499
+ "description": "Output directory (defaults to scaffold default or current directory)",
9500
+ "name": "output",
9479
9501
  "hasDynamicHelp": false,
9480
9502
  "multiple": false,
9481
9503
  "type": "option"
9482
9504
  },
9483
- "webdav-settings": {
9484
- "description": "Custom WebDAV settings JSON array (replaces defaults). Format: [{\"client_id\":\"...\",\"permissions\":[...]}]",
9485
- "name": "webdav-settings",
9505
+ "option": {
9506
+ "description": "Parameter value in key=value format (can be repeated)",
9507
+ "name": "option",
9486
9508
  "hasDynamicHelp": false,
9487
- "multiple": false,
9509
+ "multiple": true,
9488
9510
  "type": "option"
9489
9511
  },
9490
- "start-scheduler": {
9491
- "description": "Start schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"08:00:00+03:00\"}",
9492
- "name": "start-scheduler",
9493
- "hasDynamicHelp": false,
9494
- "multiple": false,
9495
- "type": "option"
9512
+ "dry-run": {
9513
+ "description": "Preview files without writing them",
9514
+ "name": "dry-run",
9515
+ "allowNo": false,
9516
+ "type": "boolean"
9496
9517
  },
9497
- "stop-scheduler": {
9498
- "description": "Stop schedule JSON. Format: {\"weekdays\":[\"MONDAY\",...],\"time\":\"19:00:00Z\"}",
9499
- "name": "stop-scheduler",
9500
- "hasDynamicHelp": false,
9501
- "multiple": false,
9502
- "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"
9503
9524
  }
9504
9525
  },
9505
9526
  "hasDynamicHelp": false,
9506
9527
  "hiddenAliases": [],
9507
- "id": "sandbox:create",
9528
+ "id": "scaffold",
9508
9529
  "pluginAlias": "@salesforce/b2c-cli",
9509
9530
  "pluginName": "@salesforce/b2c-cli",
9510
9531
  "pluginType": "core",
@@ -9514,28 +9535,32 @@
9514
9535
  "relativePath": [
9515
9536
  "dist",
9516
9537
  "commands",
9517
- "sandbox",
9518
- "create.js"
9538
+ "scaffold",
9539
+ "index.js"
9519
9540
  ]
9520
9541
  },
9521
- "sandbox:delete": {
9522
- "aliases": [
9523
- "ods:delete"
9524
- ],
9542
+ "scaffold:info": {
9543
+ "aliases": [],
9525
9544
  "args": {
9526
- "sandboxId": {
9527
- "description": "Sandbox ID (UUID or realm-instance, e.g., abcd-123)",
9528
- "name": "sandboxId",
9545
+ "scaffoldId": {
9546
+ "description": "Scaffold ID to get info for",
9547
+ "name": "scaffoldId",
9529
9548
  "required": true
9530
9549
  }
9531
9550
  },
9532
- "description": "Delete an on-demand sandbox\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html#b2c-sandbox-delete",
9551
+ "description": "Show detailed information about a scaffold\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-info",
9533
9552
  "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"
9553
+ "<%= config.bin %> <%= command.id %> cartridge",
9554
+ "<%= config.bin %> <%= command.id %> custom-api --json"
9537
9555
  ],
9538
9556
  "flags": {
9557
+ "json": {
9558
+ "description": "Output result as JSON",
9559
+ "helpGroup": "GLOBAL",
9560
+ "name": "json",
9561
+ "allowNo": false,
9562
+ "type": "boolean"
9563
+ },
9539
9564
  "log-level": {
9540
9565
  "description": "Set logging verbosity level",
9541
9566
  "env": "SFCC_LOG_LEVEL",
@@ -9562,13 +9587,6 @@
9562
9587
  "allowNo": false,
9563
9588
  "type": "boolean"
9564
9589
  },
9565
- "json": {
9566
- "description": "Output result as JSON",
9567
- "helpGroup": "GLOBAL",
9568
- "name": "json",
9569
- "allowNo": false,
9570
- "type": "boolean"
9571
- },
9572
9590
  "jsonl": {
9573
9591
  "aliases": [
9574
9592
  "json-logs"
@@ -9649,172 +9667,221 @@
9649
9667
  "hasDynamicHelp": false,
9650
9668
  "multiple": false,
9651
9669
  "type": "option"
9670
+ }
9671
+ },
9672
+ "hasDynamicHelp": false,
9673
+ "hiddenAliases": [],
9674
+ "id": "scaffold:info",
9675
+ "pluginAlias": "@salesforce/b2c-cli",
9676
+ "pluginName": "@salesforce/b2c-cli",
9677
+ "pluginType": "core",
9678
+ "strict": true,
9679
+ "enableJsonFlag": true,
9680
+ "isESM": true,
9681
+ "relativePath": [
9682
+ "dist",
9683
+ "commands",
9684
+ "scaffold",
9685
+ "info.js"
9686
+ ]
9687
+ },
9688
+ "scaffold:init": {
9689
+ "aliases": [],
9690
+ "args": {
9691
+ "name": {
9692
+ "description": "Name for the new scaffold (kebab-case)",
9693
+ "name": "name",
9694
+ "required": false
9695
+ }
9696
+ },
9697
+ "description": "Create a new custom scaffold template\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html#b2c-scaffold-init",
9698
+ "examples": [
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"
9703
+ ],
9704
+ "flags": {
9705
+ "json": {
9706
+ "description": "Output result as JSON",
9707
+ "helpGroup": "GLOBAL",
9708
+ "name": "json",
9709
+ "allowNo": false,
9710
+ "type": "boolean"
9652
9711
  },
9653
- "client-id": {
9654
- "description": "Client ID for OAuth",
9655
- "env": "SFCC_CLIENT_ID",
9656
- "helpGroup": "AUTH",
9657
- "name": "client-id",
9712
+ "log-level": {
9713
+ "description": "Set logging verbosity level",
9714
+ "env": "SFCC_LOG_LEVEL",
9715
+ "helpGroup": "GLOBAL",
9716
+ "name": "log-level",
9658
9717
  "hasDynamicHelp": false,
9659
9718
  "multiple": false,
9719
+ "options": [
9720
+ "trace",
9721
+ "debug",
9722
+ "info",
9723
+ "warn",
9724
+ "error",
9725
+ "silent"
9726
+ ],
9660
9727
  "type": "option"
9661
9728
  },
9662
- "client-secret": {
9663
- "description": "Client Secret for OAuth",
9664
- "env": "SFCC_CLIENT_SECRET",
9665
- "helpGroup": "AUTH",
9666
- "name": "client-secret",
9729
+ "debug": {
9730
+ "char": "D",
9731
+ "description": "Enable debug logging (shorthand for --log-level debug)",
9732
+ "env": "SFCC_DEBUG",
9733
+ "helpGroup": "GLOBAL",
9734
+ "name": "debug",
9735
+ "allowNo": false,
9736
+ "type": "boolean"
9737
+ },
9738
+ "jsonl": {
9739
+ "aliases": [
9740
+ "json-logs"
9741
+ ],
9742
+ "description": "Output log messages as JSON lines",
9743
+ "env": "SFCC_JSON_LOGS",
9744
+ "helpGroup": "GLOBAL",
9745
+ "name": "jsonl",
9746
+ "allowNo": false,
9747
+ "type": "boolean"
9748
+ },
9749
+ "lang": {
9750
+ "char": "L",
9751
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
9752
+ "helpGroup": "GLOBAL",
9753
+ "name": "lang",
9667
9754
  "hasDynamicHelp": false,
9668
9755
  "multiple": false,
9669
9756
  "type": "option"
9670
9757
  },
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": ",",
9758
+ "config": {
9759
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
9760
+ "env": "SFCC_CONFIG",
9761
+ "helpGroup": "GLOBAL",
9762
+ "name": "config",
9677
9763
  "hasDynamicHelp": false,
9678
- "multiple": true,
9764
+ "multiple": false,
9679
9765
  "type": "option"
9680
9766
  },
9681
- "short-code": {
9682
- "description": "SCAPI short code",
9683
- "env": "SFCC_SHORTCODE",
9684
- "helpGroup": "AUTH",
9685
- "name": "short-code",
9767
+ "instance": {
9768
+ "char": "i",
9769
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
9770
+ "env": "SFCC_INSTANCE",
9771
+ "helpGroup": "GLOBAL",
9772
+ "name": "instance",
9686
9773
  "hasDynamicHelp": false,
9687
9774
  "multiple": false,
9688
9775
  "type": "option"
9689
9776
  },
9690
- "tenant-id": {
9777
+ "project-directory": {
9691
9778
  "aliases": [
9692
- "tenant"
9779
+ "working-directory"
9693
9780
  ],
9694
- "description": "Organization/tenant ID",
9695
- "env": "SFCC_TENANT_ID",
9696
- "helpGroup": "AUTH",
9697
- "name": "tenant-id",
9781
+ "description": "Project directory",
9782
+ "env": "SFCC_PROJECT_DIRECTORY",
9783
+ "helpGroup": "GLOBAL",
9784
+ "name": "project-directory",
9698
9785
  "hasDynamicHelp": false,
9699
9786
  "multiple": false,
9700
9787
  "type": "option"
9701
9788
  },
9702
- "auth-methods": {
9703
- "description": "Allowed auth methods in priority order (comma-separated)",
9704
- "env": "SFCC_AUTH_METHODS",
9705
- "exclusive": [
9706
- "user-auth"
9707
- ],
9708
- "helpGroup": "AUTH",
9709
- "name": "auth-methods",
9710
- "delimiter": ",",
9789
+ "extra-query": {
9790
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
9791
+ "env": "SFCC_EXTRA_QUERY",
9792
+ "helpGroup": "GLOBAL",
9793
+ "hidden": true,
9794
+ "name": "extra-query",
9711
9795
  "hasDynamicHelp": false,
9712
- "multiple": true,
9713
- "options": [
9714
- "client-credentials",
9715
- "implicit",
9716
- "basic",
9717
- "api-key"
9718
- ],
9796
+ "multiple": false,
9719
9797
  "type": "option"
9720
9798
  },
9721
- "user-auth": {
9722
- "description": "Use browser-based user authentication (implicit OAuth flow)",
9723
- "exclusive": [
9724
- "auth-methods"
9725
- ],
9726
- "helpGroup": "AUTH",
9727
- "name": "user-auth",
9728
- "allowNo": false,
9729
- "type": "boolean"
9730
- },
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",
9799
+ "extra-body": {
9800
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
9801
+ "env": "SFCC_EXTRA_BODY",
9802
+ "helpGroup": "GLOBAL",
9803
+ "hidden": true,
9804
+ "name": "extra-body",
9736
9805
  "hasDynamicHelp": false,
9737
9806
  "multiple": false,
9738
9807
  "type": "option"
9739
9808
  },
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",
9809
+ "extra-headers": {
9810
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
9811
+ "env": "SFCC_EXTRA_HEADERS",
9812
+ "helpGroup": "GLOBAL",
9813
+ "hidden": true,
9814
+ "name": "extra-headers",
9744
9815
  "hasDynamicHelp": false,
9745
9816
  "multiple": false,
9746
9817
  "type": "option"
9747
9818
  },
9748
- "force": {
9749
- "char": "f",
9750
- "description": "Skip confirmation prompt",
9751
- "name": "force",
9819
+ "project": {
9820
+ "description": "Create in project scaffolds directory (.b2c/scaffolds/)",
9821
+ "exclusive": [
9822
+ "user",
9823
+ "output"
9824
+ ],
9825
+ "name": "project",
9752
9826
  "allowNo": false,
9753
9827
  "type": "boolean"
9754
9828
  },
9755
- "wait": {
9756
- "char": "w",
9757
- "description": "Wait for the sandbox to be fully deleted before returning",
9758
- "name": "wait",
9829
+ "user": {
9830
+ "description": "Create in user scaffolds directory (~/.b2c/scaffolds/)",
9831
+ "exclusive": [
9832
+ "project",
9833
+ "output"
9834
+ ],
9835
+ "name": "user",
9759
9836
  "allowNo": false,
9760
9837
  "type": "boolean"
9761
9838
  },
9762
- "poll-interval": {
9763
- "dependsOn": [
9764
- "wait"
9839
+ "output": {
9840
+ "char": "o",
9841
+ "description": "Custom output directory for the scaffold",
9842
+ "exclusive": [
9843
+ "project",
9844
+ "user"
9765
9845
  ],
9766
- "description": "Polling interval in seconds when using --wait",
9767
- "name": "poll-interval",
9768
- "default": 10,
9846
+ "name": "output",
9769
9847
  "hasDynamicHelp": false,
9770
9848
  "multiple": false,
9771
9849
  "type": "option"
9772
9850
  },
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"
9851
+ "force": {
9852
+ "char": "f",
9853
+ "description": "Overwrite existing scaffold if it exists",
9854
+ "name": "force",
9855
+ "allowNo": false,
9856
+ "type": "boolean"
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"
10016
+ "built-in",
10017
+ "user",
10018
+ "project",
10019
+ "plugin"
9999
10020
  ],
10000
10021
  "type": "option"
10001
10022
  },
10002
- "user-auth": {
10003
- "description": "Use browser-based user authentication (implicit OAuth flow)",
10004
- "exclusive": [
10005
- "auth-methods"
10006
- ],
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
- "type": "option"
10020
- },
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": {
@@ -59922,5 +59922,5 @@
59922
59922
  ]
59923
59923
  }
59924
59924
  },
59925
- "version": "1.3.1"
59925
+ "version": "1.3.2"
59926
59926
  }