@salesforce/cli 1.69.0 → 1.71.0

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.69.0",
2
+ "version": "1.71.0",
3
3
  "commands": {
4
4
  "cmdt:generate:field": {
5
5
  "id": "cmdt:generate:field",
@@ -612,8 +612,8 @@
612
612
  "char": "p",
613
613
  "summary": "URL to append to the domain created when Digital Experiences was enabled for this org.",
614
614
  "description": "For example, if your domain name is https://MyDomainName.my.site.com and you create a customer site, enter 'customers' to create the unique URL https://MyDomainName.my.site.com/customers.",
615
- "required": true,
616
615
  "multiple": false,
616
+ "default": "",
617
617
  "deprecateAliases": true,
618
618
  "aliases": [
619
619
  "urlpathprefix"
@@ -994,17 +994,953 @@
994
994
  },
995
995
  "args": {}
996
996
  },
997
- "dev:convert:messages": {
998
- "id": "dev:convert:messages",
999
- "summary": "Convert a .json messages file",
1000
- "strict": true,
1001
- "pluginName": "@salesforce/plugin-dev",
1002
- "pluginAlias": "@salesforce/plugin-dev",
997
+ "dev:convert:messages": {
998
+ "id": "dev:convert:messages",
999
+ "summary": "Convert a .json messages file",
1000
+ "strict": true,
1001
+ "pluginName": "@salesforce/plugin-dev",
1002
+ "pluginAlias": "@salesforce/plugin-dev",
1003
+ "pluginType": "jit",
1004
+ "aliases": [],
1005
+ "examples": [
1006
+ "<%= config.bin %> <%= command.id %> --filename something.json",
1007
+ "<%= config.bin %> <%= command.id %> --project-dir ./path/to/plugin --filename something.json"
1008
+ ],
1009
+ "flags": {
1010
+ "json": {
1011
+ "name": "json",
1012
+ "type": "boolean",
1013
+ "description": "Format output as json.",
1014
+ "helpGroup": "GLOBAL",
1015
+ "allowNo": false
1016
+ },
1017
+ "project-dir": {
1018
+ "name": "project-dir",
1019
+ "type": "option",
1020
+ "char": "p",
1021
+ "summary": "Location of the project whose messages are to be audited.",
1022
+ "description": "Location of the project whose messages are to be audited.",
1023
+ "multiple": false,
1024
+ "default": ".",
1025
+ "aliases": [
1026
+ "projectdir"
1027
+ ]
1028
+ },
1029
+ "file-name": {
1030
+ "name": "file-name",
1031
+ "type": "option",
1032
+ "char": "f",
1033
+ "summary": "Filename to convert",
1034
+ "required": true,
1035
+ "multiple": true,
1036
+ "aliases": [
1037
+ "filename"
1038
+ ]
1039
+ }
1040
+ },
1041
+ "args": {}
1042
+ },
1043
+ "dev:generate:command": {
1044
+ "id": "dev:generate:command",
1045
+ "summary": "Generate a new sf command.",
1046
+ "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThe command generates basic source files, messages (\\*.md), and test files for your new command. The Typescript files contain import statements for the minimum required Salesforce libraries, and scaffold some basic code. The new type names come from the value you passed to the --name flag.\n\nThe command updates the package.json file, so if it detects conflicts with the existing file, you're prompted whether you want to overwrite the file. There are a number of package.json updates required for a new command, so we recommend you answer \"y\" so the command takes care of them all. If you answer \"n\", you must update the package.json file manually.",
1047
+ "strict": true,
1048
+ "pluginName": "@salesforce/plugin-dev",
1049
+ "pluginAlias": "@salesforce/plugin-dev",
1050
+ "pluginType": "jit",
1051
+ "aliases": [],
1052
+ "examples": [
1053
+ "Generate the files for a new \"sf my exciting command\":\n<%= config.bin %> <%= command.id %> --name my:exciting:command"
1054
+ ],
1055
+ "flags": {
1056
+ "name": {
1057
+ "name": "name",
1058
+ "type": "option",
1059
+ "char": "n",
1060
+ "summary": "Name of the new command. Use colons to separate the topic and command names.",
1061
+ "required": true,
1062
+ "multiple": false
1063
+ },
1064
+ "force": {
1065
+ "name": "force",
1066
+ "type": "boolean",
1067
+ "summary": "Overwrite existing files.",
1068
+ "allowNo": false
1069
+ },
1070
+ "nuts": {
1071
+ "name": "nuts",
1072
+ "type": "boolean",
1073
+ "summary": "Generate a NUT test file for the command.",
1074
+ "allowNo": true
1075
+ },
1076
+ "unit": {
1077
+ "name": "unit",
1078
+ "type": "boolean",
1079
+ "summary": "Generate a unit test file for the command.",
1080
+ "allowNo": true
1081
+ }
1082
+ },
1083
+ "args": {}
1084
+ },
1085
+ "dev:generate:flag": {
1086
+ "id": "dev:generate:flag",
1087
+ "summary": "Generate a flag for an existing command.",
1088
+ "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThis command is interactive. It first discovers all the commands currently implemented in the plugin, and asks you which you want to create a new flag for. It then prompts for other flag properties, such as its long name, optional short name, type, whether it's required, and so on. Long flag names must be kebab-case and not camelCase. The command doesn't let you use an existing long or short flag name. When the command completes, the Typescript file for the command is updated with the code for the new flag.\n\nUse the --dry-run flag to review new code for the command file without actually udpating it.",
1089
+ "strict": true,
1090
+ "pluginName": "@salesforce/plugin-dev",
1091
+ "pluginAlias": "@salesforce/plugin-dev",
1092
+ "pluginType": "jit",
1093
+ "aliases": [],
1094
+ "examples": [
1095
+ "Generate a new flag and update the command file:\n<%= config.bin %> <%= command.id %>",
1096
+ "Don't actually update the command file, just view the generated code:\n<%= config.bin %> <%= command.id %> --dry-run"
1097
+ ],
1098
+ "flags": {
1099
+ "dry-run": {
1100
+ "name": "dry-run",
1101
+ "type": "boolean",
1102
+ "char": "d",
1103
+ "summary": "Print new flag code instead of adding it to the command file.",
1104
+ "allowNo": false,
1105
+ "aliases": [
1106
+ "dryrun"
1107
+ ]
1108
+ }
1109
+ },
1110
+ "args": {}
1111
+ },
1112
+ "dev:generate:hook": {
1113
+ "id": "dev:generate:hook",
1114
+ "summary": "Generate a new sf hook.",
1115
+ "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThe command generates a basic Typescript source file in the \"src/hooks\" directory to get you started. The source file's name is based on the event you're hooking into, such as envList.ts for the \"sf env list\" command.\n\nThe command updates the package.json file, so if it detects conflicts with the existing file, you're prompted whether you want to overwrite the file. There are a number of package.json updates required for a new hook, so we recommend you answer \"y\" so the command takes care of them all. If you answer \"n\", you must update the package.json file manually.",
1116
+ "strict": true,
1117
+ "pluginName": "@salesforce/plugin-dev",
1118
+ "pluginAlias": "@salesforce/plugin-dev",
1119
+ "pluginType": "jit",
1120
+ "aliases": [],
1121
+ "examples": [
1122
+ "Generate source file for a hook into the \"sf env display\" command:\n<%= config.bin %> <%= command.id %> --event sf:env:display"
1123
+ ],
1124
+ "flags": {
1125
+ "force": {
1126
+ "name": "force",
1127
+ "type": "boolean",
1128
+ "summary": "Overwrite existing files.",
1129
+ "allowNo": false
1130
+ },
1131
+ "event": {
1132
+ "name": "event",
1133
+ "type": "option",
1134
+ "summary": "Event to run hook on. Use colons to separate topic and command names of the event.",
1135
+ "required": true,
1136
+ "multiple": false,
1137
+ "options": [
1138
+ "sf:env:list",
1139
+ "sf:env:display",
1140
+ "sf:deploy",
1141
+ "sf:logout"
1142
+ ]
1143
+ }
1144
+ },
1145
+ "args": {}
1146
+ },
1147
+ "dev:generate:library": {
1148
+ "id": "dev:generate:library",
1149
+ "summary": "Generate a new library.",
1150
+ "description": "This command is interactive. You're prompted for information to populate the new library, such as the npm scope (which must start with \"@\"), the name and description of the library, and its GitHub organization. The command clones the 'forcedotcom/library-template' GitHub repository, installs the library's npm package dependencies using yarn install, and updates the package properties.\n\nWhen the command completes, your new library contains a few sample source and test files to get you started.",
1151
+ "strict": true,
1152
+ "pluginName": "@salesforce/plugin-dev",
1153
+ "pluginAlias": "@salesforce/plugin-dev",
1154
+ "pluginType": "jit",
1155
+ "aliases": [],
1156
+ "examples": [
1157
+ "<%= config.bin %> <%= command.id %>"
1158
+ ],
1159
+ "flags": {},
1160
+ "args": {}
1161
+ },
1162
+ "dev:generate:plugin": {
1163
+ "id": "dev:generate:plugin",
1164
+ "summary": "Generate a new sf plugin.",
1165
+ "description": "This command is interactive. You're prompted for information to populate your new plugin, such as its name, description, author, and percentage of code coverage you want. The command clones the 'salesforcecli/plugin-template-sf' GitHub repository, installs the plug-in's npm package dependencies using yarn install, and updates the package properties.\n\nWhen the command completes, your new plugin contains the source, message, and test files for a sample \"sf hello world\" command.",
1166
+ "strict": true,
1167
+ "pluginName": "@salesforce/plugin-dev",
1168
+ "pluginAlias": "@salesforce/plugin-dev",
1169
+ "pluginType": "jit",
1170
+ "aliases": [
1171
+ "plugins:generate"
1172
+ ],
1173
+ "examples": [
1174
+ "<%= config.bin %> <%= command.id %>"
1175
+ ],
1176
+ "deprecateAliases": true,
1177
+ "flags": {},
1178
+ "args": {}
1179
+ },
1180
+ "deploy:functions": {
1181
+ "id": "deploy:functions",
1182
+ "summary": "Deploy a Salesforce Function to an org from your local project.",
1183
+ "description": "You must run this command from within a git repository. Only committed changes to Functions are deployed. The active branch is deployed unless specified otherwise with `--branch`.",
1184
+ "strict": true,
1185
+ "pluginName": "@salesforce/plugin-functions",
1186
+ "pluginAlias": "@salesforce/plugin-functions",
1187
+ "pluginType": "jit",
1188
+ "aliases": [],
1189
+ "examples": [
1190
+ "Deploy a Salesforce Function:\n<%= config.bin %> <%= command.id %> --connected-org org-alias",
1191
+ "Deploy to 'deploy-branch':\n<%= config.bin %> <%= command.id %> --connected-org org-alias --branch deploy-branch",
1192
+ "Overwrite the remote repository:\n<%= config.bin %> <%= command.id %> --connected-org org-alias --force"
1193
+ ],
1194
+ "flags": {
1195
+ "json": {
1196
+ "name": "json",
1197
+ "type": "boolean",
1198
+ "description": "Format output as json.",
1199
+ "helpGroup": "GLOBAL",
1200
+ "allowNo": false
1201
+ },
1202
+ "connected-org": {
1203
+ "name": "connected-org",
1204
+ "type": "option",
1205
+ "char": "o",
1206
+ "description": "Username or alias for the org that the compute environment should be connected to.",
1207
+ "required": true,
1208
+ "multiple": false
1209
+ },
1210
+ "branch": {
1211
+ "name": "branch",
1212
+ "type": "option",
1213
+ "char": "b",
1214
+ "description": "Deploy the latest commit from a branch different from the currently active branch.",
1215
+ "multiple": false
1216
+ },
1217
+ "force": {
1218
+ "name": "force",
1219
+ "type": "boolean",
1220
+ "description": "Ignore warnings and overwrite remote repository (not allowed in production).",
1221
+ "allowNo": false
1222
+ },
1223
+ "quiet": {
1224
+ "name": "quiet",
1225
+ "type": "boolean",
1226
+ "char": "q",
1227
+ "description": "Limit the amount of output displayed from the deploy process.",
1228
+ "allowNo": false
1229
+ }
1230
+ },
1231
+ "args": {}
1232
+ },
1233
+ "env:delete": {
1234
+ "id": "env:delete",
1235
+ "summary": "Delete an environment.",
1236
+ "description": "You must include the name of the environment to delete using '--target-compute'. Run 'sf env list' to see a list of environments.\n\nRunning this command will prompt a confirmation. If you want to skip this confirmation, use the '--confirm' flag and the environment alias to skip confirmation.",
1237
+ "strict": true,
1238
+ "pluginName": "@salesforce/plugin-functions",
1239
+ "pluginAlias": "@salesforce/plugin-functions",
1240
+ "pluginType": "jit",
1241
+ "aliases": [],
1242
+ "examples": [
1243
+ "Delete a compute environment:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias",
1244
+ "Delete without a confirmation step:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias --confirm environment-alias"
1245
+ ],
1246
+ "flags": {
1247
+ "json": {
1248
+ "name": "json",
1249
+ "type": "boolean",
1250
+ "description": "Format output as json.",
1251
+ "helpGroup": "GLOBAL",
1252
+ "allowNo": false
1253
+ },
1254
+ "target-compute": {
1255
+ "name": "target-compute",
1256
+ "type": "option",
1257
+ "char": "e",
1258
+ "description": "Environment name.",
1259
+ "required": false,
1260
+ "multiple": false,
1261
+ "exclusive": [
1262
+ "environment"
1263
+ ]
1264
+ },
1265
+ "environment": {
1266
+ "name": "environment",
1267
+ "type": "option",
1268
+ "char": "e",
1269
+ "description": "Environment name.",
1270
+ "hidden": true,
1271
+ "required": false,
1272
+ "multiple": false,
1273
+ "exclusive": [
1274
+ "target-compute"
1275
+ ]
1276
+ },
1277
+ "confirm": {
1278
+ "name": "confirm",
1279
+ "type": "option",
1280
+ "description": "Confirmation name.",
1281
+ "helpValue": "name",
1282
+ "multiple": true
1283
+ }
1284
+ },
1285
+ "args": {}
1286
+ },
1287
+ "env:log": {
1288
+ "id": "env:log",
1289
+ "summary": "Stream log output for an environment.",
1290
+ "strict": true,
1291
+ "pluginName": "@salesforce/plugin-functions",
1292
+ "pluginAlias": "@salesforce/plugin-functions",
1293
+ "pluginType": "jit",
1294
+ "state": "beta",
1295
+ "aliases": [],
1296
+ "examples": [
1297
+ "Stream log output:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias"
1298
+ ],
1299
+ "flags": {
1300
+ "target-compute": {
1301
+ "name": "target-compute",
1302
+ "type": "option",
1303
+ "char": "e",
1304
+ "description": "Compute environment name to retrieve logs.",
1305
+ "required": false,
1306
+ "multiple": false,
1307
+ "exclusive": [
1308
+ "environment"
1309
+ ]
1310
+ },
1311
+ "environment": {
1312
+ "name": "environment",
1313
+ "type": "option",
1314
+ "char": "e",
1315
+ "description": "Environment name.",
1316
+ "hidden": true,
1317
+ "required": false,
1318
+ "multiple": false,
1319
+ "exclusive": [
1320
+ "target-compute"
1321
+ ]
1322
+ },
1323
+ "num": {
1324
+ "name": "num",
1325
+ "type": "option",
1326
+ "char": "n",
1327
+ "description": "Number of lines to display.",
1328
+ "multiple": false
1329
+ }
1330
+ },
1331
+ "args": {}
1332
+ },
1333
+ "generate:function": {
1334
+ "id": "generate:function",
1335
+ "summary": "Create a Salesforce Function with basic scaffolding specific to a given language.",
1336
+ "description": "Both '--language' and '--name' are required flags. Function names must start with a capital letter.",
1337
+ "strict": true,
1338
+ "pluginName": "@salesforce/plugin-functions",
1339
+ "pluginAlias": "@salesforce/plugin-functions",
1340
+ "pluginType": "jit",
1341
+ "aliases": [],
1342
+ "examples": [
1343
+ "Create a JavaScript function:\n<%= config.bin %> <%= command.id %> --function-name myfunction --language javascript"
1344
+ ],
1345
+ "flags": {
1346
+ "function-name": {
1347
+ "name": "function-name",
1348
+ "type": "option",
1349
+ "char": "n",
1350
+ "description": "Function name. Must start with a capital letter.",
1351
+ "multiple": false,
1352
+ "exclusive": [
1353
+ "name"
1354
+ ]
1355
+ },
1356
+ "name": {
1357
+ "name": "name",
1358
+ "type": "option",
1359
+ "char": "n",
1360
+ "description": "Function name. Must start with a capital letter.",
1361
+ "hidden": true,
1362
+ "multiple": false,
1363
+ "exclusive": [
1364
+ "function-name"
1365
+ ]
1366
+ },
1367
+ "language": {
1368
+ "name": "language",
1369
+ "type": "option",
1370
+ "char": "l",
1371
+ "description": "The language in which the function is written.",
1372
+ "required": true,
1373
+ "multiple": false,
1374
+ "options": [
1375
+ "java",
1376
+ "javascript",
1377
+ "python",
1378
+ "typescript"
1379
+ ]
1380
+ }
1381
+ },
1382
+ "args": {}
1383
+ },
1384
+ "login:functions": {
1385
+ "id": "login:functions",
1386
+ "summary": "Log in to Salesforce Functions.",
1387
+ "description": "This step is required to develop or deploy Salesforce Functions.",
1388
+ "strict": true,
1389
+ "pluginName": "@salesforce/plugin-functions",
1390
+ "pluginAlias": "@salesforce/plugin-functions",
1391
+ "pluginType": "jit",
1392
+ "aliases": [],
1393
+ "examples": [
1394
+ "Log in to Salesforce Functions:\n<%= config.bin %> <%= command.id %>"
1395
+ ],
1396
+ "flags": {
1397
+ "json": {
1398
+ "name": "json",
1399
+ "type": "boolean",
1400
+ "description": "Format output as json.",
1401
+ "helpGroup": "GLOBAL",
1402
+ "allowNo": false
1403
+ }
1404
+ },
1405
+ "args": {}
1406
+ },
1407
+ "logout:functions": {
1408
+ "id": "logout:functions",
1409
+ "summary": "Log out of your Salesforce Functions account.",
1410
+ "strict": true,
1411
+ "pluginName": "@salesforce/plugin-functions",
1412
+ "pluginAlias": "@salesforce/plugin-functions",
1413
+ "pluginType": "jit",
1414
+ "aliases": [],
1415
+ "examples": [
1416
+ "Log out:\n<%= config.bin %> <%= command.id %>"
1417
+ ],
1418
+ "flags": {
1419
+ "json": {
1420
+ "name": "json",
1421
+ "type": "boolean",
1422
+ "description": "Format output as json.",
1423
+ "helpGroup": "GLOBAL",
1424
+ "allowNo": false
1425
+ }
1426
+ },
1427
+ "args": {}
1428
+ },
1429
+ "run:function": {
1430
+ "id": "run:function",
1431
+ "summary": "Send a cloudevent to a function.",
1432
+ "strict": true,
1433
+ "pluginName": "@salesforce/plugin-functions",
1434
+ "pluginAlias": "@salesforce/plugin-functions",
1435
+ "pluginType": "jit",
1436
+ "aliases": [],
1437
+ "examples": [
1438
+ "Run a function:\n<%= config.bin %> <%= command.id %> --url http://path/to/function",
1439
+ "Run a function with a payload and a JSON response:\n<%= config.bin %> <%= command.id %> --url http://path/to/function --payload '@file.json' --structured"
1440
+ ],
1441
+ "flags": {
1442
+ "json": {
1443
+ "name": "json",
1444
+ "type": "boolean",
1445
+ "description": "Format output as json.",
1446
+ "helpGroup": "GLOBAL",
1447
+ "allowNo": false
1448
+ },
1449
+ "function-url": {
1450
+ "name": "function-url",
1451
+ "type": "option",
1452
+ "char": "l",
1453
+ "description": "URL of the function to run.",
1454
+ "multiple": false,
1455
+ "exclusive": [
1456
+ "url"
1457
+ ]
1458
+ },
1459
+ "url": {
1460
+ "name": "url",
1461
+ "type": "option",
1462
+ "char": "l",
1463
+ "description": "URL of the function to run.",
1464
+ "hidden": true,
1465
+ "multiple": false,
1466
+ "exclusive": [
1467
+ "function-url"
1468
+ ]
1469
+ },
1470
+ "headers": {
1471
+ "name": "headers",
1472
+ "type": "option",
1473
+ "char": "H",
1474
+ "description": "Set headers.",
1475
+ "multiple": true
1476
+ },
1477
+ "payload": {
1478
+ "name": "payload",
1479
+ "type": "option",
1480
+ "char": "p",
1481
+ "description": "Set the payload of the cloudevent as a JSON object or a path to a file via @file.json.",
1482
+ "multiple": false
1483
+ },
1484
+ "structured": {
1485
+ "name": "structured",
1486
+ "type": "boolean",
1487
+ "char": "s",
1488
+ "description": "Set the cloudevent to be emitted as a structured JSON cloudevent.",
1489
+ "allowNo": false
1490
+ },
1491
+ "connected-org": {
1492
+ "name": "connected-org",
1493
+ "type": "option",
1494
+ "char": "o",
1495
+ "description": "Username or alias for the target org; overrides default target org.",
1496
+ "multiple": false
1497
+ }
1498
+ },
1499
+ "args": {}
1500
+ },
1501
+ "whoami:functions": {
1502
+ "id": "whoami:functions",
1503
+ "summary": "Show information on your Salesforce Functions login.",
1504
+ "description": "Returns your email and ID. Use '--show-token' to show your Salesforce Functions token.",
1505
+ "strict": true,
1506
+ "pluginName": "@salesforce/plugin-functions",
1507
+ "pluginAlias": "@salesforce/plugin-functions",
1508
+ "pluginType": "jit",
1509
+ "aliases": [],
1510
+ "examples": [
1511
+ "Get account information:\n<%= config.bin %> <%= command.id %>",
1512
+ "Show token and output result as JSON:\n<%= config.bin %> <%= command.id %> --show-token --json"
1513
+ ],
1514
+ "flags": {
1515
+ "json": {
1516
+ "name": "json",
1517
+ "type": "boolean",
1518
+ "description": "Format output as json.",
1519
+ "helpGroup": "GLOBAL",
1520
+ "allowNo": false
1521
+ },
1522
+ "show-token": {
1523
+ "name": "show-token",
1524
+ "type": "boolean",
1525
+ "description": "Show the stored functions token.",
1526
+ "hidden": true,
1527
+ "allowNo": false
1528
+ }
1529
+ },
1530
+ "args": {}
1531
+ },
1532
+ "env:create:compute": {
1533
+ "id": "env:create:compute",
1534
+ "summary": "Create a compute environment for use with Salesforce Functions.",
1535
+ "description": "Compute environments must be connected to a Salesforce org. By default the command uses your local environment's connected org. Use the '--connected-org' flag to specify a specific org. Run 'sf env list' to see a list of environments.",
1536
+ "strict": true,
1537
+ "pluginName": "@salesforce/plugin-functions",
1538
+ "pluginAlias": "@salesforce/plugin-functions",
1539
+ "pluginType": "jit",
1540
+ "aliases": [],
1541
+ "examples": [
1542
+ "Create a compute environment to run Salesforce Functions:\n<%= config.bin %> <%= command.id %>",
1543
+ "Connect the environment to a specific org:\n<%= config.bin %> <%= command.id %> --connected-org=org-alias",
1544
+ "Create an alias for the compute environment:\n<%= config.bin %> <%= command.id %> --alias environment-alias"
1545
+ ],
1546
+ "flags": {
1547
+ "json": {
1548
+ "name": "json",
1549
+ "type": "boolean",
1550
+ "description": "Format output as json.",
1551
+ "helpGroup": "GLOBAL",
1552
+ "allowNo": false
1553
+ },
1554
+ "connected-org": {
1555
+ "name": "connected-org",
1556
+ "type": "option",
1557
+ "char": "o",
1558
+ "description": "Username or alias for the org that the compute environment should be connected to.",
1559
+ "required": false,
1560
+ "multiple": false
1561
+ },
1562
+ "alias": {
1563
+ "name": "alias",
1564
+ "type": "option",
1565
+ "char": "a",
1566
+ "description": "Alias for the created environment.",
1567
+ "multiple": false
1568
+ }
1569
+ },
1570
+ "args": {}
1571
+ },
1572
+ "env:log:tail": {
1573
+ "id": "env:log:tail",
1574
+ "summary": "Stream log output for an environment.",
1575
+ "strict": true,
1576
+ "pluginName": "@salesforce/plugin-functions",
1577
+ "pluginAlias": "@salesforce/plugin-functions",
1578
+ "pluginType": "jit",
1579
+ "aliases": [],
1580
+ "examples": [
1581
+ "Stream log output:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias"
1582
+ ],
1583
+ "flags": {
1584
+ "target-compute": {
1585
+ "name": "target-compute",
1586
+ "type": "option",
1587
+ "char": "e",
1588
+ "description": "Compute environment name to retrieve logs.",
1589
+ "required": false,
1590
+ "multiple": false,
1591
+ "exclusive": [
1592
+ "environment"
1593
+ ]
1594
+ },
1595
+ "environment": {
1596
+ "name": "environment",
1597
+ "type": "option",
1598
+ "char": "e",
1599
+ "description": "Environment name.",
1600
+ "hidden": true,
1601
+ "required": false,
1602
+ "multiple": false,
1603
+ "exclusive": [
1604
+ "target-compute"
1605
+ ]
1606
+ }
1607
+ },
1608
+ "args": {}
1609
+ },
1610
+ "env:logdrain:add": {
1611
+ "id": "env:logdrain:add",
1612
+ "summary": "Add log drain to a specified environment.",
1613
+ "description": "Both '--target-compute' and '--url' are required flags. '--url' should be a HTTP or HTTPS URL that can receive the log drain messages.",
1614
+ "strict": true,
1615
+ "pluginName": "@salesforce/plugin-functions",
1616
+ "pluginAlias": "@salesforce/plugin-functions",
1617
+ "pluginType": "jit",
1618
+ "aliases": [],
1619
+ "examples": [
1620
+ "Add a log drain:\n<%= config.bin %> <%= command.id %> --target-compute environment-name --url https://path/to/logdrain"
1621
+ ],
1622
+ "flags": {
1623
+ "json": {
1624
+ "name": "json",
1625
+ "type": "boolean",
1626
+ "description": "Format output as json.",
1627
+ "helpGroup": "GLOBAL",
1628
+ "allowNo": false
1629
+ },
1630
+ "target-compute": {
1631
+ "name": "target-compute",
1632
+ "type": "option",
1633
+ "char": "e",
1634
+ "description": "Environment name.",
1635
+ "required": false,
1636
+ "multiple": false,
1637
+ "exclusive": [
1638
+ "environment"
1639
+ ]
1640
+ },
1641
+ "environment": {
1642
+ "name": "environment",
1643
+ "type": "option",
1644
+ "char": "e",
1645
+ "description": "Environment name.",
1646
+ "hidden": true,
1647
+ "required": false,
1648
+ "multiple": false,
1649
+ "exclusive": [
1650
+ "target-compute"
1651
+ ]
1652
+ },
1653
+ "drain-url": {
1654
+ "name": "drain-url",
1655
+ "type": "option",
1656
+ "char": "l",
1657
+ "description": "Endpoint that will receive sent logs.",
1658
+ "multiple": false,
1659
+ "exclusive": [
1660
+ "url"
1661
+ ]
1662
+ },
1663
+ "url": {
1664
+ "name": "url",
1665
+ "type": "option",
1666
+ "char": "u",
1667
+ "description": "Endpoint that will receive sent logs.",
1668
+ "hidden": true,
1669
+ "multiple": false,
1670
+ "exclusive": [
1671
+ "drain-url"
1672
+ ]
1673
+ }
1674
+ },
1675
+ "args": {}
1676
+ },
1677
+ "env:logdrain:list": {
1678
+ "id": "env:logdrain:list",
1679
+ "summary": "List log drains connected to a specified environment.",
1680
+ "strict": true,
1681
+ "pluginName": "@salesforce/plugin-functions",
1682
+ "pluginAlias": "@salesforce/plugin-functions",
1683
+ "pluginType": "jit",
1684
+ "aliases": [],
1685
+ "examples": [
1686
+ "List log drains:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias",
1687
+ "List log drains as json:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias --json"
1688
+ ],
1689
+ "flags": {
1690
+ "json": {
1691
+ "name": "json",
1692
+ "type": "boolean",
1693
+ "description": "Format output as json.",
1694
+ "helpGroup": "GLOBAL",
1695
+ "allowNo": false
1696
+ },
1697
+ "target-compute": {
1698
+ "name": "target-compute",
1699
+ "type": "option",
1700
+ "char": "e",
1701
+ "description": "Environment name.",
1702
+ "required": false,
1703
+ "multiple": false,
1704
+ "exclusive": [
1705
+ "environment"
1706
+ ]
1707
+ },
1708
+ "environment": {
1709
+ "name": "environment",
1710
+ "type": "option",
1711
+ "char": "e",
1712
+ "description": "Environment name.",
1713
+ "hidden": true,
1714
+ "required": false,
1715
+ "multiple": false,
1716
+ "exclusive": [
1717
+ "target-compute"
1718
+ ]
1719
+ }
1720
+ },
1721
+ "args": {}
1722
+ },
1723
+ "env:logdrain:remove": {
1724
+ "id": "env:logdrain:remove",
1725
+ "summary": "Remove log drain from a specified environment.",
1726
+ "description": "Both '--target-compute' and '--drain-url' are required flags.",
1727
+ "strict": true,
1728
+ "pluginName": "@salesforce/plugin-functions",
1729
+ "pluginAlias": "@salesforce/plugin-functions",
1730
+ "pluginType": "jit",
1731
+ "aliases": [],
1732
+ "examples": [
1733
+ "Remove a logdrain:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias --url https://path/to/logdrain"
1734
+ ],
1735
+ "flags": {
1736
+ "json": {
1737
+ "name": "json",
1738
+ "type": "boolean",
1739
+ "description": "Format output as json.",
1740
+ "helpGroup": "GLOBAL",
1741
+ "allowNo": false
1742
+ },
1743
+ "target-compute": {
1744
+ "name": "target-compute",
1745
+ "type": "option",
1746
+ "char": "e",
1747
+ "description": "Environment name.",
1748
+ "required": false,
1749
+ "multiple": false,
1750
+ "exclusive": [
1751
+ "environment"
1752
+ ]
1753
+ },
1754
+ "environment": {
1755
+ "name": "environment",
1756
+ "type": "option",
1757
+ "char": "e",
1758
+ "description": "Environment name.",
1759
+ "hidden": true,
1760
+ "required": false,
1761
+ "multiple": false,
1762
+ "exclusive": [
1763
+ "target-compute"
1764
+ ]
1765
+ },
1766
+ "drain-url": {
1767
+ "name": "drain-url",
1768
+ "type": "option",
1769
+ "char": "l",
1770
+ "description": "Log drain url to remove.",
1771
+ "multiple": false,
1772
+ "exclusive": [
1773
+ "url"
1774
+ ]
1775
+ },
1776
+ "url": {
1777
+ "name": "url",
1778
+ "type": "option",
1779
+ "char": "u",
1780
+ "description": "Log drain url to remove.",
1781
+ "hidden": true,
1782
+ "multiple": false,
1783
+ "exclusive": [
1784
+ "drain-url"
1785
+ ]
1786
+ }
1787
+ },
1788
+ "args": {}
1789
+ },
1790
+ "env:var:get": {
1791
+ "id": "env:var:get",
1792
+ "summary": "Display a single config variable for an environment.",
1793
+ "description": "You must provide the '--target-compute' flag and the key to retrieve.",
1794
+ "strict": true,
1795
+ "pluginName": "@salesforce/plugin-functions",
1796
+ "pluginAlias": "@salesforce/plugin-functions",
1797
+ "pluginType": "jit",
1798
+ "aliases": [],
1799
+ "examples": [
1800
+ "Get a config variable:\n<%= config.bin %> <%= command.id %> [KEY] --target-compute environment-alias"
1801
+ ],
1802
+ "flags": {
1803
+ "json": {
1804
+ "name": "json",
1805
+ "type": "boolean",
1806
+ "description": "Format output as json.",
1807
+ "helpGroup": "GLOBAL",
1808
+ "allowNo": false
1809
+ },
1810
+ "target-compute": {
1811
+ "name": "target-compute",
1812
+ "type": "option",
1813
+ "char": "e",
1814
+ "description": "Environment name.",
1815
+ "required": false,
1816
+ "multiple": false,
1817
+ "exclusive": [
1818
+ "environment"
1819
+ ]
1820
+ },
1821
+ "environment": {
1822
+ "name": "environment",
1823
+ "type": "option",
1824
+ "char": "e",
1825
+ "description": "Environment name.",
1826
+ "hidden": true,
1827
+ "required": false,
1828
+ "multiple": false,
1829
+ "exclusive": [
1830
+ "target-compute"
1831
+ ]
1832
+ }
1833
+ },
1834
+ "args": {
1835
+ "key": {
1836
+ "name": "key",
1837
+ "required": true
1838
+ }
1839
+ }
1840
+ },
1841
+ "env:var:list": {
1842
+ "id": "env:var:list",
1843
+ "summary": "List your environment's config vars in a table.",
1844
+ "description": "Use the '--json' flag to return config vars in JSON format.",
1845
+ "strict": true,
1846
+ "pluginName": "@salesforce/plugin-functions",
1847
+ "pluginAlias": "@salesforce/plugin-functions",
1848
+ "pluginType": "jit",
1849
+ "aliases": [],
1850
+ "examples": [
1851
+ "List config vars:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias",
1852
+ "List in JSON format:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias --json"
1853
+ ],
1854
+ "flags": {
1855
+ "json": {
1856
+ "name": "json",
1857
+ "type": "boolean",
1858
+ "description": "Format output as json.",
1859
+ "helpGroup": "GLOBAL",
1860
+ "allowNo": false
1861
+ },
1862
+ "target-compute": {
1863
+ "name": "target-compute",
1864
+ "type": "option",
1865
+ "char": "e",
1866
+ "description": "Environment name.",
1867
+ "required": false,
1868
+ "multiple": false,
1869
+ "exclusive": [
1870
+ "environment"
1871
+ ]
1872
+ },
1873
+ "environment": {
1874
+ "name": "environment",
1875
+ "type": "option",
1876
+ "char": "e",
1877
+ "description": "Environment name.",
1878
+ "hidden": true,
1879
+ "required": false,
1880
+ "multiple": false,
1881
+ "exclusive": [
1882
+ "target-compute"
1883
+ ]
1884
+ }
1885
+ },
1886
+ "args": {}
1887
+ },
1888
+ "env:var:set": {
1889
+ "id": "env:var:set",
1890
+ "summary": "Set a single config value for an environment.",
1891
+ "strict": false,
1892
+ "pluginName": "@salesforce/plugin-functions",
1893
+ "pluginAlias": "@salesforce/plugin-functions",
1894
+ "pluginType": "jit",
1895
+ "aliases": [],
1896
+ "examples": [
1897
+ "Set a config value:\n<%= config.bin %> <%= command.id %> [KEY]=[VALUE] --target-compute environment-alias"
1898
+ ],
1899
+ "flags": {
1900
+ "json": {
1901
+ "name": "json",
1902
+ "type": "boolean",
1903
+ "description": "Format output as json.",
1904
+ "helpGroup": "GLOBAL",
1905
+ "allowNo": false
1906
+ },
1907
+ "target-compute": {
1908
+ "name": "target-compute",
1909
+ "type": "option",
1910
+ "char": "e",
1911
+ "description": "Environment name.",
1912
+ "required": false,
1913
+ "multiple": false,
1914
+ "exclusive": [
1915
+ "environment"
1916
+ ]
1917
+ },
1918
+ "environment": {
1919
+ "name": "environment",
1920
+ "type": "option",
1921
+ "char": "e",
1922
+ "description": "Environment name.",
1923
+ "hidden": true,
1924
+ "required": false,
1925
+ "multiple": false,
1926
+ "exclusive": [
1927
+ "target-compute"
1928
+ ]
1929
+ }
1930
+ },
1931
+ "args": {}
1932
+ },
1933
+ "env:var:unset": {
1934
+ "id": "env:var:unset",
1935
+ "summary": "Unset a single config value for an environment.",
1936
+ "description": "Run 'sf env var list' to see a list of config values that can be unset.",
1937
+ "strict": false,
1938
+ "pluginName": "@salesforce/plugin-functions",
1939
+ "pluginAlias": "@salesforce/plugin-functions",
1003
1940
  "pluginType": "jit",
1004
1941
  "aliases": [],
1005
1942
  "examples": [
1006
- "<%= config.bin %> <%= command.id %> --filename something.json",
1007
- "<%= config.bin %> <%= command.id %> --project-dir ./path/to/plugin --filename something.json"
1943
+ "Unset a value:\n<%= config.bin %> <%= command.id %> --target-compute environment-alias"
1008
1944
  ],
1009
1945
  "flags": {
1010
1946
  "json": {
@@ -1014,167 +1950,271 @@
1014
1950
  "helpGroup": "GLOBAL",
1015
1951
  "allowNo": false
1016
1952
  },
1017
- "project-dir": {
1018
- "name": "project-dir",
1953
+ "target-compute": {
1954
+ "name": "target-compute",
1019
1955
  "type": "option",
1020
- "char": "p",
1021
- "summary": "Location of the project whose messages are to be audited.",
1022
- "description": "Location of the project whose messages are to be audited.",
1956
+ "char": "e",
1957
+ "description": "Environment name.",
1958
+ "required": false,
1023
1959
  "multiple": false,
1024
- "default": ".",
1025
- "aliases": [
1026
- "projectdir"
1960
+ "exclusive": [
1961
+ "environment"
1027
1962
  ]
1028
1963
  },
1029
- "file-name": {
1030
- "name": "file-name",
1964
+ "environment": {
1965
+ "name": "environment",
1031
1966
  "type": "option",
1032
- "char": "f",
1033
- "summary": "Filename to convert",
1034
- "required": true,
1035
- "multiple": true,
1036
- "aliases": [
1037
- "filename"
1967
+ "char": "e",
1968
+ "description": "Environment name.",
1969
+ "hidden": true,
1970
+ "required": false,
1971
+ "multiple": false,
1972
+ "exclusive": [
1973
+ "target-compute"
1038
1974
  ]
1039
1975
  }
1040
1976
  },
1041
1977
  "args": {}
1042
1978
  },
1043
- "dev:generate:command": {
1044
- "id": "dev:generate:command",
1045
- "summary": "Generate a new sf command.",
1046
- "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThe command generates basic source files, messages (\\*.md), and test files for your new command. The Typescript files contain import statements for the minimum required Salesforce libraries, and scaffold some basic code. The new type names come from the value you passed to the --name flag.\n\nThe command updates the package.json file, so if it detects conflicts with the existing file, you're prompted whether you want to overwrite the file. There are a number of package.json updates required for a new command, so we recommend you answer \"y\" so the command takes care of them all. If you answer \"n\", you must update the package.json file manually.",
1979
+ "login:functions:jwt": {
1980
+ "id": "login:functions:jwt",
1981
+ "summary": "Login using JWT instead of default web-based flow. This will authenticate you with both sf and Salesforce Functions.",
1982
+ "description": "Use this command when executing from a script.",
1047
1983
  "strict": true,
1048
- "pluginName": "@salesforce/plugin-dev",
1049
- "pluginAlias": "@salesforce/plugin-dev",
1984
+ "pluginName": "@salesforce/plugin-functions",
1985
+ "pluginAlias": "@salesforce/plugin-functions",
1050
1986
  "pluginType": "jit",
1051
1987
  "aliases": [],
1052
1988
  "examples": [
1053
- "Generate the files for a new \"sf my exciting command\":\n<%= config.bin %> <%= command.id %> --name my:exciting:command"
1989
+ "Log in using JWT:\n<%= config.bin %> <%= command.id %> --username example@username.org --keyfile file.key --clientid 123456",
1990
+ "Log in and specify the org alias and URL, set as default org and default Dev Hub, and format output as JSON:\n<%= config.bin %> <%= command.id %> --username example@username.org --keyfile file.key --clientid 123456 --alias org-alias --set-default --set-default-dev-hub --instance-url https://path/to/instance --json"
1054
1991
  ],
1055
1992
  "flags": {
1056
- "name": {
1057
- "name": "name",
1993
+ "json": {
1994
+ "name": "json",
1995
+ "type": "boolean",
1996
+ "description": "Format output as json.",
1997
+ "helpGroup": "GLOBAL",
1998
+ "allowNo": false
1999
+ },
2000
+ "username": {
2001
+ "name": "username",
1058
2002
  "type": "option",
1059
- "char": "n",
1060
- "summary": "Name of the new command. Use colons to separate the topic and command names.",
2003
+ "char": "u",
2004
+ "description": "Authentication username.",
1061
2005
  "required": true,
1062
2006
  "multiple": false
1063
2007
  },
1064
- "force": {
1065
- "name": "force",
1066
- "type": "boolean",
1067
- "summary": "Overwrite existing files.",
1068
- "allowNo": false
2008
+ "keyfile": {
2009
+ "name": "keyfile",
2010
+ "type": "option",
2011
+ "char": "f",
2012
+ "description": "Path to JWT keyfile.",
2013
+ "required": true,
2014
+ "multiple": false
1069
2015
  },
1070
- "nuts": {
1071
- "name": "nuts",
2016
+ "clientid": {
2017
+ "name": "clientid",
2018
+ "type": "option",
2019
+ "char": "i",
2020
+ "description": "OAuth client ID.",
2021
+ "required": true,
2022
+ "multiple": false
2023
+ },
2024
+ "instance-url": {
2025
+ "name": "instance-url",
2026
+ "type": "option",
2027
+ "char": "l",
2028
+ "description": "The login URL of the instance the org lives on.",
2029
+ "multiple": false,
2030
+ "exclusive": [
2031
+ "instanceurl"
2032
+ ]
2033
+ },
2034
+ "instanceurl": {
2035
+ "name": "instanceurl",
2036
+ "type": "option",
2037
+ "char": "l",
2038
+ "description": "The login URL of the instance the org lives on.",
2039
+ "hidden": true,
2040
+ "multiple": false,
2041
+ "exclusive": [
2042
+ "instance-url"
2043
+ ]
2044
+ },
2045
+ "alias": {
2046
+ "name": "alias",
2047
+ "type": "option",
2048
+ "char": "a",
2049
+ "description": "Alias for the org.",
2050
+ "multiple": false
2051
+ },
2052
+ "set-default": {
2053
+ "name": "set-default",
1072
2054
  "type": "boolean",
1073
- "summary": "Generate a NUT test file for the command.",
1074
- "allowNo": true
2055
+ "char": "d",
2056
+ "description": "Set the org as the default that all org-related commands run against.",
2057
+ "allowNo": false
1075
2058
  },
1076
- "unit": {
1077
- "name": "unit",
2059
+ "set-default-dev-hub": {
2060
+ "name": "set-default-dev-hub",
1078
2061
  "type": "boolean",
1079
- "summary": "Generate a unit test file for the command.",
1080
- "allowNo": true
2062
+ "char": "v",
2063
+ "description": "Set the org as the default Dev Hub for scratch org creation.",
2064
+ "allowNo": false
1081
2065
  }
1082
2066
  },
1083
2067
  "args": {}
1084
2068
  },
1085
- "dev:generate:flag": {
1086
- "id": "dev:generate:flag",
1087
- "summary": "Generate a flag for an existing command.",
1088
- "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThis command is interactive. It first discovers all the commands currently implemented in the plugin, and asks you which you want to create a new flag for. It then prompts for other flag properties, such as its long name, optional short name, type, whether it's required, and so on. Long flag names must be kebab-case and not camelCase. The command doesn't let you use an existing long or short flag name. When the command completes, the Typescript file for the command is updated with the code for the new flag.\n\nUse the --dry-run flag to review new code for the command file without actually udpating it.",
2069
+ "run:function:start": {
2070
+ "id": "run:function:start",
2071
+ "summary": "Build and run a Salesforce Function.",
2072
+ "description": "Run this command from the directory of your Salesforce Functions project.\n\nThis command will run the target function locally (on the same operating system as this CLI), just like the `local` subcommand.",
1089
2073
  "strict": true,
1090
- "pluginName": "@salesforce/plugin-dev",
1091
- "pluginAlias": "@salesforce/plugin-dev",
2074
+ "pluginName": "@salesforce/plugin-functions",
2075
+ "pluginAlias": "@salesforce/plugin-functions",
1092
2076
  "pluginType": "jit",
1093
2077
  "aliases": [],
1094
2078
  "examples": [
1095
- "Generate a new flag and update the command file:\n<%= config.bin %> <%= command.id %>",
1096
- "Don't actually update the command file, just view the generated code:\n<%= config.bin %> <%= command.id %> --dry-run"
2079
+ "Build a function and start the invoker\n<%= config.bin %> <%= command.id %>",
2080
+ "Start the invoker with a specific language and port\n<%= config.bin %> <%= command.id %> --port 5000 --language javascript"
1097
2081
  ],
1098
2082
  "flags": {
1099
- "dry-run": {
1100
- "name": "dry-run",
2083
+ "path": {
2084
+ "name": "path",
2085
+ "type": "option",
2086
+ "description": "Path to function directory.",
2087
+ "hidden": true,
2088
+ "multiple": false,
2089
+ "default": "/home/runner/work/cli/cli"
2090
+ },
2091
+ "port": {
2092
+ "name": "port",
2093
+ "type": "option",
2094
+ "char": "p",
2095
+ "description": "Port for running the function.",
2096
+ "multiple": false,
2097
+ "default": 8080
2098
+ },
2099
+ "debug-port": {
2100
+ "name": "debug-port",
2101
+ "type": "option",
2102
+ "char": "b",
2103
+ "description": "Port for remote debugging.",
2104
+ "multiple": false,
2105
+ "default": 9229
2106
+ },
2107
+ "language": {
2108
+ "name": "language",
2109
+ "type": "option",
2110
+ "char": "l",
2111
+ "description": "The language that the function runs in.",
2112
+ "multiple": false,
2113
+ "options": [
2114
+ "auto",
2115
+ "java",
2116
+ "javascript",
2117
+ "python",
2118
+ "typescript"
2119
+ ],
2120
+ "default": "auto"
2121
+ },
2122
+ "verbose": {
2123
+ "name": "verbose",
1101
2124
  "type": "boolean",
1102
- "char": "d",
1103
- "summary": "Print new flag code instead of adding it to the command file.",
1104
- "allowNo": false,
1105
- "aliases": [
1106
- "dryrun"
1107
- ]
2125
+ "char": "v",
2126
+ "description": "Output additional logs.",
2127
+ "allowNo": false
1108
2128
  }
1109
2129
  },
1110
2130
  "args": {}
1111
2131
  },
1112
- "dev:generate:hook": {
1113
- "id": "dev:generate:hook",
1114
- "summary": "Generate a new sf hook.",
1115
- "description": "You must run this command from within a plugin directory, such as the directory created with the \"sf dev generate plugin\" command.\n\nThe command generates a basic Typescript source file in the \"src/hooks\" directory to get you started. The source file's name is based on the event you're hooking into, such as envList.ts for the \"sf env list\" command.\n\nThe command updates the package.json file, so if it detects conflicts with the existing file, you're prompted whether you want to overwrite the file. There are a number of package.json updates required for a new hook, so we recommend you answer \"y\" so the command takes care of them all. If you answer \"n\", you must update the package.json file manually.",
2132
+ "env:compute:collaborator:add": {
2133
+ "id": "env:compute:collaborator:add",
2134
+ "summary": "Add a Heroku user as a collaborator on this Functions account, allowing them to attach Heroku add-ons to compute environments.",
1116
2135
  "strict": true,
1117
- "pluginName": "@salesforce/plugin-dev",
1118
- "pluginAlias": "@salesforce/plugin-dev",
2136
+ "pluginName": "@salesforce/plugin-functions",
2137
+ "pluginAlias": "@salesforce/plugin-functions",
1119
2138
  "pluginType": "jit",
1120
2139
  "aliases": [],
1121
2140
  "examples": [
1122
- "Generate source file for a hook into the \"sf env display\" command:\n<%= config.bin %> <%= command.id %> --event sf:env:display"
2141
+ "Add a Heroku user as a collaborator on this Functions account.\n<%= config.bin %> <%= command.id %> --heroku-user example@heroku.com"
1123
2142
  ],
1124
2143
  "flags": {
1125
- "force": {
1126
- "name": "force",
1127
- "type": "boolean",
1128
- "summary": "Overwrite existing files.",
1129
- "allowNo": false
1130
- },
1131
- "event": {
1132
- "name": "event",
2144
+ "heroku-user": {
2145
+ "name": "heroku-user",
1133
2146
  "type": "option",
1134
- "summary": "Event to run hook on. Use colons to separate topic and command names of the event.",
2147
+ "char": "h",
2148
+ "description": "Email address of the Heroku user you're adding as a collaborator.",
1135
2149
  "required": true,
1136
- "multiple": false,
1137
- "options": [
1138
- "sf:env:list",
1139
- "sf:env:display",
1140
- "sf:deploy",
1141
- "sf:logout"
1142
- ]
2150
+ "multiple": false
1143
2151
  }
1144
2152
  },
1145
2153
  "args": {}
1146
2154
  },
1147
- "dev:generate:library": {
1148
- "id": "dev:generate:library",
1149
- "summary": "Generate a new library.",
1150
- "description": "This command is interactive. You're prompted for information to populate the new library, such as the npm scope (which must start with \"@\"), the name and description of the library, and its GitHub organization. The command clones the 'forcedotcom/library-template' GitHub repository, installs the library's npm package dependencies using yarn install, and updates the package properties.\n\nWhen the command completes, your new library contains a few sample source and test files to get you started.",
2155
+ "run:function:start:container": {
2156
+ "id": "run:function:start:container",
1151
2157
  "strict": true,
1152
- "pluginName": "@salesforce/plugin-dev",
1153
- "pluginAlias": "@salesforce/plugin-dev",
2158
+ "pluginName": "@salesforce/plugin-functions",
2159
+ "pluginAlias": "@salesforce/plugin-functions",
1154
2160
  "pluginType": "jit",
1155
2161
  "aliases": [],
1156
- "examples": [
1157
- "<%= config.bin %> <%= command.id %>"
1158
- ],
1159
2162
  "flags": {},
1160
2163
  "args": {}
1161
2164
  },
1162
- "dev:generate:plugin": {
1163
- "id": "dev:generate:plugin",
1164
- "summary": "Generate a new sf plugin.",
1165
- "description": "This command is interactive. You're prompted for information to populate your new plugin, such as its name, description, author, and percentage of code coverage you want. The command clones the 'salesforcecli/plugin-template-sf' GitHub repository, installs the plug-in's npm package dependencies using yarn install, and updates the package properties.\n\nWhen the command completes, your new plugin contains the source, message, and test files for a sample \"sf hello world\" command.",
2165
+ "run:function:start:local": {
2166
+ "id": "run:function:start:local",
2167
+ "description": "Build and run a Salesforce Function locally.",
1166
2168
  "strict": true,
1167
- "pluginName": "@salesforce/plugin-dev",
1168
- "pluginAlias": "@salesforce/plugin-dev",
2169
+ "pluginName": "@salesforce/plugin-functions",
2170
+ "pluginAlias": "@salesforce/plugin-functions",
1169
2171
  "pluginType": "jit",
1170
- "aliases": [
1171
- "plugins:generate"
1172
- ],
2172
+ "aliases": [],
1173
2173
  "examples": [
1174
- "<%= config.bin %> <%= command.id %>"
2174
+ "Build a function and start the invoker\n<%= config.bin %> <%= command.id %>",
2175
+ "Start the invoker with a specific language and port\n<%= config.bin %> <%= command.id %> --port 5000 --language javascript"
1175
2176
  ],
1176
- "deprecateAliases": true,
1177
- "flags": {},
2177
+ "flags": {
2178
+ "path": {
2179
+ "name": "path",
2180
+ "type": "option",
2181
+ "description": "Path to function directory.",
2182
+ "hidden": true,
2183
+ "multiple": false,
2184
+ "default": "/home/runner/work/cli/cli"
2185
+ },
2186
+ "port": {
2187
+ "name": "port",
2188
+ "type": "option",
2189
+ "char": "p",
2190
+ "description": "Port to bind the invoker to.",
2191
+ "multiple": false,
2192
+ "default": 8080
2193
+ },
2194
+ "debug-port": {
2195
+ "name": "debug-port",
2196
+ "type": "option",
2197
+ "char": "b",
2198
+ "description": "Port to use for debugging the function.",
2199
+ "multiple": false,
2200
+ "default": 9229
2201
+ },
2202
+ "language": {
2203
+ "name": "language",
2204
+ "type": "option",
2205
+ "char": "l",
2206
+ "description": "The language in which the function is written.",
2207
+ "multiple": false,
2208
+ "options": [
2209
+ "auto",
2210
+ "java",
2211
+ "javascript",
2212
+ "python",
2213
+ "typescript"
2214
+ ],
2215
+ "default": "auto"
2216
+ }
2217
+ },
1178
2218
  "args": {}
1179
2219
  },
1180
2220
  "package:convert": {
@@ -1192,7 +2232,7 @@
1192
2232
  ],
1193
2233
  "examples": [
1194
2234
  "Create a second-generation package version from the first-generation package with the specified ID and give it the installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123",
1195
- "Similar to previous example, but uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123 --target-hub-org devhuborg@example.com"
2235
+ "Similar to previous example, but uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123 --target-dev-hub devhuborg@example.com"
1196
2236
  ],
1197
2237
  "deprecateAliases": true,
1198
2238
  "flags": {
@@ -1214,8 +2254,8 @@
1214
2254
  },
1215
2255
  "deprecateAliases": true
1216
2256
  },
1217
- "target-hub-org": {
1218
- "name": "target-hub-org",
2257
+ "target-dev-hub": {
2258
+ "name": "target-dev-hub",
1219
2259
  "type": "option",
1220
2260
  "char": "v",
1221
2261
  "summary": "Username or alias of the Dev Hub org.",
@@ -1223,7 +2263,8 @@
1223
2263
  "multiple": false,
1224
2264
  "deprecateAliases": true,
1225
2265
  "aliases": [
1226
- "targetdevhubusername"
2266
+ "targetdevhubusername",
2267
+ "target-hub-org"
1227
2268
  ]
1228
2269
  },
1229
2270
  "api-version": {
@@ -1263,7 +2304,6 @@
1263
2304
  "char": "f",
1264
2305
  "summary": "Path to a definition file that contains features and org preferences that the metadata of the package version depends on.",
1265
2306
  "description": "This definition file is similar to the scratch org definition file.",
1266
- "hidden": true,
1267
2307
  "multiple": false,
1268
2308
  "deprecateAliases": true,
1269
2309
  "aliases": [
@@ -1333,7 +2373,7 @@
1333
2373
  ],
1334
2374
  "examples": [
1335
2375
  "Create an unlocked package from the files in the \"force-app\" directory; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyUnlockedPackage --package-type Unlocked --path force-app",
1336
- "Create a managed packaged from the \"force-app\" directory files, give the package a description, and use the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyManagedPackage --description \"Your Package Descripton\" --package-type Managed --path force-app --target-hub-org devhub@example.com"
2376
+ "Create a managed packaged from the \"force-app\" directory files, give the package a description, and use the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyManagedPackage --description \"Your Package Descripton\" --package-type Managed --path force-app --target-dev-hub devhub@example.com"
1337
2377
  ],
1338
2378
  "deprecateAliases": true,
1339
2379
  "flags": {
@@ -1355,8 +2395,8 @@
1355
2395
  },
1356
2396
  "deprecateAliases": true
1357
2397
  },
1358
- "target-hub-org": {
1359
- "name": "target-hub-org",
2398
+ "target-dev-hub": {
2399
+ "name": "target-dev-hub",
1360
2400
  "type": "option",
1361
2401
  "char": "v",
1362
2402
  "summary": "Username or alias of the Dev Hub org.",
@@ -1364,7 +2404,8 @@
1364
2404
  "multiple": false,
1365
2405
  "deprecateAliases": true,
1366
2406
  "aliases": [
1367
- "targetdevhubusername"
2407
+ "targetdevhubusername",
2408
+ "target-hub-org"
1368
2409
  ]
1369
2410
  },
1370
2411
  "api-version": {
@@ -1474,7 +2515,7 @@
1474
2515
  ],
1475
2516
  "examples": [
1476
2517
  "Delete a package using its alias from your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\"",
1477
- "Delete a package using its ID from the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --target-hub-org devhub@example.com"
2518
+ "Delete a package using its ID from the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --target-dev-hub devhub@example.com"
1478
2519
  ],
1479
2520
  "deprecateAliases": true,
1480
2521
  "flags": {
@@ -1496,8 +2537,8 @@
1496
2537
  },
1497
2538
  "deprecateAliases": true
1498
2539
  },
1499
- "target-hub-org": {
1500
- "name": "target-hub-org",
2540
+ "target-dev-hub": {
2541
+ "name": "target-dev-hub",
1501
2542
  "type": "option",
1502
2543
  "char": "v",
1503
2544
  "summary": "Username or alias of the Dev Hub org.",
@@ -1505,7 +2546,8 @@
1505
2546
  "multiple": false,
1506
2547
  "deprecateAliases": true,
1507
2548
  "aliases": [
1508
- "targetdevhubusername"
2549
+ "targetdevhubusername",
2550
+ "target-hub-org"
1509
2551
  ]
1510
2552
  },
1511
2553
  "api-version": {
@@ -1752,8 +2794,8 @@
1752
2794
  "force:package:list"
1753
2795
  ],
1754
2796
  "examples": [
1755
- "List all packages in the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --target-hub-org devhub@example.com",
1756
- "List all packages details in the specified Dev Hub org, and show extended details about each package:\n<%= config.bin %> <%= command.id %> --target-hub-org devhub@example.com --verbose"
2797
+ "List all packages in the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --target-dev-hub devhub@example.com",
2798
+ "List all packages details in the specified Dev Hub org, and show extended details about each package:\n<%= config.bin %> <%= command.id %> --target-dev-hub devhub@example.com --verbose"
1757
2799
  ],
1758
2800
  "deprecateAliases": true,
1759
2801
  "flags": {
@@ -1775,8 +2817,8 @@
1775
2817
  },
1776
2818
  "deprecateAliases": true
1777
2819
  },
1778
- "target-hub-org": {
1779
- "name": "target-hub-org",
2820
+ "target-dev-hub": {
2821
+ "name": "target-dev-hub",
1780
2822
  "type": "option",
1781
2823
  "char": "v",
1782
2824
  "summary": "Username or alias of the Dev Hub org.",
@@ -1784,7 +2826,8 @@
1784
2826
  "multiple": false,
1785
2827
  "deprecateAliases": true,
1786
2828
  "aliases": [
1787
- "targetdevhubusername"
2829
+ "targetdevhubusername",
2830
+ "target-hub-org"
1788
2831
  ]
1789
2832
  },
1790
2833
  "api-version": {
@@ -1908,7 +2951,7 @@
1908
2951
  ],
1909
2952
  "examples": [
1910
2953
  "Update the name of the package with the specified alias; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --name \"New Package Name\"",
1911
- "Update the description of the package with the specified ID; uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --description \"New Package Description\" --target-hub-org devhub@example.com"
2954
+ "Update the description of the package with the specified ID; uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --description \"New Package Description\" --target-dev-hub devhub@example.com"
1912
2955
  ],
1913
2956
  "deprecateAliases": true,
1914
2957
  "flags": {
@@ -1930,8 +2973,8 @@
1930
2973
  },
1931
2974
  "deprecateAliases": true
1932
2975
  },
1933
- "target-hub-org": {
1934
- "name": "target-hub-org",
2976
+ "target-dev-hub": {
2977
+ "name": "target-dev-hub",
1935
2978
  "type": "option",
1936
2979
  "char": "v",
1937
2980
  "summary": "Username or alias of the Dev Hub org.",
@@ -1939,7 +2982,8 @@
1939
2982
  "multiple": false,
1940
2983
  "deprecateAliases": true,
1941
2984
  "aliases": [
1942
- "targetdevhubusername"
2985
+ "targetdevhubusername",
2986
+ "target-hub-org"
1943
2987
  ]
1944
2988
  },
1945
2989
  "api-version": {
@@ -2219,7 +3263,7 @@
2219
3263
  ],
2220
3264
  "examples": [
2221
3265
  "Create a package version from the contents of the \"common\" directory and give it an installation key of \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --path common --installation-key password123",
2222
- "Create a package version from a package with the specified alias; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123 --target-hub-org devhub@example.com",
3266
+ "Create a package version from a package with the specified alias; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123 --target-dev-hub devhub@example.com",
2223
3267
  "Create a package version from a package with the specified ID:\n<%= config.bin %> <%= command.id %> --package 0Ho... --installation-key password123",
2224
3268
  "Create a package version and skip the validation step:\n<%= config.bin %> <%= command.id %> --path common --installation-key password123 --skip-validation"
2225
3269
  ],
@@ -2243,8 +3287,8 @@
2243
3287
  },
2244
3288
  "deprecateAliases": true
2245
3289
  },
2246
- "target-hub-org": {
2247
- "name": "target-hub-org",
3290
+ "target-dev-hub": {
3291
+ "name": "target-dev-hub",
2248
3292
  "type": "option",
2249
3293
  "char": "v",
2250
3294
  "summary": "Username or alias of the Dev Hub org.",
@@ -2252,7 +3296,8 @@
2252
3296
  "multiple": false,
2253
3297
  "deprecateAliases": true,
2254
3298
  "aliases": [
2255
- "targetdevhubusername"
3299
+ "targetdevhubusername",
3300
+ "target-hub-org"
2256
3301
  ]
2257
3302
  },
2258
3303
  "api-version": {
@@ -2549,8 +3594,8 @@
2549
3594
  },
2550
3595
  "deprecateAliases": true
2551
3596
  },
2552
- "target-hub-org": {
2553
- "name": "target-hub-org",
3597
+ "target-dev-hub": {
3598
+ "name": "target-dev-hub",
2554
3599
  "type": "option",
2555
3600
  "char": "v",
2556
3601
  "summary": "Username or alias of the Dev Hub org.",
@@ -2558,7 +3603,8 @@
2558
3603
  "multiple": false,
2559
3604
  "deprecateAliases": true,
2560
3605
  "aliases": [
2561
- "targetdevhubusername"
3606
+ "targetdevhubusername",
3607
+ "target-hub-org"
2562
3608
  ]
2563
3609
  },
2564
3610
  "api-version": {
@@ -2618,7 +3664,7 @@
2618
3664
  "examples": [
2619
3665
  "Display the ancestry tree for a package version with the specified alias, using your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package package_version_alias",
2620
3666
  "Similar to previous example, but display the output in DOT code:\n<%= config.bin %> <%= command.id %> --package package_version_alias --dot-code",
2621
- "Display the ancestry tree for a package with the specified ID, using the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package OHo... --target-hub-org devhub@example.com",
3667
+ "Display the ancestry tree for a package with the specified ID, using the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package OHo... --target-dev-hub devhub@example.com",
2622
3668
  "Display the ancestry tree of a package version with the specified ID, using your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t..."
2623
3669
  ],
2624
3670
  "deprecateAliases": true,
@@ -2641,8 +3687,8 @@
2641
3687
  },
2642
3688
  "deprecateAliases": true
2643
3689
  },
2644
- "target-hub-org": {
2645
- "name": "target-hub-org",
3690
+ "target-dev-hub": {
3691
+ "name": "target-dev-hub",
2646
3692
  "type": "option",
2647
3693
  "char": "v",
2648
3694
  "summary": "Username or alias of the Dev Hub org.",
@@ -2650,7 +3696,8 @@
2650
3696
  "multiple": false,
2651
3697
  "deprecateAliases": true,
2652
3698
  "aliases": [
2653
- "targetdevhubusername"
3699
+ "targetdevhubusername",
3700
+ "target-hub-org"
2654
3701
  ]
2655
3702
  },
2656
3703
  "api-version": {
@@ -2710,7 +3757,7 @@
2710
3757
  ],
2711
3758
  "examples": [
2712
3759
  "List package versions in your default Dev Hub org that were created in the last 3 days; show only the released versions and order the list using the PatchVersion field. Display extended details about each package version:\n<%= config.bin %> <%= command.id %> --verbose --created-last-days 3 --released --order-by PatchVersion",
2713
- "List the released package versions for the two specified packages that were modified today; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --packages 0Ho000000000000,0Ho000000000001 --released --modified-last-days 0 --target-hub-org devhub@example.com",
3760
+ "List the released package versions for the two specified packages that were modified today; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --packages 0Ho000000000000,0Ho000000000001 --released --modified-last-days 0 --target-dev-hub devhub@example.com",
2714
3761
  "List all released package versions in your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --released",
2715
3762
  "List package versions that were modified today in your default Dev Hub org; show limited details about each one:\n<%= config.bin %> <%= command.id %> --concise --modified-last-days 0",
2716
3763
  "List released package versions that were created in the last 3 days in your default Dev Hub org; show limited details:\n<%= config.bin %> <%= command.id %> --concise --created-last-days 3 --released",
@@ -2736,8 +3783,8 @@
2736
3783
  },
2737
3784
  "deprecateAliases": true
2738
3785
  },
2739
- "target-hub-org": {
2740
- "name": "target-hub-org",
3786
+ "target-dev-hub": {
3787
+ "name": "target-dev-hub",
2741
3788
  "type": "option",
2742
3789
  "char": "v",
2743
3790
  "summary": "Username or alias of the Dev Hub org.",
@@ -2745,7 +3792,8 @@
2745
3792
  "multiple": false,
2746
3793
  "deprecateAliases": true,
2747
3794
  "aliases": [
2748
- "targetdevhubusername"
3795
+ "targetdevhubusername",
3796
+ "target-hub-org"
2749
3797
  ]
2750
3798
  },
2751
3799
  "api-version": {
@@ -2839,7 +3887,7 @@
2839
3887
  ],
2840
3888
  "examples": [
2841
3889
  "Promote the package version with the specified ID to released; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t...",
2842
- "Promote the package version with the specified alias to released; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package awesome_package_alias --target-hub-org devhub@example.com",
3890
+ "Promote the package version with the specified alias to released; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package awesome_package_alias --target-dev-hub devhub@example.com",
2843
3891
  "Promote the package version with an alias that has spaces to released:\n<%= config.bin %> <%= command.id %> --package \"Awesome Package Alias\""
2844
3892
  ],
2845
3893
  "deprecateAliases": true,
@@ -2862,8 +3910,8 @@
2862
3910
  },
2863
3911
  "deprecateAliases": true
2864
3912
  },
2865
- "target-hub-org": {
2866
- "name": "target-hub-org",
3913
+ "target-dev-hub": {
3914
+ "name": "target-dev-hub",
2867
3915
  "type": "option",
2868
3916
  "char": "v",
2869
3917
  "summary": "Username or alias of the Dev Hub org.",
@@ -2871,7 +3919,8 @@
2871
3919
  "multiple": false,
2872
3920
  "deprecateAliases": true,
2873
3921
  "aliases": [
2874
- "targetdevhubusername"
3922
+ "targetdevhubusername",
3923
+ "target-hub-org"
2875
3924
  ]
2876
3925
  },
2877
3926
  "api-version": {
@@ -2923,7 +3972,7 @@
2923
3972
  ],
2924
3973
  "examples": [
2925
3974
  "Retrieve details about the package version with the specified ID from your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t...",
2926
- "Retrieve details about the package version with the specified alias (that contains spaces) from the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --target-hub-org devhub@example.com"
3975
+ "Retrieve details about the package version with the specified alias (that contains spaces) from the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --target-dev-hub devhub@example.com"
2927
3976
  ],
2928
3977
  "deprecateAliases": true,
2929
3978
  "flags": {
@@ -2945,8 +3994,8 @@
2945
3994
  },
2946
3995
  "deprecateAliases": true
2947
3996
  },
2948
- "target-hub-org": {
2949
- "name": "target-hub-org",
3997
+ "target-dev-hub": {
3998
+ "name": "target-dev-hub",
2950
3999
  "type": "option",
2951
4000
  "char": "v",
2952
4001
  "summary": "Username or alias of the Dev Hub org.",
@@ -2954,7 +4003,8 @@
2954
4003
  "multiple": false,
2955
4004
  "deprecateAliases": true,
2956
4005
  "aliases": [
2957
- "targetdevhubusername"
4006
+ "targetdevhubusername",
4007
+ "target-hub-org"
2958
4008
  ]
2959
4009
  },
2960
4010
  "api-version": {
@@ -3002,7 +4052,7 @@
3002
4052
  ],
3003
4053
  "examples": [
3004
4054
  "Update the package version that has the specified alias (that contains spaces) with a new installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123",
3005
- "Update the package version that has the specified ID with a new branch and tag; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package 04t... --branch main --tag 'Release 1.0.7' --target-hub-org devhub@example.com",
4055
+ "Update the package version that has the specified ID with a new branch and tag; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package 04t... --branch main --tag 'Release 1.0.7' --target-dev-hub devhub@example.com",
3006
4056
  "Update the package version that has the specified ID with a new description:\n<%= config.bin %> <%= command.id %> --package 04t... --version-description \"New Package Version Description\""
3007
4057
  ],
3008
4058
  "deprecateAliases": true,
@@ -3025,8 +4075,8 @@
3025
4075
  },
3026
4076
  "deprecateAliases": true
3027
4077
  },
3028
- "target-hub-org": {
3029
- "name": "target-hub-org",
4078
+ "target-dev-hub": {
4079
+ "name": "target-dev-hub",
3030
4080
  "type": "option",
3031
4081
  "char": "v",
3032
4082
  "summary": "Username or alias of the Dev Hub org.",
@@ -3034,7 +4084,8 @@
3034
4084
  "multiple": false,
3035
4085
  "deprecateAliases": true,
3036
4086
  "aliases": [
3037
- "targetdevhubusername"
4087
+ "targetdevhubusername",
4088
+ "target-hub-org"
3038
4089
  ]
3039
4090
  },
3040
4091
  "api-version": {
@@ -3428,7 +4479,7 @@
3428
4479
  ],
3429
4480
  "examples": [
3430
4481
  "List all package version creation requests in your default Dev Hub org:\n<%= config.bin %> <%= command.id %>",
3431
- "List package version creation requests from the last 3 days in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --created-last-days 3 --target-hub-org",
4482
+ "List package version creation requests from the last 3 days in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --created-last-days 3 --target-dev-hub",
3432
4483
  "List package version creation requests with status Error:\n<%= config.bin %> <%= command.id %> --status Error",
3433
4484
  "List package version creation requests with status InProgress:\n<%= config.bin %> <%= command.id %> --status InProgress",
3434
4485
  "List package version creation requests with status Success that were created today:\n<%= config.bin %> <%= command.id %> --created-last-days 0 --status Success"
@@ -3453,8 +4504,8 @@
3453
4504
  },
3454
4505
  "deprecateAliases": true
3455
4506
  },
3456
- "target-hub-org": {
3457
- "name": "target-hub-org",
4507
+ "target-dev-hub": {
4508
+ "name": "target-dev-hub",
3458
4509
  "type": "option",
3459
4510
  "char": "v",
3460
4511
  "summary": "Username or alias of the Dev Hub org.",
@@ -3462,7 +4513,8 @@
3462
4513
  "multiple": false,
3463
4514
  "deprecateAliases": true,
3464
4515
  "aliases": [
3465
- "targetdevhubusername"
4516
+ "targetdevhubusername",
4517
+ "target-hub-org"
3466
4518
  ]
3467
4519
  },
3468
4520
  "api-version": {
@@ -3518,7 +4570,7 @@
3518
4570
  ],
3519
4571
  "examples": [
3520
4572
  "Retrieve details about the package version creation request with the specified ID; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c...",
3521
- "Retrieve details about the specified package version creation request in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c... --target-hub-org devhub@example.com"
4573
+ "Retrieve details about the specified package version creation request in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c... --target-dev-hub devhub@example.com"
3522
4574
  ],
3523
4575
  "deprecateAliases": true,
3524
4576
  "flags": {
@@ -3540,8 +4592,8 @@
3540
4592
  },
3541
4593
  "deprecateAliases": true
3542
4594
  },
3543
- "target-hub-org": {
3544
- "name": "target-hub-org",
4595
+ "target-dev-hub": {
4596
+ "name": "target-dev-hub",
3545
4597
  "type": "option",
3546
4598
  "char": "v",
3547
4599
  "summary": "Username or alias of the Dev Hub org.",
@@ -3549,7 +4601,8 @@
3549
4601
  "multiple": false,
3550
4602
  "deprecateAliases": true,
3551
4603
  "aliases": [
3552
- "targetdevhubusername"
4604
+ "targetdevhubusername",
4605
+ "target-hub-org"
3553
4606
  ]
3554
4607
  },
3555
4608
  "api-version": {