@heroku/plugin-compute 0.1.0 → 0.3.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.
- package/lib/commands/compute/display/telemetry-drain.d.ts +26 -0
- package/lib/commands/compute/display/telemetry-drain.js +77 -0
- package/lib/commands/compute/display/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/{config/get.d.ts → get/config.d.ts} +2 -0
- package/lib/commands/compute/{config/get.js → get/config.js} +9 -2
- package/lib/commands/compute/get/config.js.map +1 -0
- package/lib/commands/compute/{config/list.d.ts → list/config.d.ts} +2 -0
- package/lib/commands/compute/{config/list.js → list/config.js} +9 -2
- package/lib/commands/compute/list/config.js.map +1 -0
- package/lib/commands/compute/list/telemetry-drain.d.ts +20 -0
- package/lib/commands/compute/list/telemetry-drain.js +89 -0
- package/lib/commands/compute/list/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/{config/set.d.ts → set/config.d.ts} +2 -0
- package/lib/commands/compute/{config/set.js → set/config.js} +9 -2
- package/lib/commands/compute/set/config.js.map +1 -0
- package/lib/commands/compute/{config/unset.d.ts → unset/config.d.ts} +2 -0
- package/lib/commands/compute/{config/unset.js → unset/config.js} +9 -2
- package/lib/commands/compute/unset/config.js.map +1 -0
- package/lib/shared/computeConfig.js +2 -2
- package/lib/shared/computeConfig.js.map +1 -1
- package/lib/shared/computeQuery.d.ts +1 -0
- package/lib/shared/computeQuery.js +37 -42
- package/lib/shared/computeQuery.js.map +1 -1
- package/lib/shared/computeTelemetryDrain.js +23 -15
- package/lib/shared/computeTelemetryDrain.js.map +1 -1
- package/lib/shared/herokuProxyApi.d.ts +30 -0
- package/lib/shared/herokuProxyApi.js +102 -2
- package/lib/shared/herokuProxyApi.js.map +1 -1
- package/messages/compute.display.telemetry-drain.md +19 -0
- package/messages/compute.errors.md +35 -1
- package/messages/{compute.config.list.md → compute.list.config.md} +3 -3
- package/messages/compute.list.telemetry-drain.md +26 -0
- package/npm-shrinkwrap.json +292 -143
- package/oclif.manifest.json +304 -154
- package/package.json +12 -6
- package/schemas/compute-display-telemetry__drain.json +54 -0
- package/schemas/compute-list-telemetry__drain.json +43 -0
- package/lib/commands/compute/config/get.js.map +0 -1
- package/lib/commands/compute/config/list.js.map +0 -1
- package/lib/commands/compute/config/set.js.map +0 -1
- package/lib/commands/compute/config/unset.js.map +0 -1
- /package/messages/{compute.config.get.md → compute.get.config.md} +0 -0
- /package/messages/{compute.config.set.md → compute.set.config.md} +0 -0
- /package/messages/{compute.config.unset.md → compute.unset.config.md} +0 -0
- /package/schemas/{compute-config-get.json → compute-get-config.json} +0 -0
- /package/schemas/{compute-config-list.json → compute-list-config.json} +0 -0
- /package/schemas/{compute-config-set.json → compute-set-config.json} +0 -0
- /package/schemas/{compute-config-unset.json → compute-unset-config.json} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -370,7 +370,145 @@
|
|
|
370
370
|
"scale:compute"
|
|
371
371
|
]
|
|
372
372
|
},
|
|
373
|
-
"compute:
|
|
373
|
+
"compute:display:telemetry-drain": {
|
|
374
|
+
"aliases": [],
|
|
375
|
+
"args": {
|
|
376
|
+
"id": {
|
|
377
|
+
"name": "id",
|
|
378
|
+
"required": true
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"description": "Shows a single OpenTelemetry drain in full: the compute app it belongs to,\nthe signals it forwards, and its exporter endpoint, transport, and headers.\nUse sf compute list telemetry-drain to find a drain's ID.",
|
|
382
|
+
"examples": [
|
|
383
|
+
"Show the detail of a telemetry drain by its ID:\n<%= config.bin %> <%= command.id %> 01234567-89ab-cdef-0123-456789abcdef --target-org my-org"
|
|
384
|
+
],
|
|
385
|
+
"flags": {
|
|
386
|
+
"json": {
|
|
387
|
+
"description": "Format output as json.",
|
|
388
|
+
"helpGroup": "GLOBAL",
|
|
389
|
+
"name": "json",
|
|
390
|
+
"allowNo": false,
|
|
391
|
+
"type": "boolean"
|
|
392
|
+
},
|
|
393
|
+
"flags-dir": {
|
|
394
|
+
"helpGroup": "GLOBAL",
|
|
395
|
+
"name": "flags-dir",
|
|
396
|
+
"summary": "Import flag values from a directory.",
|
|
397
|
+
"hasDynamicHelp": false,
|
|
398
|
+
"multiple": false,
|
|
399
|
+
"type": "option"
|
|
400
|
+
},
|
|
401
|
+
"target-org": {
|
|
402
|
+
"char": "o",
|
|
403
|
+
"name": "target-org",
|
|
404
|
+
"noCacheDefault": true,
|
|
405
|
+
"required": true,
|
|
406
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
407
|
+
"hasDynamicHelp": true,
|
|
408
|
+
"multiple": false,
|
|
409
|
+
"type": "option"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"hasDynamicHelp": true,
|
|
413
|
+
"hiddenAliases": [],
|
|
414
|
+
"id": "compute:display:telemetry-drain",
|
|
415
|
+
"pluginAlias": "@heroku/plugin-compute",
|
|
416
|
+
"pluginName": "@heroku/plugin-compute",
|
|
417
|
+
"pluginType": "core",
|
|
418
|
+
"strict": true,
|
|
419
|
+
"summary": "Show the full detail of a single compute telemetry drain.",
|
|
420
|
+
"enableJsonFlag": true,
|
|
421
|
+
"requiresProject": false,
|
|
422
|
+
"isESM": true,
|
|
423
|
+
"relativePath": [
|
|
424
|
+
"lib",
|
|
425
|
+
"commands",
|
|
426
|
+
"compute",
|
|
427
|
+
"display",
|
|
428
|
+
"telemetry-drain.js"
|
|
429
|
+
],
|
|
430
|
+
"aliasPermutations": [],
|
|
431
|
+
"permutations": [
|
|
432
|
+
"compute:display:telemetry-drain",
|
|
433
|
+
"display:compute:telemetry-drain",
|
|
434
|
+
"display:telemetry-drain:compute",
|
|
435
|
+
"compute:telemetry-drain:display",
|
|
436
|
+
"telemetry-drain:compute:display",
|
|
437
|
+
"telemetry-drain:display:compute"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
"compute:get:build-log": {
|
|
441
|
+
"aliases": [],
|
|
442
|
+
"args": {},
|
|
443
|
+
"description": "Fetches the bounded build/compile log (dependency install, slug compile,\nrelease) for the most recent build of a compute app -- useful right after\ndeploy to confirm the build compiled. This is a one-shot fetch of a\nfinished-or-in-progress log, not a live stream; use compute tail runtime-log\nfor the ongoing runtime log.\n\nThis is a read-only, org-mediated lookup by --name (the app's DeveloperName)\n-- the org calls Heroku's Build Info API on your behalf. It doesn't read from\nor require a local Salesforce DX project.",
|
|
444
|
+
"examples": [
|
|
445
|
+
"Print the latest build's log:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
446
|
+
],
|
|
447
|
+
"flags": {
|
|
448
|
+
"json": {
|
|
449
|
+
"description": "Format output as json.",
|
|
450
|
+
"helpGroup": "GLOBAL",
|
|
451
|
+
"name": "json",
|
|
452
|
+
"allowNo": false,
|
|
453
|
+
"type": "boolean"
|
|
454
|
+
},
|
|
455
|
+
"flags-dir": {
|
|
456
|
+
"helpGroup": "GLOBAL",
|
|
457
|
+
"name": "flags-dir",
|
|
458
|
+
"summary": "Import flag values from a directory.",
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"multiple": false,
|
|
461
|
+
"type": "option"
|
|
462
|
+
},
|
|
463
|
+
"name": {
|
|
464
|
+
"char": "n",
|
|
465
|
+
"env": "COMPUTE_APP_NAME",
|
|
466
|
+
"name": "name",
|
|
467
|
+
"summary": "DeveloperName of the compute app to fetch build output for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
468
|
+
"hasDynamicHelp": false,
|
|
469
|
+
"multiple": false,
|
|
470
|
+
"type": "option"
|
|
471
|
+
},
|
|
472
|
+
"target-org": {
|
|
473
|
+
"char": "o",
|
|
474
|
+
"name": "target-org",
|
|
475
|
+
"noCacheDefault": true,
|
|
476
|
+
"required": true,
|
|
477
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
478
|
+
"hasDynamicHelp": true,
|
|
479
|
+
"multiple": false,
|
|
480
|
+
"type": "option"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"hasDynamicHelp": true,
|
|
484
|
+
"hiddenAliases": [],
|
|
485
|
+
"id": "compute:get:build-log",
|
|
486
|
+
"pluginAlias": "@heroku/plugin-compute",
|
|
487
|
+
"pluginName": "@heroku/plugin-compute",
|
|
488
|
+
"pluginType": "core",
|
|
489
|
+
"strict": true,
|
|
490
|
+
"summary": "Print the build/compile log for a compute app's latest build.",
|
|
491
|
+
"enableJsonFlag": true,
|
|
492
|
+
"requiresProject": false,
|
|
493
|
+
"isESM": true,
|
|
494
|
+
"relativePath": [
|
|
495
|
+
"lib",
|
|
496
|
+
"commands",
|
|
497
|
+
"compute",
|
|
498
|
+
"get",
|
|
499
|
+
"build-log.js"
|
|
500
|
+
],
|
|
501
|
+
"aliasPermutations": [],
|
|
502
|
+
"permutations": [
|
|
503
|
+
"compute:get:build-log",
|
|
504
|
+
"get:compute:build-log",
|
|
505
|
+
"get:build-log:compute",
|
|
506
|
+
"compute:build-log:get",
|
|
507
|
+
"build-log:compute:get",
|
|
508
|
+
"build-log:get:compute"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
"compute:get:config": {
|
|
374
512
|
"aliases": [],
|
|
375
513
|
"args": {
|
|
376
514
|
"key": {
|
|
@@ -378,6 +516,7 @@
|
|
|
378
516
|
"name": "key"
|
|
379
517
|
}
|
|
380
518
|
},
|
|
519
|
+
"deprecateAliases": true,
|
|
381
520
|
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Pass a single key to print its bare value, or more than one to\nprint each as key: value. Fails if any requested key isn't currently set.",
|
|
382
521
|
"examples": [
|
|
383
522
|
"Print a single config var's value:\n<%= config.bin %> <%= command.id %> STRIPE_KEY --name CreditRatingScorer --target-org my-org",
|
|
@@ -420,8 +559,10 @@
|
|
|
420
559
|
}
|
|
421
560
|
},
|
|
422
561
|
"hasDynamicHelp": true,
|
|
423
|
-
"hiddenAliases": [
|
|
424
|
-
|
|
562
|
+
"hiddenAliases": [
|
|
563
|
+
"compute:config:get"
|
|
564
|
+
],
|
|
565
|
+
"id": "compute:get:config",
|
|
425
566
|
"pluginAlias": "@heroku/plugin-compute",
|
|
426
567
|
"pluginName": "@heroku/plugin-compute",
|
|
427
568
|
"pluginType": "core",
|
|
@@ -434,25 +575,26 @@
|
|
|
434
575
|
"lib",
|
|
435
576
|
"commands",
|
|
436
577
|
"compute",
|
|
437
|
-
"
|
|
438
|
-
"
|
|
578
|
+
"get",
|
|
579
|
+
"config.js"
|
|
439
580
|
],
|
|
440
581
|
"aliasPermutations": [],
|
|
441
582
|
"permutations": [
|
|
442
|
-
"compute:config:get",
|
|
443
|
-
"config:compute:get",
|
|
444
|
-
"config:get:compute",
|
|
445
583
|
"compute:get:config",
|
|
446
584
|
"get:compute:config",
|
|
447
|
-
"get:config:compute"
|
|
585
|
+
"get:config:compute",
|
|
586
|
+
"compute:config:get",
|
|
587
|
+
"config:compute:get",
|
|
588
|
+
"config:get:compute"
|
|
448
589
|
]
|
|
449
590
|
},
|
|
450
|
-
"compute:
|
|
591
|
+
"compute:get:runtime-log": {
|
|
451
592
|
"aliases": [],
|
|
452
593
|
"args": {},
|
|
453
|
-
"description": "
|
|
594
|
+
"description": "Fetches a compute app's runtime log -- the app's ongoing output (request\nhandling, application logs), not the build/compile log; use compute get\nbuild-log for that.\n\nThis prints the most recent log lines and exits. To keep the session open and\nstream new lines as they arrive, use compute tail runtime-log.\n\nThis is an org-mediated operation by --name (the app's DeveloperName) -- the\norg creates a log session with Heroku on your behalf and hands back a\nshort-lived, pre-authorized URL that the CLI reads from directly. It doesn't\nread from or require a local Salesforce DX project.",
|
|
454
595
|
"examples": [
|
|
455
|
-
"
|
|
596
|
+
"Print the most recent log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org",
|
|
597
|
+
"Print the most recent 500 log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
|
|
456
598
|
],
|
|
457
599
|
"flags": {
|
|
458
600
|
"json": {
|
|
@@ -474,7 +616,7 @@
|
|
|
474
616
|
"char": "n",
|
|
475
617
|
"env": "COMPUTE_APP_NAME",
|
|
476
618
|
"name": "name",
|
|
477
|
-
"summary": "DeveloperName of the compute app to
|
|
619
|
+
"summary": "DeveloperName of the compute app to fetch logs for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
478
620
|
"hasDynamicHelp": false,
|
|
479
621
|
"multiple": false,
|
|
480
622
|
"type": "option"
|
|
@@ -488,16 +630,24 @@
|
|
|
488
630
|
"hasDynamicHelp": true,
|
|
489
631
|
"multiple": false,
|
|
490
632
|
"type": "option"
|
|
633
|
+
},
|
|
634
|
+
"num": {
|
|
635
|
+
"name": "num",
|
|
636
|
+
"summary": "Number of recent log lines to print.",
|
|
637
|
+
"default": 100,
|
|
638
|
+
"hasDynamicHelp": false,
|
|
639
|
+
"multiple": false,
|
|
640
|
+
"type": "option"
|
|
491
641
|
}
|
|
492
642
|
},
|
|
493
643
|
"hasDynamicHelp": true,
|
|
494
644
|
"hiddenAliases": [],
|
|
495
|
-
"id": "compute:
|
|
645
|
+
"id": "compute:get:runtime-log",
|
|
496
646
|
"pluginAlias": "@heroku/plugin-compute",
|
|
497
647
|
"pluginName": "@heroku/plugin-compute",
|
|
498
648
|
"pluginType": "core",
|
|
499
649
|
"strict": true,
|
|
500
|
-
"summary": "
|
|
650
|
+
"summary": "Print the recent runtime log for a compute app.",
|
|
501
651
|
"enableJsonFlag": true,
|
|
502
652
|
"requiresProject": false,
|
|
503
653
|
"isESM": true,
|
|
@@ -505,20 +655,20 @@
|
|
|
505
655
|
"lib",
|
|
506
656
|
"commands",
|
|
507
657
|
"compute",
|
|
508
|
-
"
|
|
509
|
-
"
|
|
658
|
+
"get",
|
|
659
|
+
"runtime-log.js"
|
|
510
660
|
],
|
|
511
661
|
"aliasPermutations": [],
|
|
512
662
|
"permutations": [
|
|
513
|
-
"compute:
|
|
514
|
-
"
|
|
515
|
-
"
|
|
516
|
-
"compute:
|
|
517
|
-
"
|
|
518
|
-
"
|
|
663
|
+
"compute:get:runtime-log",
|
|
664
|
+
"get:compute:runtime-log",
|
|
665
|
+
"get:runtime-log:compute",
|
|
666
|
+
"compute:runtime-log:get",
|
|
667
|
+
"runtime-log:compute:get",
|
|
668
|
+
"runtime-log:get:compute"
|
|
519
669
|
]
|
|
520
670
|
},
|
|
521
|
-
"compute:config
|
|
671
|
+
"compute:set:config": {
|
|
522
672
|
"aliases": [],
|
|
523
673
|
"args": {
|
|
524
674
|
"pair": {
|
|
@@ -526,6 +676,7 @@
|
|
|
526
676
|
"name": "pair"
|
|
527
677
|
}
|
|
528
678
|
},
|
|
679
|
+
"deprecateAliases": true,
|
|
529
680
|
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Setting a config var restarts the app's dynos so the new value\ntakes effect. Pass one or more KEY=VALUE pairs; a key that doesn't already\nexist is created.",
|
|
530
681
|
"examples": [
|
|
531
682
|
"Set a single config var:\n<%= config.bin %> <%= command.id %> STRIPE_KEY=sk_live_xyz789 --name CreditRatingScorer --target-org my-org",
|
|
@@ -568,8 +719,10 @@
|
|
|
568
719
|
}
|
|
569
720
|
},
|
|
570
721
|
"hasDynamicHelp": true,
|
|
571
|
-
"hiddenAliases": [
|
|
572
|
-
|
|
722
|
+
"hiddenAliases": [
|
|
723
|
+
"compute:config:set"
|
|
724
|
+
],
|
|
725
|
+
"id": "compute:set:config",
|
|
573
726
|
"pluginAlias": "@heroku/plugin-compute",
|
|
574
727
|
"pluginName": "@heroku/plugin-compute",
|
|
575
728
|
"pluginType": "core",
|
|
@@ -582,31 +735,25 @@
|
|
|
582
735
|
"lib",
|
|
583
736
|
"commands",
|
|
584
737
|
"compute",
|
|
585
|
-
"
|
|
586
|
-
"
|
|
738
|
+
"set",
|
|
739
|
+
"config.js"
|
|
587
740
|
],
|
|
588
741
|
"aliasPermutations": [],
|
|
589
742
|
"permutations": [
|
|
590
|
-
"compute:config:set",
|
|
591
|
-
"config:compute:set",
|
|
592
|
-
"config:set:compute",
|
|
593
743
|
"compute:set:config",
|
|
594
744
|
"set:compute:config",
|
|
595
|
-
"set:config:compute"
|
|
745
|
+
"set:config:compute",
|
|
746
|
+
"compute:config:set",
|
|
747
|
+
"config:compute:set",
|
|
748
|
+
"config:set:compute"
|
|
596
749
|
]
|
|
597
750
|
},
|
|
598
|
-
"compute:
|
|
751
|
+
"compute:source:retrieve": {
|
|
599
752
|
"aliases": [],
|
|
600
|
-
"args": {
|
|
601
|
-
|
|
602
|
-
"multiple": true,
|
|
603
|
-
"name": "key"
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Unsetting a config var restarts the app's dynos so the removal\ntakes effect. Fails if any requested key isn't currently set.",
|
|
753
|
+
"args": {},
|
|
754
|
+
"description": "Creates the compute app's directory under force-app/main/default/platformComputeApps/<name>/\n(or --output-dir), retrieves its <name>.compute-meta.xml through the Metadata\nAPI, then downloads its source code through the Connect API and extracts it\ninto that same directory. This is the inverse of sf compute deploy.",
|
|
607
755
|
"examples": [
|
|
608
|
-
"
|
|
609
|
-
"Unset more than one config var in one command:\n<%= config.bin %> <%= command.id %> LOG_LEVEL DEBUG_MODE --name CreditRatingScorer --target-org my-org"
|
|
756
|
+
"Retrieve a compute app's source and metadata from an org:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
610
757
|
],
|
|
611
758
|
"flags": {
|
|
612
759
|
"json": {
|
|
@@ -626,9 +773,9 @@
|
|
|
626
773
|
},
|
|
627
774
|
"name": {
|
|
628
775
|
"char": "n",
|
|
629
|
-
"env": "COMPUTE_APP_NAME",
|
|
630
776
|
"name": "name",
|
|
631
|
-
"
|
|
777
|
+
"required": true,
|
|
778
|
+
"summary": "DeveloperName of the compute app to retrieve (or <namespace>\\_\\_<developerName>\nif it was deployed under a namespace).",
|
|
632
779
|
"hasDynamicHelp": false,
|
|
633
780
|
"multiple": false,
|
|
634
781
|
"type": "option"
|
|
@@ -642,51 +789,55 @@
|
|
|
642
789
|
"hasDynamicHelp": true,
|
|
643
790
|
"multiple": false,
|
|
644
791
|
"type": "option"
|
|
792
|
+
},
|
|
793
|
+
"output-dir": {
|
|
794
|
+
"char": "d",
|
|
795
|
+
"description": "Defaults to force-app/main/default/platformComputeApps. The app itself is created in a\nsubdirectory named after --name.",
|
|
796
|
+
"name": "output-dir",
|
|
797
|
+
"summary": "Directory to create the app in.",
|
|
798
|
+
"default": "force-app/main/default/platformComputeApps",
|
|
799
|
+
"hasDynamicHelp": false,
|
|
800
|
+
"multiple": false,
|
|
801
|
+
"type": "option"
|
|
645
802
|
}
|
|
646
803
|
},
|
|
647
804
|
"hasDynamicHelp": true,
|
|
648
805
|
"hiddenAliases": [],
|
|
649
|
-
"id": "compute:
|
|
806
|
+
"id": "compute:source:retrieve",
|
|
650
807
|
"pluginAlias": "@heroku/plugin-compute",
|
|
651
808
|
"pluginName": "@heroku/plugin-compute",
|
|
652
809
|
"pluginType": "core",
|
|
653
810
|
"strict": true,
|
|
654
|
-
"summary": "
|
|
811
|
+
"summary": "Retrieve a compute app's source and metadata from an org into your local Salesforce DX project.",
|
|
655
812
|
"enableJsonFlag": true,
|
|
656
|
-
"requiresProject":
|
|
813
|
+
"requiresProject": true,
|
|
657
814
|
"isESM": true,
|
|
658
815
|
"relativePath": [
|
|
659
816
|
"lib",
|
|
660
817
|
"commands",
|
|
661
818
|
"compute",
|
|
662
|
-
"
|
|
663
|
-
"
|
|
819
|
+
"source",
|
|
820
|
+
"retrieve.js"
|
|
664
821
|
],
|
|
665
822
|
"aliasPermutations": [],
|
|
666
823
|
"permutations": [
|
|
667
|
-
"compute:
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"compute:
|
|
671
|
-
"
|
|
672
|
-
"
|
|
824
|
+
"compute:source:retrieve",
|
|
825
|
+
"source:compute:retrieve",
|
|
826
|
+
"source:retrieve:compute",
|
|
827
|
+
"compute:retrieve:source",
|
|
828
|
+
"retrieve:compute:source",
|
|
829
|
+
"retrieve:source:compute"
|
|
673
830
|
]
|
|
674
831
|
},
|
|
675
|
-
"compute:
|
|
832
|
+
"compute:tail:runtime-log": {
|
|
676
833
|
"aliases": [],
|
|
677
834
|
"args": {},
|
|
678
|
-
"description": "
|
|
835
|
+
"description": "Streams a compute app's runtime log -- the app's ongoing output (request\nhandling, application logs), not the build/compile log; use compute get\nbuild-log for that.\n\nKeeps the session open and prints new log lines as they arrive, until you stop\nit with Ctrl-C or the session ends on its own. For a one-time snapshot of the\nmost recent lines, use compute get runtime-log.\n\nThis is an org-mediated operation by --name (the app's DeveloperName) -- the\norg creates a log session with Heroku on your behalf and hands back a\nshort-lived, pre-authorized URL that the CLI reads from directly. It doesn't\nread from or require a local Salesforce DX project.",
|
|
679
836
|
"examples": [
|
|
680
|
-
"
|
|
837
|
+
"Tail the log until stopped with Ctrl-C:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org",
|
|
838
|
+
"Print the most recent 500 lines, then keep streaming:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
|
|
681
839
|
],
|
|
682
840
|
"flags": {
|
|
683
|
-
"json": {
|
|
684
|
-
"description": "Format output as json.",
|
|
685
|
-
"helpGroup": "GLOBAL",
|
|
686
|
-
"name": "json",
|
|
687
|
-
"allowNo": false,
|
|
688
|
-
"type": "boolean"
|
|
689
|
-
},
|
|
690
841
|
"flags-dir": {
|
|
691
842
|
"helpGroup": "GLOBAL",
|
|
692
843
|
"name": "flags-dir",
|
|
@@ -699,7 +850,7 @@
|
|
|
699
850
|
"char": "n",
|
|
700
851
|
"env": "COMPUTE_APP_NAME",
|
|
701
852
|
"name": "name",
|
|
702
|
-
"summary": "DeveloperName of the compute app to
|
|
853
|
+
"summary": "DeveloperName of the compute app to tail logs for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
703
854
|
"hasDynamicHelp": false,
|
|
704
855
|
"multiple": false,
|
|
705
856
|
"type": "option"
|
|
@@ -713,43 +864,57 @@
|
|
|
713
864
|
"hasDynamicHelp": true,
|
|
714
865
|
"multiple": false,
|
|
715
866
|
"type": "option"
|
|
867
|
+
},
|
|
868
|
+
"num": {
|
|
869
|
+
"name": "num",
|
|
870
|
+
"summary": "Number of recent log lines to print before streaming new output.",
|
|
871
|
+
"default": 100,
|
|
872
|
+
"hasDynamicHelp": false,
|
|
873
|
+
"multiple": false,
|
|
874
|
+
"type": "option"
|
|
716
875
|
}
|
|
717
876
|
},
|
|
718
877
|
"hasDynamicHelp": true,
|
|
719
878
|
"hiddenAliases": [],
|
|
720
|
-
"id": "compute:
|
|
879
|
+
"id": "compute:tail:runtime-log",
|
|
721
880
|
"pluginAlias": "@heroku/plugin-compute",
|
|
722
881
|
"pluginName": "@heroku/plugin-compute",
|
|
723
882
|
"pluginType": "core",
|
|
724
883
|
"strict": true,
|
|
725
|
-
"summary": "
|
|
726
|
-
"enableJsonFlag":
|
|
884
|
+
"summary": "Stream the live runtime log for a compute app.",
|
|
885
|
+
"enableJsonFlag": false,
|
|
727
886
|
"requiresProject": false,
|
|
728
887
|
"isESM": true,
|
|
729
888
|
"relativePath": [
|
|
730
889
|
"lib",
|
|
731
890
|
"commands",
|
|
732
891
|
"compute",
|
|
733
|
-
"
|
|
734
|
-
"
|
|
892
|
+
"tail",
|
|
893
|
+
"runtime-log.js"
|
|
735
894
|
],
|
|
736
895
|
"aliasPermutations": [],
|
|
737
896
|
"permutations": [
|
|
738
|
-
"compute:
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"compute:
|
|
742
|
-
"
|
|
743
|
-
"
|
|
897
|
+
"compute:tail:runtime-log",
|
|
898
|
+
"tail:compute:runtime-log",
|
|
899
|
+
"tail:runtime-log:compute",
|
|
900
|
+
"compute:runtime-log:tail",
|
|
901
|
+
"runtime-log:compute:tail",
|
|
902
|
+
"runtime-log:tail:compute"
|
|
744
903
|
]
|
|
745
904
|
},
|
|
746
|
-
"compute:
|
|
905
|
+
"compute:unset:config": {
|
|
747
906
|
"aliases": [],
|
|
748
|
-
"args": {
|
|
749
|
-
|
|
907
|
+
"args": {
|
|
908
|
+
"key": {
|
|
909
|
+
"multiple": true,
|
|
910
|
+
"name": "key"
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
"deprecateAliases": true,
|
|
914
|
+
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Unsetting a config var restarts the app's dynos so the removal\ntakes effect. Fails if any requested key isn't currently set.",
|
|
750
915
|
"examples": [
|
|
751
|
-
"
|
|
752
|
-
"
|
|
916
|
+
"Unset a single config var:\n<%= config.bin %> <%= command.id %> LOG_LEVEL --name CreditRatingScorer --target-org my-org",
|
|
917
|
+
"Unset more than one config var in one command:\n<%= config.bin %> <%= command.id %> LOG_LEVEL DEBUG_MODE --name CreditRatingScorer --target-org my-org"
|
|
753
918
|
],
|
|
754
919
|
"flags": {
|
|
755
920
|
"json": {
|
|
@@ -771,7 +936,7 @@
|
|
|
771
936
|
"char": "n",
|
|
772
937
|
"env": "COMPUTE_APP_NAME",
|
|
773
938
|
"name": "name",
|
|
774
|
-
"summary": "DeveloperName of the compute app to
|
|
939
|
+
"summary": "DeveloperName of the compute app to change config for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
775
940
|
"hasDynamicHelp": false,
|
|
776
941
|
"multiple": false,
|
|
777
942
|
"type": "option"
|
|
@@ -785,24 +950,18 @@
|
|
|
785
950
|
"hasDynamicHelp": true,
|
|
786
951
|
"multiple": false,
|
|
787
952
|
"type": "option"
|
|
788
|
-
},
|
|
789
|
-
"num": {
|
|
790
|
-
"name": "num",
|
|
791
|
-
"summary": "Number of recent log lines to print.",
|
|
792
|
-
"default": 100,
|
|
793
|
-
"hasDynamicHelp": false,
|
|
794
|
-
"multiple": false,
|
|
795
|
-
"type": "option"
|
|
796
953
|
}
|
|
797
954
|
},
|
|
798
955
|
"hasDynamicHelp": true,
|
|
799
|
-
"hiddenAliases": [
|
|
800
|
-
|
|
956
|
+
"hiddenAliases": [
|
|
957
|
+
"compute:config:unset"
|
|
958
|
+
],
|
|
959
|
+
"id": "compute:unset:config",
|
|
801
960
|
"pluginAlias": "@heroku/plugin-compute",
|
|
802
961
|
"pluginName": "@heroku/plugin-compute",
|
|
803
962
|
"pluginType": "core",
|
|
804
963
|
"strict": true,
|
|
805
|
-
"summary": "
|
|
964
|
+
"summary": "Unset one or more of a compute app's config vars.",
|
|
806
965
|
"enableJsonFlag": true,
|
|
807
966
|
"requiresProject": false,
|
|
808
967
|
"isESM": true,
|
|
@@ -810,25 +969,26 @@
|
|
|
810
969
|
"lib",
|
|
811
970
|
"commands",
|
|
812
971
|
"compute",
|
|
813
|
-
"
|
|
814
|
-
"
|
|
972
|
+
"unset",
|
|
973
|
+
"config.js"
|
|
815
974
|
],
|
|
816
975
|
"aliasPermutations": [],
|
|
817
976
|
"permutations": [
|
|
818
|
-
"compute:
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"compute:
|
|
822
|
-
"
|
|
823
|
-
"
|
|
977
|
+
"compute:unset:config",
|
|
978
|
+
"unset:compute:config",
|
|
979
|
+
"unset:config:compute",
|
|
980
|
+
"compute:config:unset",
|
|
981
|
+
"config:compute:unset",
|
|
982
|
+
"config:unset:compute"
|
|
824
983
|
]
|
|
825
984
|
},
|
|
826
|
-
"compute:
|
|
985
|
+
"compute:list:config": {
|
|
827
986
|
"aliases": [],
|
|
828
987
|
"args": {},
|
|
829
|
-
"
|
|
988
|
+
"deprecateAliases": true,
|
|
989
|
+
"description": "Shows every config var (environment variable) currently set for a deployed\ncompute app, sorted alphabetically. Goes through the target org's Salesforce\nConnect API, which calls Heroku on your behalf. Use sf compute get config to\nread a single var's value, sf compute set config to add or change vars, or\nsf compute unset config to remove them.",
|
|
830
990
|
"examples": [
|
|
831
|
-
"
|
|
991
|
+
"List all config vars for a compute app:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
832
992
|
],
|
|
833
993
|
"flags": {
|
|
834
994
|
"json": {
|
|
@@ -848,9 +1008,9 @@
|
|
|
848
1008
|
},
|
|
849
1009
|
"name": {
|
|
850
1010
|
"char": "n",
|
|
1011
|
+
"env": "COMPUTE_APP_NAME",
|
|
851
1012
|
"name": "name",
|
|
852
|
-
"
|
|
853
|
-
"summary": "DeveloperName of the compute app to retrieve (or <namespace>\\_\\_<developerName>\nif it was deployed under a namespace).",
|
|
1013
|
+
"summary": "DeveloperName of the compute app to list config vars for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
854
1014
|
"hasDynamicHelp": false,
|
|
855
1015
|
"multiple": false,
|
|
856
1016
|
"type": "option"
|
|
@@ -864,55 +1024,53 @@
|
|
|
864
1024
|
"hasDynamicHelp": true,
|
|
865
1025
|
"multiple": false,
|
|
866
1026
|
"type": "option"
|
|
867
|
-
},
|
|
868
|
-
"output-dir": {
|
|
869
|
-
"char": "d",
|
|
870
|
-
"description": "Defaults to force-app/main/default/platformComputeApps. The app itself is created in a\nsubdirectory named after --name.",
|
|
871
|
-
"name": "output-dir",
|
|
872
|
-
"summary": "Directory to create the app in.",
|
|
873
|
-
"default": "force-app/main/default/platformComputeApps",
|
|
874
|
-
"hasDynamicHelp": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"type": "option"
|
|
877
1027
|
}
|
|
878
1028
|
},
|
|
879
1029
|
"hasDynamicHelp": true,
|
|
880
|
-
"hiddenAliases": [
|
|
881
|
-
|
|
1030
|
+
"hiddenAliases": [
|
|
1031
|
+
"compute:config:list"
|
|
1032
|
+
],
|
|
1033
|
+
"id": "compute:list:config",
|
|
882
1034
|
"pluginAlias": "@heroku/plugin-compute",
|
|
883
1035
|
"pluginName": "@heroku/plugin-compute",
|
|
884
1036
|
"pluginType": "core",
|
|
885
1037
|
"strict": true,
|
|
886
|
-
"summary": "
|
|
1038
|
+
"summary": "List a compute app's config vars.",
|
|
887
1039
|
"enableJsonFlag": true,
|
|
888
|
-
"requiresProject":
|
|
1040
|
+
"requiresProject": false,
|
|
889
1041
|
"isESM": true,
|
|
890
1042
|
"relativePath": [
|
|
891
1043
|
"lib",
|
|
892
1044
|
"commands",
|
|
893
1045
|
"compute",
|
|
894
|
-
"
|
|
895
|
-
"
|
|
1046
|
+
"list",
|
|
1047
|
+
"config.js"
|
|
896
1048
|
],
|
|
897
1049
|
"aliasPermutations": [],
|
|
898
1050
|
"permutations": [
|
|
899
|
-
"compute:
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"compute:
|
|
903
|
-
"
|
|
904
|
-
"
|
|
1051
|
+
"compute:list:config",
|
|
1052
|
+
"list:compute:config",
|
|
1053
|
+
"list:config:compute",
|
|
1054
|
+
"compute:config:list",
|
|
1055
|
+
"config:compute:list",
|
|
1056
|
+
"config:list:compute"
|
|
905
1057
|
]
|
|
906
1058
|
},
|
|
907
|
-
"compute:
|
|
1059
|
+
"compute:list:telemetry-drain": {
|
|
908
1060
|
"aliases": [],
|
|
909
1061
|
"args": {},
|
|
910
|
-
"description": "
|
|
1062
|
+
"description": "Shows every OpenTelemetry drain forwarding the compute app's logs, metrics,\nand traces, with each drain's ID, signals, and endpoint. Use\nsf compute display telemetry-drain to see the full detail of a single drain.",
|
|
911
1063
|
"examples": [
|
|
912
|
-
"
|
|
913
|
-
"Print the most recent 500 lines, then keep streaming:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
|
|
1064
|
+
"List the telemetry drains for a compute app:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
914
1065
|
],
|
|
915
1066
|
"flags": {
|
|
1067
|
+
"json": {
|
|
1068
|
+
"description": "Format output as json.",
|
|
1069
|
+
"helpGroup": "GLOBAL",
|
|
1070
|
+
"name": "json",
|
|
1071
|
+
"allowNo": false,
|
|
1072
|
+
"type": "boolean"
|
|
1073
|
+
},
|
|
916
1074
|
"flags-dir": {
|
|
917
1075
|
"helpGroup": "GLOBAL",
|
|
918
1076
|
"name": "flags-dir",
|
|
@@ -925,7 +1083,7 @@
|
|
|
925
1083
|
"char": "n",
|
|
926
1084
|
"env": "COMPUTE_APP_NAME",
|
|
927
1085
|
"name": "name",
|
|
928
|
-
"summary": "DeveloperName of the compute app to
|
|
1086
|
+
"summary": "DeveloperName of the compute app to list telemetry drains for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
929
1087
|
"hasDynamicHelp": false,
|
|
930
1088
|
"multiple": false,
|
|
931
1089
|
"type": "option"
|
|
@@ -939,44 +1097,36 @@
|
|
|
939
1097
|
"hasDynamicHelp": true,
|
|
940
1098
|
"multiple": false,
|
|
941
1099
|
"type": "option"
|
|
942
|
-
},
|
|
943
|
-
"num": {
|
|
944
|
-
"name": "num",
|
|
945
|
-
"summary": "Number of recent log lines to print before streaming new output.",
|
|
946
|
-
"default": 100,
|
|
947
|
-
"hasDynamicHelp": false,
|
|
948
|
-
"multiple": false,
|
|
949
|
-
"type": "option"
|
|
950
1100
|
}
|
|
951
1101
|
},
|
|
952
1102
|
"hasDynamicHelp": true,
|
|
953
1103
|
"hiddenAliases": [],
|
|
954
|
-
"id": "compute:
|
|
1104
|
+
"id": "compute:list:telemetry-drain",
|
|
955
1105
|
"pluginAlias": "@heroku/plugin-compute",
|
|
956
1106
|
"pluginName": "@heroku/plugin-compute",
|
|
957
1107
|
"pluginType": "core",
|
|
958
1108
|
"strict": true,
|
|
959
|
-
"summary": "
|
|
960
|
-
"enableJsonFlag":
|
|
1109
|
+
"summary": "List the telemetry drains configured for a compute app.",
|
|
1110
|
+
"enableJsonFlag": true,
|
|
961
1111
|
"requiresProject": false,
|
|
962
1112
|
"isESM": true,
|
|
963
1113
|
"relativePath": [
|
|
964
1114
|
"lib",
|
|
965
1115
|
"commands",
|
|
966
1116
|
"compute",
|
|
967
|
-
"
|
|
968
|
-
"
|
|
1117
|
+
"list",
|
|
1118
|
+
"telemetry-drain.js"
|
|
969
1119
|
],
|
|
970
1120
|
"aliasPermutations": [],
|
|
971
1121
|
"permutations": [
|
|
972
|
-
"compute:
|
|
973
|
-
"
|
|
974
|
-
"
|
|
975
|
-
"compute:
|
|
976
|
-
"
|
|
977
|
-
"
|
|
1122
|
+
"compute:list:telemetry-drain",
|
|
1123
|
+
"list:compute:telemetry-drain",
|
|
1124
|
+
"list:telemetry-drain:compute",
|
|
1125
|
+
"compute:telemetry-drain:list",
|
|
1126
|
+
"telemetry-drain:compute:list",
|
|
1127
|
+
"telemetry-drain:list:compute"
|
|
978
1128
|
]
|
|
979
1129
|
}
|
|
980
1130
|
},
|
|
981
|
-
"version": "0.
|
|
1131
|
+
"version": "0.3.0"
|
|
982
1132
|
}
|