@sonisoft/now-sdk-ext-cli 5.3.0 → 5.4.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/README.md +187 -74
- package/dist/commands/transaction/kill.d.ts +12 -0
- package/dist/commands/transaction/kill.d.ts.map +1 -0
- package/dist/commands/transaction/kill.js +48 -0
- package/dist/commands/transaction/kill.js.map +1 -0
- package/dist/commands/transaction/list.d.ts +20 -0
- package/dist/commands/transaction/list.d.ts.map +1 -0
- package/dist/commands/transaction/list.js +64 -0
- package/dist/commands/transaction/list.js.map +1 -0
- package/dist/services/transaction-display.service.d.ts +5 -0
- package/dist/services/transaction-display.service.d.ts.map +1 -0
- package/dist/services/transaction-display.service.js +33 -0
- package/dist/services/transaction-display.service.js.map +1 -0
- package/oclif.manifest.json +1019 -758
- package/package.json +4 -1
package/oclif.manifest.json
CHANGED
|
@@ -513,6 +513,240 @@
|
|
|
513
513
|
"query.js"
|
|
514
514
|
]
|
|
515
515
|
},
|
|
516
|
+
"atf": {
|
|
517
|
+
"aliases": [],
|
|
518
|
+
"args": {},
|
|
519
|
+
"description": "Execute ATF (Automated Test Framework) tests or test suites on a ServiceNow instance.\n\nThis command allows you to run automated tests and test suites remotely, making it perfect for CI/CD pipelines and automated testing workflows. You can execute individual tests, entire test suites, and configure execution parameters such as browser type, OS, and performance mode.\n\nFeatures:\n • Execute individual tests or complete test suites\n • Real-time progress monitoring\n • JSON output for CI/CD integration\n • Detailed test results and summaries\n • Browser and environment configuration\n • Performance testing mode support",
|
|
520
|
+
"examples": [
|
|
521
|
+
{
|
|
522
|
+
"description": "Execute a single ATF test by sys_id",
|
|
523
|
+
"command": "<%= config.bin %> <%= command.id %> --test-id f717a8c783103210621e78c6feaad396 --auth dev-instance"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"description": "Execute a test suite by sys_id and wait for completion",
|
|
527
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --auth dev-instance --wait"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"description": "Execute a test suite by name",
|
|
531
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-name \"Smoke Tests\" --auth dev-instance"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"description": "Execute with specific browser configuration",
|
|
535
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --browser chrome --auth dev-instance"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"description": "Execute as performance test with JSON output for CI/CD",
|
|
539
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --performance --json --auth dev-instance"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"description": "Execute with custom poll interval (10 seconds)",
|
|
543
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"flags": {
|
|
547
|
+
"json": {
|
|
548
|
+
"char": "j",
|
|
549
|
+
"description": "Output results as JSON",
|
|
550
|
+
"name": "json",
|
|
551
|
+
"required": false,
|
|
552
|
+
"allowNo": false,
|
|
553
|
+
"type": "boolean"
|
|
554
|
+
},
|
|
555
|
+
"auth": {
|
|
556
|
+
"char": "a",
|
|
557
|
+
"description": "Auth alias to use.",
|
|
558
|
+
"name": "auth",
|
|
559
|
+
"required": false,
|
|
560
|
+
"hasDynamicHelp": false,
|
|
561
|
+
"multiple": false,
|
|
562
|
+
"type": "option"
|
|
563
|
+
},
|
|
564
|
+
"cred-store": {
|
|
565
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
566
|
+
"helpGroup": "GLOBAL",
|
|
567
|
+
"name": "cred-store",
|
|
568
|
+
"required": false,
|
|
569
|
+
"allowNo": false,
|
|
570
|
+
"type": "boolean"
|
|
571
|
+
},
|
|
572
|
+
"deny-execute": {
|
|
573
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
574
|
+
"helpGroup": "GLOBAL",
|
|
575
|
+
"name": "deny-execute",
|
|
576
|
+
"required": false,
|
|
577
|
+
"allowNo": false,
|
|
578
|
+
"type": "boolean"
|
|
579
|
+
},
|
|
580
|
+
"deny-write": {
|
|
581
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
582
|
+
"helpGroup": "GLOBAL",
|
|
583
|
+
"name": "deny-write",
|
|
584
|
+
"required": false,
|
|
585
|
+
"allowNo": false,
|
|
586
|
+
"type": "boolean"
|
|
587
|
+
},
|
|
588
|
+
"log-dir": {
|
|
589
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
590
|
+
"helpGroup": "GLOBAL",
|
|
591
|
+
"name": "log-dir",
|
|
592
|
+
"required": false,
|
|
593
|
+
"hasDynamicHelp": false,
|
|
594
|
+
"multiple": false,
|
|
595
|
+
"type": "option"
|
|
596
|
+
},
|
|
597
|
+
"log-file": {
|
|
598
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
599
|
+
"helpGroup": "GLOBAL",
|
|
600
|
+
"name": "log-file",
|
|
601
|
+
"required": false,
|
|
602
|
+
"allowNo": false,
|
|
603
|
+
"type": "boolean"
|
|
604
|
+
},
|
|
605
|
+
"log-level": {
|
|
606
|
+
"helpGroup": "GLOBAL",
|
|
607
|
+
"name": "log-level",
|
|
608
|
+
"summary": "Specify level for logging.",
|
|
609
|
+
"default": "info",
|
|
610
|
+
"hasDynamicHelp": false,
|
|
611
|
+
"multiple": false,
|
|
612
|
+
"options": [
|
|
613
|
+
"debug",
|
|
614
|
+
"warn",
|
|
615
|
+
"error",
|
|
616
|
+
"info",
|
|
617
|
+
"trace"
|
|
618
|
+
],
|
|
619
|
+
"type": "option"
|
|
620
|
+
},
|
|
621
|
+
"read-only": {
|
|
622
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
623
|
+
"helpGroup": "GLOBAL",
|
|
624
|
+
"name": "read-only",
|
|
625
|
+
"required": false,
|
|
626
|
+
"allowNo": false,
|
|
627
|
+
"type": "boolean"
|
|
628
|
+
},
|
|
629
|
+
"test-id": {
|
|
630
|
+
"char": "t",
|
|
631
|
+
"description": "Test sys_id to execute",
|
|
632
|
+
"exclusive": [
|
|
633
|
+
"suite-id",
|
|
634
|
+
"suite-name"
|
|
635
|
+
],
|
|
636
|
+
"name": "test-id",
|
|
637
|
+
"required": false,
|
|
638
|
+
"hasDynamicHelp": false,
|
|
639
|
+
"multiple": false,
|
|
640
|
+
"type": "option"
|
|
641
|
+
},
|
|
642
|
+
"suite-id": {
|
|
643
|
+
"char": "s",
|
|
644
|
+
"description": "Test Suite sys_id to execute",
|
|
645
|
+
"exclusive": [
|
|
646
|
+
"test-id",
|
|
647
|
+
"suite-name"
|
|
648
|
+
],
|
|
649
|
+
"name": "suite-id",
|
|
650
|
+
"required": false,
|
|
651
|
+
"hasDynamicHelp": false,
|
|
652
|
+
"multiple": false,
|
|
653
|
+
"type": "option"
|
|
654
|
+
},
|
|
655
|
+
"suite-name": {
|
|
656
|
+
"char": "n",
|
|
657
|
+
"description": "Test Suite name to execute",
|
|
658
|
+
"exclusive": [
|
|
659
|
+
"test-id",
|
|
660
|
+
"suite-id"
|
|
661
|
+
],
|
|
662
|
+
"name": "suite-name",
|
|
663
|
+
"required": false,
|
|
664
|
+
"hasDynamicHelp": false,
|
|
665
|
+
"multiple": false,
|
|
666
|
+
"type": "option"
|
|
667
|
+
},
|
|
668
|
+
"wait": {
|
|
669
|
+
"char": "w",
|
|
670
|
+
"description": "Wait for test suite execution to complete and return results",
|
|
671
|
+
"name": "wait",
|
|
672
|
+
"required": false,
|
|
673
|
+
"allowNo": false,
|
|
674
|
+
"type": "boolean"
|
|
675
|
+
},
|
|
676
|
+
"poll-interval": {
|
|
677
|
+
"char": "p",
|
|
678
|
+
"description": "Polling interval in milliseconds when waiting for completion",
|
|
679
|
+
"name": "poll-interval",
|
|
680
|
+
"required": false,
|
|
681
|
+
"default": 5000,
|
|
682
|
+
"hasDynamicHelp": false,
|
|
683
|
+
"multiple": false,
|
|
684
|
+
"type": "option"
|
|
685
|
+
},
|
|
686
|
+
"browser": {
|
|
687
|
+
"char": "b",
|
|
688
|
+
"description": "Browser name for test execution (e.g., chrome, firefox)",
|
|
689
|
+
"name": "browser",
|
|
690
|
+
"required": false,
|
|
691
|
+
"hasDynamicHelp": false,
|
|
692
|
+
"multiple": false,
|
|
693
|
+
"type": "option"
|
|
694
|
+
},
|
|
695
|
+
"browser-version": {
|
|
696
|
+
"description": "Browser version for test execution",
|
|
697
|
+
"name": "browser-version",
|
|
698
|
+
"required": false,
|
|
699
|
+
"hasDynamicHelp": false,
|
|
700
|
+
"multiple": false,
|
|
701
|
+
"type": "option"
|
|
702
|
+
},
|
|
703
|
+
"os-name": {
|
|
704
|
+
"description": "Operating system name for test execution",
|
|
705
|
+
"name": "os-name",
|
|
706
|
+
"required": false,
|
|
707
|
+
"hasDynamicHelp": false,
|
|
708
|
+
"multiple": false,
|
|
709
|
+
"type": "option"
|
|
710
|
+
},
|
|
711
|
+
"os-version": {
|
|
712
|
+
"description": "Operating system version for test execution",
|
|
713
|
+
"name": "os-version",
|
|
714
|
+
"required": false,
|
|
715
|
+
"hasDynamicHelp": false,
|
|
716
|
+
"multiple": false,
|
|
717
|
+
"type": "option"
|
|
718
|
+
},
|
|
719
|
+
"performance": {
|
|
720
|
+
"description": "Run as performance test",
|
|
721
|
+
"name": "performance",
|
|
722
|
+
"required": false,
|
|
723
|
+
"allowNo": false,
|
|
724
|
+
"type": "boolean"
|
|
725
|
+
},
|
|
726
|
+
"cloud": {
|
|
727
|
+
"description": "Run in cloud",
|
|
728
|
+
"name": "cloud",
|
|
729
|
+
"required": false,
|
|
730
|
+
"allowNo": false,
|
|
731
|
+
"type": "boolean"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"hasDynamicHelp": false,
|
|
735
|
+
"hiddenAliases": [],
|
|
736
|
+
"id": "atf",
|
|
737
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
738
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
739
|
+
"pluginType": "core",
|
|
740
|
+
"strict": true,
|
|
741
|
+
"enableJsonFlag": true,
|
|
742
|
+
"isESM": true,
|
|
743
|
+
"relativePath": [
|
|
744
|
+
"dist",
|
|
745
|
+
"commands",
|
|
746
|
+
"atf",
|
|
747
|
+
"index.js"
|
|
748
|
+
]
|
|
749
|
+
},
|
|
516
750
|
"app": {
|
|
517
751
|
"aliases": [],
|
|
518
752
|
"args": {},
|
|
@@ -1237,261 +1471,27 @@
|
|
|
1237
1471
|
"uninstall.js"
|
|
1238
1472
|
]
|
|
1239
1473
|
},
|
|
1240
|
-
"
|
|
1474
|
+
"attachment:get": {
|
|
1241
1475
|
"aliases": [],
|
|
1242
1476
|
"args": {},
|
|
1243
|
-
"description": "
|
|
1477
|
+
"description": "Get metadata for a specific attachment.",
|
|
1244
1478
|
"examples": [
|
|
1245
1479
|
{
|
|
1246
|
-
"
|
|
1247
|
-
"
|
|
1480
|
+
"command": "<%= config.bin %> <%= command.id %> --sys-id att123 --auth dev",
|
|
1481
|
+
"description": "Get attachment metadata by sys_id"
|
|
1248
1482
|
},
|
|
1249
1483
|
{
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1260
|
-
|
|
1261
|
-
{
|
|
1262
|
-
"description": "Execute as performance test with JSON output for CI/CD",
|
|
1263
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --performance --json --auth dev-instance"
|
|
1264
|
-
},
|
|
1265
|
-
{
|
|
1266
|
-
"description": "Execute with custom poll interval (10 seconds)",
|
|
1267
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance"
|
|
1268
|
-
}
|
|
1269
|
-
],
|
|
1270
|
-
"flags": {
|
|
1271
|
-
"json": {
|
|
1272
|
-
"char": "j",
|
|
1273
|
-
"description": "Output results as JSON",
|
|
1274
|
-
"name": "json",
|
|
1275
|
-
"required": false,
|
|
1276
|
-
"allowNo": false,
|
|
1277
|
-
"type": "boolean"
|
|
1278
|
-
},
|
|
1279
|
-
"auth": {
|
|
1280
|
-
"char": "a",
|
|
1281
|
-
"description": "Auth alias to use.",
|
|
1282
|
-
"name": "auth",
|
|
1283
|
-
"required": false,
|
|
1284
|
-
"hasDynamicHelp": false,
|
|
1285
|
-
"multiple": false,
|
|
1286
|
-
"type": "option"
|
|
1287
|
-
},
|
|
1288
|
-
"cred-store": {
|
|
1289
|
-
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
1290
|
-
"helpGroup": "GLOBAL",
|
|
1291
|
-
"name": "cred-store",
|
|
1292
|
-
"required": false,
|
|
1293
|
-
"allowNo": false,
|
|
1294
|
-
"type": "boolean"
|
|
1295
|
-
},
|
|
1296
|
-
"deny-execute": {
|
|
1297
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
1298
|
-
"helpGroup": "GLOBAL",
|
|
1299
|
-
"name": "deny-execute",
|
|
1300
|
-
"required": false,
|
|
1301
|
-
"allowNo": false,
|
|
1302
|
-
"type": "boolean"
|
|
1303
|
-
},
|
|
1304
|
-
"deny-write": {
|
|
1305
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
1306
|
-
"helpGroup": "GLOBAL",
|
|
1307
|
-
"name": "deny-write",
|
|
1308
|
-
"required": false,
|
|
1309
|
-
"allowNo": false,
|
|
1310
|
-
"type": "boolean"
|
|
1311
|
-
},
|
|
1312
|
-
"log-dir": {
|
|
1313
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
1314
|
-
"helpGroup": "GLOBAL",
|
|
1315
|
-
"name": "log-dir",
|
|
1316
|
-
"required": false,
|
|
1317
|
-
"hasDynamicHelp": false,
|
|
1318
|
-
"multiple": false,
|
|
1319
|
-
"type": "option"
|
|
1320
|
-
},
|
|
1321
|
-
"log-file": {
|
|
1322
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
1323
|
-
"helpGroup": "GLOBAL",
|
|
1324
|
-
"name": "log-file",
|
|
1325
|
-
"required": false,
|
|
1326
|
-
"allowNo": false,
|
|
1327
|
-
"type": "boolean"
|
|
1328
|
-
},
|
|
1329
|
-
"log-level": {
|
|
1330
|
-
"helpGroup": "GLOBAL",
|
|
1331
|
-
"name": "log-level",
|
|
1332
|
-
"summary": "Specify level for logging.",
|
|
1333
|
-
"default": "info",
|
|
1334
|
-
"hasDynamicHelp": false,
|
|
1335
|
-
"multiple": false,
|
|
1336
|
-
"options": [
|
|
1337
|
-
"debug",
|
|
1338
|
-
"warn",
|
|
1339
|
-
"error",
|
|
1340
|
-
"info",
|
|
1341
|
-
"trace"
|
|
1342
|
-
],
|
|
1343
|
-
"type": "option"
|
|
1344
|
-
},
|
|
1345
|
-
"read-only": {
|
|
1346
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
1347
|
-
"helpGroup": "GLOBAL",
|
|
1348
|
-
"name": "read-only",
|
|
1349
|
-
"required": false,
|
|
1350
|
-
"allowNo": false,
|
|
1351
|
-
"type": "boolean"
|
|
1352
|
-
},
|
|
1353
|
-
"test-id": {
|
|
1354
|
-
"char": "t",
|
|
1355
|
-
"description": "Test sys_id to execute",
|
|
1356
|
-
"exclusive": [
|
|
1357
|
-
"suite-id",
|
|
1358
|
-
"suite-name"
|
|
1359
|
-
],
|
|
1360
|
-
"name": "test-id",
|
|
1361
|
-
"required": false,
|
|
1362
|
-
"hasDynamicHelp": false,
|
|
1363
|
-
"multiple": false,
|
|
1364
|
-
"type": "option"
|
|
1365
|
-
},
|
|
1366
|
-
"suite-id": {
|
|
1367
|
-
"char": "s",
|
|
1368
|
-
"description": "Test Suite sys_id to execute",
|
|
1369
|
-
"exclusive": [
|
|
1370
|
-
"test-id",
|
|
1371
|
-
"suite-name"
|
|
1372
|
-
],
|
|
1373
|
-
"name": "suite-id",
|
|
1374
|
-
"required": false,
|
|
1375
|
-
"hasDynamicHelp": false,
|
|
1376
|
-
"multiple": false,
|
|
1377
|
-
"type": "option"
|
|
1378
|
-
},
|
|
1379
|
-
"suite-name": {
|
|
1380
|
-
"char": "n",
|
|
1381
|
-
"description": "Test Suite name to execute",
|
|
1382
|
-
"exclusive": [
|
|
1383
|
-
"test-id",
|
|
1384
|
-
"suite-id"
|
|
1385
|
-
],
|
|
1386
|
-
"name": "suite-name",
|
|
1387
|
-
"required": false,
|
|
1388
|
-
"hasDynamicHelp": false,
|
|
1389
|
-
"multiple": false,
|
|
1390
|
-
"type": "option"
|
|
1391
|
-
},
|
|
1392
|
-
"wait": {
|
|
1393
|
-
"char": "w",
|
|
1394
|
-
"description": "Wait for test suite execution to complete and return results",
|
|
1395
|
-
"name": "wait",
|
|
1396
|
-
"required": false,
|
|
1397
|
-
"allowNo": false,
|
|
1398
|
-
"type": "boolean"
|
|
1399
|
-
},
|
|
1400
|
-
"poll-interval": {
|
|
1401
|
-
"char": "p",
|
|
1402
|
-
"description": "Polling interval in milliseconds when waiting for completion",
|
|
1403
|
-
"name": "poll-interval",
|
|
1404
|
-
"required": false,
|
|
1405
|
-
"default": 5000,
|
|
1406
|
-
"hasDynamicHelp": false,
|
|
1407
|
-
"multiple": false,
|
|
1408
|
-
"type": "option"
|
|
1409
|
-
},
|
|
1410
|
-
"browser": {
|
|
1411
|
-
"char": "b",
|
|
1412
|
-
"description": "Browser name for test execution (e.g., chrome, firefox)",
|
|
1413
|
-
"name": "browser",
|
|
1414
|
-
"required": false,
|
|
1415
|
-
"hasDynamicHelp": false,
|
|
1416
|
-
"multiple": false,
|
|
1417
|
-
"type": "option"
|
|
1418
|
-
},
|
|
1419
|
-
"browser-version": {
|
|
1420
|
-
"description": "Browser version for test execution",
|
|
1421
|
-
"name": "browser-version",
|
|
1422
|
-
"required": false,
|
|
1423
|
-
"hasDynamicHelp": false,
|
|
1424
|
-
"multiple": false,
|
|
1425
|
-
"type": "option"
|
|
1426
|
-
},
|
|
1427
|
-
"os-name": {
|
|
1428
|
-
"description": "Operating system name for test execution",
|
|
1429
|
-
"name": "os-name",
|
|
1430
|
-
"required": false,
|
|
1431
|
-
"hasDynamicHelp": false,
|
|
1432
|
-
"multiple": false,
|
|
1433
|
-
"type": "option"
|
|
1434
|
-
},
|
|
1435
|
-
"os-version": {
|
|
1436
|
-
"description": "Operating system version for test execution",
|
|
1437
|
-
"name": "os-version",
|
|
1438
|
-
"required": false,
|
|
1439
|
-
"hasDynamicHelp": false,
|
|
1440
|
-
"multiple": false,
|
|
1441
|
-
"type": "option"
|
|
1442
|
-
},
|
|
1443
|
-
"performance": {
|
|
1444
|
-
"description": "Run as performance test",
|
|
1445
|
-
"name": "performance",
|
|
1446
|
-
"required": false,
|
|
1447
|
-
"allowNo": false,
|
|
1448
|
-
"type": "boolean"
|
|
1449
|
-
},
|
|
1450
|
-
"cloud": {
|
|
1451
|
-
"description": "Run in cloud",
|
|
1452
|
-
"name": "cloud",
|
|
1453
|
-
"required": false,
|
|
1454
|
-
"allowNo": false,
|
|
1455
|
-
"type": "boolean"
|
|
1456
|
-
}
|
|
1457
|
-
},
|
|
1458
|
-
"hasDynamicHelp": false,
|
|
1459
|
-
"hiddenAliases": [],
|
|
1460
|
-
"id": "atf",
|
|
1461
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
1462
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
1463
|
-
"pluginType": "core",
|
|
1464
|
-
"strict": true,
|
|
1465
|
-
"enableJsonFlag": true,
|
|
1466
|
-
"isESM": true,
|
|
1467
|
-
"relativePath": [
|
|
1468
|
-
"dist",
|
|
1469
|
-
"commands",
|
|
1470
|
-
"atf",
|
|
1471
|
-
"index.js"
|
|
1472
|
-
]
|
|
1473
|
-
},
|
|
1474
|
-
"attachment:get": {
|
|
1475
|
-
"aliases": [],
|
|
1476
|
-
"args": {},
|
|
1477
|
-
"description": "Get metadata for a specific attachment.",
|
|
1478
|
-
"examples": [
|
|
1479
|
-
{
|
|
1480
|
-
"command": "<%= config.bin %> <%= command.id %> --sys-id att123 --auth dev",
|
|
1481
|
-
"description": "Get attachment metadata by sys_id"
|
|
1482
|
-
},
|
|
1483
|
-
{
|
|
1484
|
-
"command": "<%= config.bin %> <%= command.id %> -s att123 --json --auth dev",
|
|
1485
|
-
"description": "Get attachment metadata as JSON"
|
|
1486
|
-
}
|
|
1487
|
-
],
|
|
1488
|
-
"flags": {
|
|
1489
|
-
"json": {
|
|
1490
|
-
"description": "Format output as json.",
|
|
1491
|
-
"helpGroup": "GLOBAL",
|
|
1492
|
-
"name": "json",
|
|
1493
|
-
"allowNo": false,
|
|
1494
|
-
"type": "boolean"
|
|
1484
|
+
"command": "<%= config.bin %> <%= command.id %> -s att123 --json --auth dev",
|
|
1485
|
+
"description": "Get attachment metadata as JSON"
|
|
1486
|
+
}
|
|
1487
|
+
],
|
|
1488
|
+
"flags": {
|
|
1489
|
+
"json": {
|
|
1490
|
+
"description": "Format output as json.",
|
|
1491
|
+
"helpGroup": "GLOBAL",
|
|
1492
|
+
"name": "json",
|
|
1493
|
+
"allowNo": false,
|
|
1494
|
+
"type": "boolean"
|
|
1495
1495
|
},
|
|
1496
1496
|
"auth": {
|
|
1497
1497
|
"char": "a",
|
|
@@ -2817,176 +2817,10 @@
|
|
|
2817
2817
|
"index.js"
|
|
2818
2818
|
]
|
|
2819
2819
|
},
|
|
2820
|
-
"
|
|
2820
|
+
"flow:action": {
|
|
2821
2821
|
"aliases": [],
|
|
2822
2822
|
"args": {},
|
|
2823
|
-
"description": "
|
|
2824
|
-
"examples": [
|
|
2825
|
-
{
|
|
2826
|
-
"description": "Run full health check",
|
|
2827
|
-
"command": "<%= config.bin %> <%= command.id %> --auth dev"
|
|
2828
|
-
},
|
|
2829
|
-
{
|
|
2830
|
-
"description": "Check only version and stuck jobs",
|
|
2831
|
-
"command": "<%= config.bin %> <%= command.id %> --include-version --include-stuck-jobs --no-include-cluster --no-include-semaphores --no-include-operational-counts --auth dev"
|
|
2832
|
-
},
|
|
2833
|
-
{
|
|
2834
|
-
"description": "Health check with custom stuck job threshold",
|
|
2835
|
-
"command": "<%= config.bin %> <%= command.id %> --stuck-job-threshold 60 --auth dev"
|
|
2836
|
-
},
|
|
2837
|
-
{
|
|
2838
|
-
"description": "Health check as JSON",
|
|
2839
|
-
"command": "<%= config.bin %> <%= command.id %> --json --auth dev"
|
|
2840
|
-
}
|
|
2841
|
-
],
|
|
2842
|
-
"flags": {
|
|
2843
|
-
"json": {
|
|
2844
|
-
"char": "j",
|
|
2845
|
-
"description": "Output results as JSON",
|
|
2846
|
-
"name": "json",
|
|
2847
|
-
"required": false,
|
|
2848
|
-
"allowNo": false,
|
|
2849
|
-
"type": "boolean"
|
|
2850
|
-
},
|
|
2851
|
-
"auth": {
|
|
2852
|
-
"char": "a",
|
|
2853
|
-
"description": "Auth alias to use.",
|
|
2854
|
-
"name": "auth",
|
|
2855
|
-
"required": false,
|
|
2856
|
-
"hasDynamicHelp": false,
|
|
2857
|
-
"multiple": false,
|
|
2858
|
-
"type": "option"
|
|
2859
|
-
},
|
|
2860
|
-
"cred-store": {
|
|
2861
|
-
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
2862
|
-
"helpGroup": "GLOBAL",
|
|
2863
|
-
"name": "cred-store",
|
|
2864
|
-
"required": false,
|
|
2865
|
-
"allowNo": false,
|
|
2866
|
-
"type": "boolean"
|
|
2867
|
-
},
|
|
2868
|
-
"deny-execute": {
|
|
2869
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
2870
|
-
"helpGroup": "GLOBAL",
|
|
2871
|
-
"name": "deny-execute",
|
|
2872
|
-
"required": false,
|
|
2873
|
-
"allowNo": false,
|
|
2874
|
-
"type": "boolean"
|
|
2875
|
-
},
|
|
2876
|
-
"deny-write": {
|
|
2877
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
2878
|
-
"helpGroup": "GLOBAL",
|
|
2879
|
-
"name": "deny-write",
|
|
2880
|
-
"required": false,
|
|
2881
|
-
"allowNo": false,
|
|
2882
|
-
"type": "boolean"
|
|
2883
|
-
},
|
|
2884
|
-
"log-dir": {
|
|
2885
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
2886
|
-
"helpGroup": "GLOBAL",
|
|
2887
|
-
"name": "log-dir",
|
|
2888
|
-
"required": false,
|
|
2889
|
-
"hasDynamicHelp": false,
|
|
2890
|
-
"multiple": false,
|
|
2891
|
-
"type": "option"
|
|
2892
|
-
},
|
|
2893
|
-
"log-file": {
|
|
2894
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
2895
|
-
"helpGroup": "GLOBAL",
|
|
2896
|
-
"name": "log-file",
|
|
2897
|
-
"required": false,
|
|
2898
|
-
"allowNo": false,
|
|
2899
|
-
"type": "boolean"
|
|
2900
|
-
},
|
|
2901
|
-
"log-level": {
|
|
2902
|
-
"helpGroup": "GLOBAL",
|
|
2903
|
-
"name": "log-level",
|
|
2904
|
-
"summary": "Specify level for logging.",
|
|
2905
|
-
"default": "info",
|
|
2906
|
-
"hasDynamicHelp": false,
|
|
2907
|
-
"multiple": false,
|
|
2908
|
-
"options": [
|
|
2909
|
-
"debug",
|
|
2910
|
-
"warn",
|
|
2911
|
-
"error",
|
|
2912
|
-
"info",
|
|
2913
|
-
"trace"
|
|
2914
|
-
],
|
|
2915
|
-
"type": "option"
|
|
2916
|
-
},
|
|
2917
|
-
"read-only": {
|
|
2918
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
2919
|
-
"helpGroup": "GLOBAL",
|
|
2920
|
-
"name": "read-only",
|
|
2921
|
-
"required": false,
|
|
2922
|
-
"allowNo": false,
|
|
2923
|
-
"type": "boolean"
|
|
2924
|
-
},
|
|
2925
|
-
"include-version": {
|
|
2926
|
-
"description": "Include instance version information",
|
|
2927
|
-
"name": "include-version",
|
|
2928
|
-
"required": false,
|
|
2929
|
-
"allowNo": true,
|
|
2930
|
-
"type": "boolean"
|
|
2931
|
-
},
|
|
2932
|
-
"include-cluster": {
|
|
2933
|
-
"description": "Include cluster node status",
|
|
2934
|
-
"name": "include-cluster",
|
|
2935
|
-
"required": false,
|
|
2936
|
-
"allowNo": true,
|
|
2937
|
-
"type": "boolean"
|
|
2938
|
-
},
|
|
2939
|
-
"include-stuck-jobs": {
|
|
2940
|
-
"description": "Include stuck job detection",
|
|
2941
|
-
"name": "include-stuck-jobs",
|
|
2942
|
-
"required": false,
|
|
2943
|
-
"allowNo": true,
|
|
2944
|
-
"type": "boolean"
|
|
2945
|
-
},
|
|
2946
|
-
"include-semaphores": {
|
|
2947
|
-
"description": "Include active semaphore count",
|
|
2948
|
-
"name": "include-semaphores",
|
|
2949
|
-
"required": false,
|
|
2950
|
-
"allowNo": true,
|
|
2951
|
-
"type": "boolean"
|
|
2952
|
-
},
|
|
2953
|
-
"include-operational-counts": {
|
|
2954
|
-
"description": "Include operational record counts (incidents, changes, problems)",
|
|
2955
|
-
"name": "include-operational-counts",
|
|
2956
|
-
"required": false,
|
|
2957
|
-
"allowNo": true,
|
|
2958
|
-
"type": "boolean"
|
|
2959
|
-
},
|
|
2960
|
-
"stuck-job-threshold": {
|
|
2961
|
-
"description": "Minutes threshold for a job to be considered stuck",
|
|
2962
|
-
"name": "stuck-job-threshold",
|
|
2963
|
-
"required": false,
|
|
2964
|
-
"default": 30,
|
|
2965
|
-
"hasDynamicHelp": false,
|
|
2966
|
-
"multiple": false,
|
|
2967
|
-
"type": "option"
|
|
2968
|
-
}
|
|
2969
|
-
},
|
|
2970
|
-
"hasDynamicHelp": false,
|
|
2971
|
-
"hiddenAliases": [],
|
|
2972
|
-
"id": "health:check",
|
|
2973
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
2974
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
2975
|
-
"pluginType": "core",
|
|
2976
|
-
"strict": true,
|
|
2977
|
-
"enableJsonFlag": true,
|
|
2978
|
-
"isESM": true,
|
|
2979
|
-
"relativePath": [
|
|
2980
|
-
"dist",
|
|
2981
|
-
"commands",
|
|
2982
|
-
"health",
|
|
2983
|
-
"check.js"
|
|
2984
|
-
]
|
|
2985
|
-
},
|
|
2986
|
-
"flow:action": {
|
|
2987
|
-
"aliases": [],
|
|
2988
|
-
"args": {},
|
|
2989
|
-
"description": "Execute a Flow Designer action by scoped name.\n\nRuns an action using the sn_fd.FlowAPI ScriptableFlowRunner.\n\nFeatures:\n • Execute actions by scoped name\n • Pass input values as JSON\n • Foreground or background execution mode\n • Returns context ID, outputs, and debug information",
|
|
2823
|
+
"description": "Execute a Flow Designer action by scoped name.\n\nRuns an action using the sn_fd.FlowAPI ScriptableFlowRunner.\n\nFeatures:\n • Execute actions by scoped name\n • Pass input values as JSON\n • Foreground or background execution mode\n • Returns context ID, outputs, and debug information",
|
|
2990
2824
|
"examples": [
|
|
2991
2825
|
{
|
|
2992
2826
|
"description": "Run an action",
|
|
@@ -4723,7 +4557,324 @@
|
|
|
4723
4557
|
},
|
|
4724
4558
|
"hasDynamicHelp": false,
|
|
4725
4559
|
"hiddenAliases": [],
|
|
4726
|
-
"id": "flow:subflow",
|
|
4560
|
+
"id": "flow:subflow",
|
|
4561
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4562
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4563
|
+
"pluginType": "core",
|
|
4564
|
+
"strict": true,
|
|
4565
|
+
"enableJsonFlag": true,
|
|
4566
|
+
"isESM": true,
|
|
4567
|
+
"relativePath": [
|
|
4568
|
+
"dist",
|
|
4569
|
+
"commands",
|
|
4570
|
+
"flow",
|
|
4571
|
+
"subflow.js"
|
|
4572
|
+
]
|
|
4573
|
+
},
|
|
4574
|
+
"flow:test": {
|
|
4575
|
+
"aliases": [],
|
|
4576
|
+
"args": {},
|
|
4577
|
+
"description": "Test a Flow Designer flow without requiring it to be published.\n\nInvokes the same API as the \"Test\" button in Flow Designer, running the flow in its current saved (draft) state. Unlike `flow run` which requires a published flow and uses sn_fd.FlowAPI, `flow test` works on unpublished drafts via the ProcessFlow REST API.\n\nFeatures:\n • Test flows by sys_id or scoped name\n • Pass trigger output values as JSON via --output-map\n • Auto-resolves scope from flow definition if not provided\n • Synchronous or asynchronous execution",
|
|
4578
|
+
"examples": [
|
|
4579
|
+
{
|
|
4580
|
+
"description": "Test a flow by sys_id",
|
|
4581
|
+
"command": "<%= config.bin %> <%= command.id %> --flow-id 887dda5583237210fdb8f7b6feaad32c --output-map '{\"current\":\"0ecd7552db252200a6a2b31be0b8f5e6\",\"table_name\":\"change_request\"}' --auth dev"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
"description": "Test a flow by scoped name with explicit scope",
|
|
4585
|
+
"command": "<%= config.bin %> <%= command.id %> -f x_myapp.my_flow -o '{\"current\":\"abc123\",\"table_name\":\"incident\"}' --scope x_myapp --auth dev"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"description": "Test with JSON output",
|
|
4589
|
+
"command": "<%= config.bin %> <%= command.id %> -f 887dda5583237210fdb8f7b6feaad32c -o '{\"current\":\"abc123\"}' --json --auth dev"
|
|
4590
|
+
}
|
|
4591
|
+
],
|
|
4592
|
+
"flags": {
|
|
4593
|
+
"json": {
|
|
4594
|
+
"char": "j",
|
|
4595
|
+
"description": "Output results as JSON",
|
|
4596
|
+
"name": "json",
|
|
4597
|
+
"required": false,
|
|
4598
|
+
"allowNo": false,
|
|
4599
|
+
"type": "boolean"
|
|
4600
|
+
},
|
|
4601
|
+
"auth": {
|
|
4602
|
+
"char": "a",
|
|
4603
|
+
"description": "Auth alias to use.",
|
|
4604
|
+
"name": "auth",
|
|
4605
|
+
"required": false,
|
|
4606
|
+
"hasDynamicHelp": false,
|
|
4607
|
+
"multiple": false,
|
|
4608
|
+
"type": "option"
|
|
4609
|
+
},
|
|
4610
|
+
"cred-store": {
|
|
4611
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
4612
|
+
"helpGroup": "GLOBAL",
|
|
4613
|
+
"name": "cred-store",
|
|
4614
|
+
"required": false,
|
|
4615
|
+
"allowNo": false,
|
|
4616
|
+
"type": "boolean"
|
|
4617
|
+
},
|
|
4618
|
+
"deny-execute": {
|
|
4619
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
4620
|
+
"helpGroup": "GLOBAL",
|
|
4621
|
+
"name": "deny-execute",
|
|
4622
|
+
"required": false,
|
|
4623
|
+
"allowNo": false,
|
|
4624
|
+
"type": "boolean"
|
|
4625
|
+
},
|
|
4626
|
+
"deny-write": {
|
|
4627
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
4628
|
+
"helpGroup": "GLOBAL",
|
|
4629
|
+
"name": "deny-write",
|
|
4630
|
+
"required": false,
|
|
4631
|
+
"allowNo": false,
|
|
4632
|
+
"type": "boolean"
|
|
4633
|
+
},
|
|
4634
|
+
"log-dir": {
|
|
4635
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
4636
|
+
"helpGroup": "GLOBAL",
|
|
4637
|
+
"name": "log-dir",
|
|
4638
|
+
"required": false,
|
|
4639
|
+
"hasDynamicHelp": false,
|
|
4640
|
+
"multiple": false,
|
|
4641
|
+
"type": "option"
|
|
4642
|
+
},
|
|
4643
|
+
"log-file": {
|
|
4644
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
4645
|
+
"helpGroup": "GLOBAL",
|
|
4646
|
+
"name": "log-file",
|
|
4647
|
+
"required": false,
|
|
4648
|
+
"allowNo": false,
|
|
4649
|
+
"type": "boolean"
|
|
4650
|
+
},
|
|
4651
|
+
"log-level": {
|
|
4652
|
+
"helpGroup": "GLOBAL",
|
|
4653
|
+
"name": "log-level",
|
|
4654
|
+
"summary": "Specify level for logging.",
|
|
4655
|
+
"default": "info",
|
|
4656
|
+
"hasDynamicHelp": false,
|
|
4657
|
+
"multiple": false,
|
|
4658
|
+
"options": [
|
|
4659
|
+
"debug",
|
|
4660
|
+
"warn",
|
|
4661
|
+
"error",
|
|
4662
|
+
"info",
|
|
4663
|
+
"trace"
|
|
4664
|
+
],
|
|
4665
|
+
"type": "option"
|
|
4666
|
+
},
|
|
4667
|
+
"read-only": {
|
|
4668
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
4669
|
+
"helpGroup": "GLOBAL",
|
|
4670
|
+
"name": "read-only",
|
|
4671
|
+
"required": false,
|
|
4672
|
+
"allowNo": false,
|
|
4673
|
+
"type": "boolean"
|
|
4674
|
+
},
|
|
4675
|
+
"flow-id": {
|
|
4676
|
+
"char": "f",
|
|
4677
|
+
"description": "Flow sys_id or scoped name (e.g. x_myapp.my_flow)",
|
|
4678
|
+
"name": "flow-id",
|
|
4679
|
+
"required": true,
|
|
4680
|
+
"hasDynamicHelp": false,
|
|
4681
|
+
"multiple": false,
|
|
4682
|
+
"type": "option"
|
|
4683
|
+
},
|
|
4684
|
+
"output-map": {
|
|
4685
|
+
"char": "o",
|
|
4686
|
+
"description": "JSON mapping of trigger output variable names to test values (e.g. '{\"current\":\"<sys_id>\",\"table_name\":\"change_request\"}')",
|
|
4687
|
+
"name": "output-map",
|
|
4688
|
+
"required": true,
|
|
4689
|
+
"hasDynamicHelp": false,
|
|
4690
|
+
"multiple": false,
|
|
4691
|
+
"type": "option"
|
|
4692
|
+
},
|
|
4693
|
+
"scope": {
|
|
4694
|
+
"description": "Scope sys_id for transaction scope (auto-resolved from flow definition if omitted)",
|
|
4695
|
+
"name": "scope",
|
|
4696
|
+
"required": false,
|
|
4697
|
+
"hasDynamicHelp": false,
|
|
4698
|
+
"multiple": false,
|
|
4699
|
+
"type": "option"
|
|
4700
|
+
},
|
|
4701
|
+
"synchronous": {
|
|
4702
|
+
"description": "Run test synchronously (default: true)",
|
|
4703
|
+
"name": "synchronous",
|
|
4704
|
+
"required": false,
|
|
4705
|
+
"allowNo": true,
|
|
4706
|
+
"type": "boolean"
|
|
4707
|
+
}
|
|
4708
|
+
},
|
|
4709
|
+
"hasDynamicHelp": false,
|
|
4710
|
+
"hiddenAliases": [],
|
|
4711
|
+
"id": "flow:test",
|
|
4712
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4713
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4714
|
+
"pluginType": "core",
|
|
4715
|
+
"strict": true,
|
|
4716
|
+
"enableJsonFlag": true,
|
|
4717
|
+
"isESM": true,
|
|
4718
|
+
"relativePath": [
|
|
4719
|
+
"dist",
|
|
4720
|
+
"commands",
|
|
4721
|
+
"flow",
|
|
4722
|
+
"test.js"
|
|
4723
|
+
]
|
|
4724
|
+
},
|
|
4725
|
+
"health:check": {
|
|
4726
|
+
"aliases": [],
|
|
4727
|
+
"args": {},
|
|
4728
|
+
"description": "Run a consolidated health check on a ServiceNow instance.\n\nPerforms comprehensive diagnostics including version info, cluster status, stuck job detection, semaphore counts, and operational record counts.\n\nFeatures:\n • Instance version and build information\n • Cluster node status\n • Stuck job detection with configurable threshold\n • Active semaphore count\n • Operational counts (incidents, changes, problems)\n • Color-coded status indicators\n • JSON output for CI/CD monitoring",
|
|
4729
|
+
"examples": [
|
|
4730
|
+
{
|
|
4731
|
+
"description": "Run full health check",
|
|
4732
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev"
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
"description": "Check only version and stuck jobs",
|
|
4736
|
+
"command": "<%= config.bin %> <%= command.id %> --include-version --include-stuck-jobs --no-include-cluster --no-include-semaphores --no-include-operational-counts --auth dev"
|
|
4737
|
+
},
|
|
4738
|
+
{
|
|
4739
|
+
"description": "Health check with custom stuck job threshold",
|
|
4740
|
+
"command": "<%= config.bin %> <%= command.id %> --stuck-job-threshold 60 --auth dev"
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
"description": "Health check as JSON",
|
|
4744
|
+
"command": "<%= config.bin %> <%= command.id %> --json --auth dev"
|
|
4745
|
+
}
|
|
4746
|
+
],
|
|
4747
|
+
"flags": {
|
|
4748
|
+
"json": {
|
|
4749
|
+
"char": "j",
|
|
4750
|
+
"description": "Output results as JSON",
|
|
4751
|
+
"name": "json",
|
|
4752
|
+
"required": false,
|
|
4753
|
+
"allowNo": false,
|
|
4754
|
+
"type": "boolean"
|
|
4755
|
+
},
|
|
4756
|
+
"auth": {
|
|
4757
|
+
"char": "a",
|
|
4758
|
+
"description": "Auth alias to use.",
|
|
4759
|
+
"name": "auth",
|
|
4760
|
+
"required": false,
|
|
4761
|
+
"hasDynamicHelp": false,
|
|
4762
|
+
"multiple": false,
|
|
4763
|
+
"type": "option"
|
|
4764
|
+
},
|
|
4765
|
+
"cred-store": {
|
|
4766
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
4767
|
+
"helpGroup": "GLOBAL",
|
|
4768
|
+
"name": "cred-store",
|
|
4769
|
+
"required": false,
|
|
4770
|
+
"allowNo": false,
|
|
4771
|
+
"type": "boolean"
|
|
4772
|
+
},
|
|
4773
|
+
"deny-execute": {
|
|
4774
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
4775
|
+
"helpGroup": "GLOBAL",
|
|
4776
|
+
"name": "deny-execute",
|
|
4777
|
+
"required": false,
|
|
4778
|
+
"allowNo": false,
|
|
4779
|
+
"type": "boolean"
|
|
4780
|
+
},
|
|
4781
|
+
"deny-write": {
|
|
4782
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
4783
|
+
"helpGroup": "GLOBAL",
|
|
4784
|
+
"name": "deny-write",
|
|
4785
|
+
"required": false,
|
|
4786
|
+
"allowNo": false,
|
|
4787
|
+
"type": "boolean"
|
|
4788
|
+
},
|
|
4789
|
+
"log-dir": {
|
|
4790
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
4791
|
+
"helpGroup": "GLOBAL",
|
|
4792
|
+
"name": "log-dir",
|
|
4793
|
+
"required": false,
|
|
4794
|
+
"hasDynamicHelp": false,
|
|
4795
|
+
"multiple": false,
|
|
4796
|
+
"type": "option"
|
|
4797
|
+
},
|
|
4798
|
+
"log-file": {
|
|
4799
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
4800
|
+
"helpGroup": "GLOBAL",
|
|
4801
|
+
"name": "log-file",
|
|
4802
|
+
"required": false,
|
|
4803
|
+
"allowNo": false,
|
|
4804
|
+
"type": "boolean"
|
|
4805
|
+
},
|
|
4806
|
+
"log-level": {
|
|
4807
|
+
"helpGroup": "GLOBAL",
|
|
4808
|
+
"name": "log-level",
|
|
4809
|
+
"summary": "Specify level for logging.",
|
|
4810
|
+
"default": "info",
|
|
4811
|
+
"hasDynamicHelp": false,
|
|
4812
|
+
"multiple": false,
|
|
4813
|
+
"options": [
|
|
4814
|
+
"debug",
|
|
4815
|
+
"warn",
|
|
4816
|
+
"error",
|
|
4817
|
+
"info",
|
|
4818
|
+
"trace"
|
|
4819
|
+
],
|
|
4820
|
+
"type": "option"
|
|
4821
|
+
},
|
|
4822
|
+
"read-only": {
|
|
4823
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
4824
|
+
"helpGroup": "GLOBAL",
|
|
4825
|
+
"name": "read-only",
|
|
4826
|
+
"required": false,
|
|
4827
|
+
"allowNo": false,
|
|
4828
|
+
"type": "boolean"
|
|
4829
|
+
},
|
|
4830
|
+
"include-version": {
|
|
4831
|
+
"description": "Include instance version information",
|
|
4832
|
+
"name": "include-version",
|
|
4833
|
+
"required": false,
|
|
4834
|
+
"allowNo": true,
|
|
4835
|
+
"type": "boolean"
|
|
4836
|
+
},
|
|
4837
|
+
"include-cluster": {
|
|
4838
|
+
"description": "Include cluster node status",
|
|
4839
|
+
"name": "include-cluster",
|
|
4840
|
+
"required": false,
|
|
4841
|
+
"allowNo": true,
|
|
4842
|
+
"type": "boolean"
|
|
4843
|
+
},
|
|
4844
|
+
"include-stuck-jobs": {
|
|
4845
|
+
"description": "Include stuck job detection",
|
|
4846
|
+
"name": "include-stuck-jobs",
|
|
4847
|
+
"required": false,
|
|
4848
|
+
"allowNo": true,
|
|
4849
|
+
"type": "boolean"
|
|
4850
|
+
},
|
|
4851
|
+
"include-semaphores": {
|
|
4852
|
+
"description": "Include active semaphore count",
|
|
4853
|
+
"name": "include-semaphores",
|
|
4854
|
+
"required": false,
|
|
4855
|
+
"allowNo": true,
|
|
4856
|
+
"type": "boolean"
|
|
4857
|
+
},
|
|
4858
|
+
"include-operational-counts": {
|
|
4859
|
+
"description": "Include operational record counts (incidents, changes, problems)",
|
|
4860
|
+
"name": "include-operational-counts",
|
|
4861
|
+
"required": false,
|
|
4862
|
+
"allowNo": true,
|
|
4863
|
+
"type": "boolean"
|
|
4864
|
+
},
|
|
4865
|
+
"stuck-job-threshold": {
|
|
4866
|
+
"description": "Minutes threshold for a job to be considered stuck",
|
|
4867
|
+
"name": "stuck-job-threshold",
|
|
4868
|
+
"required": false,
|
|
4869
|
+
"default": 30,
|
|
4870
|
+
"hasDynamicHelp": false,
|
|
4871
|
+
"multiple": false,
|
|
4872
|
+
"type": "option"
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4875
|
+
"hasDynamicHelp": false,
|
|
4876
|
+
"hiddenAliases": [],
|
|
4877
|
+
"id": "health:check",
|
|
4727
4878
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4728
4879
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4729
4880
|
"pluginType": "core",
|
|
@@ -4733,34 +4884,53 @@
|
|
|
4733
4884
|
"relativePath": [
|
|
4734
4885
|
"dist",
|
|
4735
4886
|
"commands",
|
|
4736
|
-
"
|
|
4737
|
-
"
|
|
4887
|
+
"health",
|
|
4888
|
+
"check.js"
|
|
4738
4889
|
]
|
|
4739
4890
|
},
|
|
4740
|
-
"
|
|
4891
|
+
"log": {
|
|
4741
4892
|
"aliases": [],
|
|
4742
4893
|
"args": {},
|
|
4743
|
-
"description": "
|
|
4894
|
+
"description": "Tail and monitor ServiceNow system logs in real-time with beautiful formatting.\n\nThis command provides real-time log monitoring with enhanced visual formatting using color-coded output that makes logs easy to scan and understand at a glance. Automatically highlights errors, warnings, success messages, and important keywords.\n\nKey Features:\n • Real-time log tailing (like Unix tail -f)\n • Powerful filtering with multiple operators (CONTAINS, REGEX, EQUALS, etc.)\n • Smart keyword highlighting (errors in red, warnings in yellow, etc.)\n • Beautiful color-coded console output with chalk\n • Export logs to file with automatic appending\n • Fast 1-second default polling interval\n • Timestamps and sequence numbers for each log\n • Graceful shutdown with Ctrl+C\n • Clean output without colors (--no-color flag)\n\nSmart Highlighting:\n • Error terms (error, exception, failed) - highlighted in RED\n • Warning terms (warn, warning, deprecated) - highlighted in YELLOW\n • Success terms (success, completed, done) - highlighted in GREEN\n • System terms (system, user, transaction) - highlighted in BLUE\n\nFiltering:\n • Apply filters using --filter flag with syntax: \"field OPERATOR value\"\n • Supports case-sensitive and case-insensitive operations\n • Multiple filters are combined with AND logic\n • Operators: CONTAINS, CONTAINS_CI, EQUALS, EQUALS_CI, STARTS_WITH, STARTS_WITH_CI,\n ENDS_WITH, ENDS_WITH_CI, REGEX, NOT_CONTAINS, NOT_CONTAINS_CI, NOT_EQUALS, NOT_EQUALS_CI\n\nUse Cases:\n • Monitor logs during application development\n • Debug issues in real-time\n • Track system events during deployments\n • Filter logs for specific application or component\n • Quickly spot errors and warnings\n • Collect logs for analysis or audit trails\n\n⚠️ IMPORTANT NOTES:\n • Press Ctrl+C to stop tailing and exit gracefully\n • Log files are created/appended automatically\n • Uses ChannelAjax when available for better performance\n • Default poll interval is 1 second for real-time monitoring",
|
|
4744
4895
|
"examples": [
|
|
4745
4896
|
{
|
|
4746
|
-
"description": "
|
|
4747
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4897
|
+
"description": "Tail all logs in real-time",
|
|
4898
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev-instance"
|
|
4748
4899
|
},
|
|
4749
4900
|
{
|
|
4750
|
-
"description": "
|
|
4751
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
4901
|
+
"description": "Tail logs and save to a file",
|
|
4902
|
+
"command": "<%= config.bin %> <%= command.id %> --output ./logs/instance-logs.txt --auth dev-instance"
|
|
4752
4903
|
},
|
|
4753
4904
|
{
|
|
4754
|
-
"description": "
|
|
4755
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4905
|
+
"description": "Tail logs with custom polling interval (500ms for faster updates)",
|
|
4906
|
+
"command": "<%= config.bin %> <%= command.id %> --interval 500 --auth dev-instance"
|
|
4907
|
+
},
|
|
4908
|
+
{
|
|
4909
|
+
"description": "Filter logs containing specific text (case-insensitive)",
|
|
4910
|
+
"command": "<%= config.bin %> <%= command.id %> --filter \"message CONTAINS_CI error\" --auth dev-instance"
|
|
4911
|
+
},
|
|
4912
|
+
{
|
|
4913
|
+
"description": "Filter logs with multiple conditions (AND logic)",
|
|
4914
|
+
"command": "<%= config.bin %> <%= command.id %> --filter \"message CONTAINS x_acme_app\" --filter \"message CONTAINS error\" --auth dev-instance"
|
|
4915
|
+
},
|
|
4916
|
+
{
|
|
4917
|
+
"description": "Filter logs using regex pattern",
|
|
4918
|
+
"command": "<%= config.bin %> <%= command.id %> --filter \"message REGEX .*exception.*\" --auth dev-instance"
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
"description": "Filter logs by message starting with a pattern",
|
|
4922
|
+
"command": "<%= config.bin %> <%= command.id %> --filter \"message STARTS_WITH [ERROR]\" --auth dev-instance"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"description": "Tail logs without colored output",
|
|
4926
|
+
"command": "<%= config.bin %> <%= command.id %> --no-color --auth dev-instance"
|
|
4756
4927
|
}
|
|
4757
4928
|
],
|
|
4758
4929
|
"flags": {
|
|
4759
4930
|
"json": {
|
|
4760
|
-
"
|
|
4761
|
-
"
|
|
4931
|
+
"description": "Format output as json.",
|
|
4932
|
+
"helpGroup": "GLOBAL",
|
|
4762
4933
|
"name": "json",
|
|
4763
|
-
"required": false,
|
|
4764
4934
|
"allowNo": false,
|
|
4765
4935
|
"type": "boolean"
|
|
4766
4936
|
},
|
|
@@ -4838,43 +5008,45 @@
|
|
|
4838
5008
|
"allowNo": false,
|
|
4839
5009
|
"type": "boolean"
|
|
4840
5010
|
},
|
|
4841
|
-
"
|
|
4842
|
-
"char": "f",
|
|
4843
|
-
"description": "Flow sys_id or scoped name (e.g. x_myapp.my_flow)",
|
|
4844
|
-
"name": "flow-id",
|
|
4845
|
-
"required": true,
|
|
4846
|
-
"hasDynamicHelp": false,
|
|
4847
|
-
"multiple": false,
|
|
4848
|
-
"type": "option"
|
|
4849
|
-
},
|
|
4850
|
-
"output-map": {
|
|
5011
|
+
"output": {
|
|
4851
5012
|
"char": "o",
|
|
4852
|
-
"description": "
|
|
4853
|
-
"name": "output
|
|
4854
|
-
"required":
|
|
5013
|
+
"description": "Output file path to save logs. Creates parent directories if needed.",
|
|
5014
|
+
"name": "output",
|
|
5015
|
+
"required": false,
|
|
4855
5016
|
"hasDynamicHelp": false,
|
|
4856
5017
|
"multiple": false,
|
|
4857
5018
|
"type": "option"
|
|
4858
5019
|
},
|
|
4859
|
-
"
|
|
4860
|
-
"
|
|
4861
|
-
"
|
|
5020
|
+
"interval": {
|
|
5021
|
+
"char": "i",
|
|
5022
|
+
"description": "Polling interval in milliseconds",
|
|
5023
|
+
"name": "interval",
|
|
4862
5024
|
"required": false,
|
|
5025
|
+
"default": 1000,
|
|
4863
5026
|
"hasDynamicHelp": false,
|
|
4864
5027
|
"multiple": false,
|
|
4865
5028
|
"type": "option"
|
|
4866
5029
|
},
|
|
4867
|
-
"
|
|
4868
|
-
"description": "
|
|
4869
|
-
"name": "
|
|
5030
|
+
"no-color": {
|
|
5031
|
+
"description": "Disable colored output",
|
|
5032
|
+
"name": "no-color",
|
|
4870
5033
|
"required": false,
|
|
4871
|
-
"allowNo":
|
|
5034
|
+
"allowNo": false,
|
|
4872
5035
|
"type": "boolean"
|
|
5036
|
+
},
|
|
5037
|
+
"filter": {
|
|
5038
|
+
"char": "f",
|
|
5039
|
+
"description": "Filter logs by field and value. Syntax: field OPERATOR value. Operators: CONTAINS, CONTAINS_CI (case-insensitive), EQUALS, EQUALS_CI, STARTS_WITH, STARTS_WITH_CI, ENDS_WITH, ENDS_WITH_CI, REGEX, NOT_CONTAINS, NOT_EQUALS. Field defaults to \"message\" if omitted. Multiple filters are combined with AND logic.",
|
|
5040
|
+
"name": "filter",
|
|
5041
|
+
"required": false,
|
|
5042
|
+
"hasDynamicHelp": false,
|
|
5043
|
+
"multiple": true,
|
|
5044
|
+
"type": "option"
|
|
4873
5045
|
}
|
|
4874
5046
|
},
|
|
4875
5047
|
"hasDynamicHelp": false,
|
|
4876
5048
|
"hiddenAliases": [],
|
|
4877
|
-
"id": "
|
|
5049
|
+
"id": "log",
|
|
4878
5050
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4879
5051
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4880
5052
|
"pluginType": "core",
|
|
@@ -4884,8 +5056,8 @@
|
|
|
4884
5056
|
"relativePath": [
|
|
4885
5057
|
"dist",
|
|
4886
5058
|
"commands",
|
|
4887
|
-
"
|
|
4888
|
-
"
|
|
5059
|
+
"log",
|
|
5060
|
+
"index.js"
|
|
4889
5061
|
]
|
|
4890
5062
|
},
|
|
4891
5063
|
"policy:status": {
|
|
@@ -5924,42 +6096,22 @@
|
|
|
5924
6096
|
"validate-catalog.js"
|
|
5925
6097
|
]
|
|
5926
6098
|
},
|
|
5927
|
-
"
|
|
6099
|
+
"scope": {
|
|
5928
6100
|
"aliases": [],
|
|
5929
6101
|
"args": {},
|
|
5930
|
-
"description": "
|
|
6102
|
+
"description": "Get the current application scope or list available applications.",
|
|
5931
6103
|
"examples": [
|
|
5932
6104
|
{
|
|
5933
|
-
"
|
|
5934
|
-
"
|
|
5935
|
-
},
|
|
5936
|
-
{
|
|
5937
|
-
"description": "Tail logs and save to a file",
|
|
5938
|
-
"command": "<%= config.bin %> <%= command.id %> --output ./logs/instance-logs.txt --auth dev-instance"
|
|
5939
|
-
},
|
|
5940
|
-
{
|
|
5941
|
-
"description": "Tail logs with custom polling interval (500ms for faster updates)",
|
|
5942
|
-
"command": "<%= config.bin %> <%= command.id %> --interval 500 --auth dev-instance"
|
|
5943
|
-
},
|
|
5944
|
-
{
|
|
5945
|
-
"description": "Filter logs containing specific text (case-insensitive)",
|
|
5946
|
-
"command": "<%= config.bin %> <%= command.id %> --filter \"message CONTAINS_CI error\" --auth dev-instance"
|
|
5947
|
-
},
|
|
5948
|
-
{
|
|
5949
|
-
"description": "Filter logs with multiple conditions (AND logic)",
|
|
5950
|
-
"command": "<%= config.bin %> <%= command.id %> --filter \"message CONTAINS x_acme_app\" --filter \"message CONTAINS error\" --auth dev-instance"
|
|
5951
|
-
},
|
|
5952
|
-
{
|
|
5953
|
-
"description": "Filter logs using regex pattern",
|
|
5954
|
-
"command": "<%= config.bin %> <%= command.id %> --filter \"message REGEX .*exception.*\" --auth dev-instance"
|
|
6105
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev",
|
|
6106
|
+
"description": "Get the current application scope"
|
|
5955
6107
|
},
|
|
5956
6108
|
{
|
|
5957
|
-
"
|
|
5958
|
-
"
|
|
6109
|
+
"command": "<%= config.bin %> <%= command.id %> --list --auth dev",
|
|
6110
|
+
"description": "List all available applications"
|
|
5959
6111
|
},
|
|
5960
6112
|
{
|
|
5961
|
-
"
|
|
5962
|
-
"
|
|
6113
|
+
"command": "<%= config.bin %> <%= command.id %> -l --json --auth dev",
|
|
6114
|
+
"description": "List applications as JSON"
|
|
5963
6115
|
}
|
|
5964
6116
|
],
|
|
5965
6117
|
"flags": {
|
|
@@ -6044,45 +6196,140 @@
|
|
|
6044
6196
|
"allowNo": false,
|
|
6045
6197
|
"type": "boolean"
|
|
6046
6198
|
},
|
|
6047
|
-
"
|
|
6048
|
-
"char": "
|
|
6049
|
-
"description": "
|
|
6050
|
-
"name": "
|
|
6199
|
+
"list": {
|
|
6200
|
+
"char": "l",
|
|
6201
|
+
"description": "List all available applications",
|
|
6202
|
+
"name": "list",
|
|
6203
|
+
"required": false,
|
|
6204
|
+
"allowNo": false,
|
|
6205
|
+
"type": "boolean"
|
|
6206
|
+
}
|
|
6207
|
+
},
|
|
6208
|
+
"hasDynamicHelp": false,
|
|
6209
|
+
"hiddenAliases": [],
|
|
6210
|
+
"id": "scope",
|
|
6211
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6212
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6213
|
+
"pluginType": "core",
|
|
6214
|
+
"strict": true,
|
|
6215
|
+
"enableJsonFlag": true,
|
|
6216
|
+
"isESM": true,
|
|
6217
|
+
"relativePath": [
|
|
6218
|
+
"dist",
|
|
6219
|
+
"commands",
|
|
6220
|
+
"scope",
|
|
6221
|
+
"index.js"
|
|
6222
|
+
]
|
|
6223
|
+
},
|
|
6224
|
+
"scope:set": {
|
|
6225
|
+
"aliases": [],
|
|
6226
|
+
"args": {},
|
|
6227
|
+
"description": "Set the current application scope on a ServiceNow instance.",
|
|
6228
|
+
"examples": [
|
|
6229
|
+
{
|
|
6230
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123def456ghi789jkl012mno345pq --auth dev",
|
|
6231
|
+
"description": "Set application scope by sys_id"
|
|
6232
|
+
},
|
|
6233
|
+
{
|
|
6234
|
+
"command": "<%= config.bin %> <%= command.id %> -a abc123def456ghi789jkl012mno345pq --json --auth dev",
|
|
6235
|
+
"description": "Set application scope and output as JSON"
|
|
6236
|
+
}
|
|
6237
|
+
],
|
|
6238
|
+
"flags": {
|
|
6239
|
+
"json": {
|
|
6240
|
+
"description": "Format output as json.",
|
|
6241
|
+
"helpGroup": "GLOBAL",
|
|
6242
|
+
"name": "json",
|
|
6243
|
+
"allowNo": false,
|
|
6244
|
+
"type": "boolean"
|
|
6245
|
+
},
|
|
6246
|
+
"auth": {
|
|
6247
|
+
"char": "a",
|
|
6248
|
+
"description": "Auth alias to use.",
|
|
6249
|
+
"name": "auth",
|
|
6051
6250
|
"required": false,
|
|
6052
6251
|
"hasDynamicHelp": false,
|
|
6053
6252
|
"multiple": false,
|
|
6054
6253
|
"type": "option"
|
|
6055
6254
|
},
|
|
6056
|
-
"
|
|
6057
|
-
"
|
|
6058
|
-
"
|
|
6059
|
-
"name": "
|
|
6255
|
+
"cred-store": {
|
|
6256
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
6257
|
+
"helpGroup": "GLOBAL",
|
|
6258
|
+
"name": "cred-store",
|
|
6259
|
+
"required": false,
|
|
6260
|
+
"allowNo": false,
|
|
6261
|
+
"type": "boolean"
|
|
6262
|
+
},
|
|
6263
|
+
"deny-execute": {
|
|
6264
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
6265
|
+
"helpGroup": "GLOBAL",
|
|
6266
|
+
"name": "deny-execute",
|
|
6267
|
+
"required": false,
|
|
6268
|
+
"allowNo": false,
|
|
6269
|
+
"type": "boolean"
|
|
6270
|
+
},
|
|
6271
|
+
"deny-write": {
|
|
6272
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
6273
|
+
"helpGroup": "GLOBAL",
|
|
6274
|
+
"name": "deny-write",
|
|
6275
|
+
"required": false,
|
|
6276
|
+
"allowNo": false,
|
|
6277
|
+
"type": "boolean"
|
|
6278
|
+
},
|
|
6279
|
+
"log-dir": {
|
|
6280
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
6281
|
+
"helpGroup": "GLOBAL",
|
|
6282
|
+
"name": "log-dir",
|
|
6060
6283
|
"required": false,
|
|
6061
|
-
"default": 1000,
|
|
6062
6284
|
"hasDynamicHelp": false,
|
|
6063
6285
|
"multiple": false,
|
|
6064
6286
|
"type": "option"
|
|
6065
6287
|
},
|
|
6066
|
-
"
|
|
6067
|
-
"description": "
|
|
6068
|
-
"
|
|
6288
|
+
"log-file": {
|
|
6289
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
6290
|
+
"helpGroup": "GLOBAL",
|
|
6291
|
+
"name": "log-file",
|
|
6069
6292
|
"required": false,
|
|
6070
6293
|
"allowNo": false,
|
|
6071
6294
|
"type": "boolean"
|
|
6072
6295
|
},
|
|
6073
|
-
"
|
|
6074
|
-
"
|
|
6075
|
-
"
|
|
6076
|
-
"
|
|
6296
|
+
"log-level": {
|
|
6297
|
+
"helpGroup": "GLOBAL",
|
|
6298
|
+
"name": "log-level",
|
|
6299
|
+
"summary": "Specify level for logging.",
|
|
6300
|
+
"default": "info",
|
|
6301
|
+
"hasDynamicHelp": false,
|
|
6302
|
+
"multiple": false,
|
|
6303
|
+
"options": [
|
|
6304
|
+
"debug",
|
|
6305
|
+
"warn",
|
|
6306
|
+
"error",
|
|
6307
|
+
"info",
|
|
6308
|
+
"trace"
|
|
6309
|
+
],
|
|
6310
|
+
"type": "option"
|
|
6311
|
+
},
|
|
6312
|
+
"read-only": {
|
|
6313
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
6314
|
+
"helpGroup": "GLOBAL",
|
|
6315
|
+
"name": "read-only",
|
|
6077
6316
|
"required": false,
|
|
6317
|
+
"allowNo": false,
|
|
6318
|
+
"type": "boolean"
|
|
6319
|
+
},
|
|
6320
|
+
"app-id": {
|
|
6321
|
+
"char": "a",
|
|
6322
|
+
"description": "32-char sys_id of application",
|
|
6323
|
+
"name": "app-id",
|
|
6324
|
+
"required": true,
|
|
6078
6325
|
"hasDynamicHelp": false,
|
|
6079
|
-
"multiple":
|
|
6326
|
+
"multiple": false,
|
|
6080
6327
|
"type": "option"
|
|
6081
6328
|
}
|
|
6082
6329
|
},
|
|
6083
6330
|
"hasDynamicHelp": false,
|
|
6084
6331
|
"hiddenAliases": [],
|
|
6085
|
-
"id": "
|
|
6332
|
+
"id": "scope:set",
|
|
6086
6333
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6087
6334
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6088
6335
|
"pluginType": "core",
|
|
@@ -6092,8 +6339,8 @@
|
|
|
6092
6339
|
"relativePath": [
|
|
6093
6340
|
"dist",
|
|
6094
6341
|
"commands",
|
|
6095
|
-
"
|
|
6096
|
-
"
|
|
6342
|
+
"scope",
|
|
6343
|
+
"set.js"
|
|
6097
6344
|
]
|
|
6098
6345
|
},
|
|
6099
6346
|
"script-sync:pull": {
|
|
@@ -8498,11 +8745,272 @@
|
|
|
8498
8745
|
"multiple": false,
|
|
8499
8746
|
"type": "option"
|
|
8500
8747
|
},
|
|
8501
|
-
"number": {
|
|
8502
|
-
"char": "n",
|
|
8503
|
-
"description": "Incident number (e.g., INC0010001)",
|
|
8504
|
-
"name": "number",
|
|
8505
|
-
"required": true,
|
|
8748
|
+
"number": {
|
|
8749
|
+
"char": "n",
|
|
8750
|
+
"description": "Incident number (e.g., INC0010001)",
|
|
8751
|
+
"name": "number",
|
|
8752
|
+
"required": true,
|
|
8753
|
+
"hasDynamicHelp": false,
|
|
8754
|
+
"multiple": false,
|
|
8755
|
+
"type": "option"
|
|
8756
|
+
}
|
|
8757
|
+
},
|
|
8758
|
+
"hasDynamicHelp": false,
|
|
8759
|
+
"hiddenAliases": [],
|
|
8760
|
+
"id": "task:resolve",
|
|
8761
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8762
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8763
|
+
"pluginType": "core",
|
|
8764
|
+
"strict": true,
|
|
8765
|
+
"enableJsonFlag": true,
|
|
8766
|
+
"isESM": true,
|
|
8767
|
+
"relativePath": [
|
|
8768
|
+
"dist",
|
|
8769
|
+
"commands",
|
|
8770
|
+
"task",
|
|
8771
|
+
"resolve.js"
|
|
8772
|
+
]
|
|
8773
|
+
},
|
|
8774
|
+
"transaction:kill": {
|
|
8775
|
+
"aliases": [],
|
|
8776
|
+
"args": {},
|
|
8777
|
+
"description": "Submit a request to terminate one active transaction. Platform acceptance does not mean immediate removal.\n\nOnly pass an identifier you deliberately selected from `nex transaction list`. Killing another user's transaction aborts their work.",
|
|
8778
|
+
"examples": [
|
|
8779
|
+
"<%= config.bin %> <%= command.id %> --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm --auth dev",
|
|
8780
|
+
"<%= config.bin %> <%= command.id %> --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm --json --auth dev"
|
|
8781
|
+
],
|
|
8782
|
+
"flags": {
|
|
8783
|
+
"json": {
|
|
8784
|
+
"description": "Format output as json.",
|
|
8785
|
+
"helpGroup": "GLOBAL",
|
|
8786
|
+
"name": "json",
|
|
8787
|
+
"allowNo": false,
|
|
8788
|
+
"type": "boolean"
|
|
8789
|
+
},
|
|
8790
|
+
"auth": {
|
|
8791
|
+
"char": "a",
|
|
8792
|
+
"description": "Auth alias to use.",
|
|
8793
|
+
"name": "auth",
|
|
8794
|
+
"required": false,
|
|
8795
|
+
"hasDynamicHelp": false,
|
|
8796
|
+
"multiple": false,
|
|
8797
|
+
"type": "option"
|
|
8798
|
+
},
|
|
8799
|
+
"cred-store": {
|
|
8800
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
8801
|
+
"helpGroup": "GLOBAL",
|
|
8802
|
+
"name": "cred-store",
|
|
8803
|
+
"required": false,
|
|
8804
|
+
"allowNo": false,
|
|
8805
|
+
"type": "boolean"
|
|
8806
|
+
},
|
|
8807
|
+
"deny-execute": {
|
|
8808
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
8809
|
+
"helpGroup": "GLOBAL",
|
|
8810
|
+
"name": "deny-execute",
|
|
8811
|
+
"required": false,
|
|
8812
|
+
"allowNo": false,
|
|
8813
|
+
"type": "boolean"
|
|
8814
|
+
},
|
|
8815
|
+
"deny-write": {
|
|
8816
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
8817
|
+
"helpGroup": "GLOBAL",
|
|
8818
|
+
"name": "deny-write",
|
|
8819
|
+
"required": false,
|
|
8820
|
+
"allowNo": false,
|
|
8821
|
+
"type": "boolean"
|
|
8822
|
+
},
|
|
8823
|
+
"log-dir": {
|
|
8824
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
8825
|
+
"helpGroup": "GLOBAL",
|
|
8826
|
+
"name": "log-dir",
|
|
8827
|
+
"required": false,
|
|
8828
|
+
"hasDynamicHelp": false,
|
|
8829
|
+
"multiple": false,
|
|
8830
|
+
"type": "option"
|
|
8831
|
+
},
|
|
8832
|
+
"log-file": {
|
|
8833
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
8834
|
+
"helpGroup": "GLOBAL",
|
|
8835
|
+
"name": "log-file",
|
|
8836
|
+
"required": false,
|
|
8837
|
+
"allowNo": false,
|
|
8838
|
+
"type": "boolean"
|
|
8839
|
+
},
|
|
8840
|
+
"log-level": {
|
|
8841
|
+
"helpGroup": "GLOBAL",
|
|
8842
|
+
"name": "log-level",
|
|
8843
|
+
"summary": "Specify level for logging.",
|
|
8844
|
+
"default": "info",
|
|
8845
|
+
"hasDynamicHelp": false,
|
|
8846
|
+
"multiple": false,
|
|
8847
|
+
"options": [
|
|
8848
|
+
"debug",
|
|
8849
|
+
"warn",
|
|
8850
|
+
"error",
|
|
8851
|
+
"info",
|
|
8852
|
+
"trace"
|
|
8853
|
+
],
|
|
8854
|
+
"type": "option"
|
|
8855
|
+
},
|
|
8856
|
+
"read-only": {
|
|
8857
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
8858
|
+
"helpGroup": "GLOBAL",
|
|
8859
|
+
"name": "read-only",
|
|
8860
|
+
"required": false,
|
|
8861
|
+
"allowNo": false,
|
|
8862
|
+
"type": "boolean"
|
|
8863
|
+
},
|
|
8864
|
+
"confirm": {
|
|
8865
|
+
"description": "Confirm submission of the kill request.",
|
|
8866
|
+
"name": "confirm",
|
|
8867
|
+
"allowNo": false,
|
|
8868
|
+
"type": "boolean"
|
|
8869
|
+
},
|
|
8870
|
+
"transaction-id": {
|
|
8871
|
+
"char": "t",
|
|
8872
|
+
"description": "Exact 32-character hexadecimal sys_id from `nex transaction list`.",
|
|
8873
|
+
"name": "transaction-id",
|
|
8874
|
+
"required": true,
|
|
8875
|
+
"hasDynamicHelp": false,
|
|
8876
|
+
"multiple": false,
|
|
8877
|
+
"type": "option"
|
|
8878
|
+
}
|
|
8879
|
+
},
|
|
8880
|
+
"hasDynamicHelp": false,
|
|
8881
|
+
"hiddenAliases": [],
|
|
8882
|
+
"id": "transaction:kill",
|
|
8883
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8884
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8885
|
+
"pluginType": "core",
|
|
8886
|
+
"strict": true,
|
|
8887
|
+
"enableJsonFlag": true,
|
|
8888
|
+
"isESM": true,
|
|
8889
|
+
"relativePath": [
|
|
8890
|
+
"dist",
|
|
8891
|
+
"commands",
|
|
8892
|
+
"transaction",
|
|
8893
|
+
"kill.js"
|
|
8894
|
+
]
|
|
8895
|
+
},
|
|
8896
|
+
"transaction:list": {
|
|
8897
|
+
"aliases": [],
|
|
8898
|
+
"args": {},
|
|
8899
|
+
"description": "List active transactions from all responding ServiceNow cluster nodes.",
|
|
8900
|
+
"examples": [
|
|
8901
|
+
"<%= config.bin %> <%= command.id %> --auth dev",
|
|
8902
|
+
"<%= config.bin %> <%= command.id %> --json --auth dev",
|
|
8903
|
+
"<%= config.bin %> <%= command.id %> --query \"user=admin\" --limit 50 --auth dev",
|
|
8904
|
+
"<%= config.bin %> <%= command.id %> --timeout-ms 120000 --poll-interval-ms 2000 --auth dev"
|
|
8905
|
+
],
|
|
8906
|
+
"flags": {
|
|
8907
|
+
"json": {
|
|
8908
|
+
"description": "Format output as json.",
|
|
8909
|
+
"helpGroup": "GLOBAL",
|
|
8910
|
+
"name": "json",
|
|
8911
|
+
"allowNo": false,
|
|
8912
|
+
"type": "boolean"
|
|
8913
|
+
},
|
|
8914
|
+
"auth": {
|
|
8915
|
+
"char": "a",
|
|
8916
|
+
"description": "Auth alias to use.",
|
|
8917
|
+
"name": "auth",
|
|
8918
|
+
"required": false,
|
|
8919
|
+
"hasDynamicHelp": false,
|
|
8920
|
+
"multiple": false,
|
|
8921
|
+
"type": "option"
|
|
8922
|
+
},
|
|
8923
|
+
"cred-store": {
|
|
8924
|
+
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
8925
|
+
"helpGroup": "GLOBAL",
|
|
8926
|
+
"name": "cred-store",
|
|
8927
|
+
"required": false,
|
|
8928
|
+
"allowNo": false,
|
|
8929
|
+
"type": "boolean"
|
|
8930
|
+
},
|
|
8931
|
+
"deny-execute": {
|
|
8932
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
8933
|
+
"helpGroup": "GLOBAL",
|
|
8934
|
+
"name": "deny-execute",
|
|
8935
|
+
"required": false,
|
|
8936
|
+
"allowNo": false,
|
|
8937
|
+
"type": "boolean"
|
|
8938
|
+
},
|
|
8939
|
+
"deny-write": {
|
|
8940
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
8941
|
+
"helpGroup": "GLOBAL",
|
|
8942
|
+
"name": "deny-write",
|
|
8943
|
+
"required": false,
|
|
8944
|
+
"allowNo": false,
|
|
8945
|
+
"type": "boolean"
|
|
8946
|
+
},
|
|
8947
|
+
"log-dir": {
|
|
8948
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
8949
|
+
"helpGroup": "GLOBAL",
|
|
8950
|
+
"name": "log-dir",
|
|
8951
|
+
"required": false,
|
|
8952
|
+
"hasDynamicHelp": false,
|
|
8953
|
+
"multiple": false,
|
|
8954
|
+
"type": "option"
|
|
8955
|
+
},
|
|
8956
|
+
"log-file": {
|
|
8957
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
8958
|
+
"helpGroup": "GLOBAL",
|
|
8959
|
+
"name": "log-file",
|
|
8960
|
+
"required": false,
|
|
8961
|
+
"allowNo": false,
|
|
8962
|
+
"type": "boolean"
|
|
8963
|
+
},
|
|
8964
|
+
"log-level": {
|
|
8965
|
+
"helpGroup": "GLOBAL",
|
|
8966
|
+
"name": "log-level",
|
|
8967
|
+
"summary": "Specify level for logging.",
|
|
8968
|
+
"default": "info",
|
|
8969
|
+
"hasDynamicHelp": false,
|
|
8970
|
+
"multiple": false,
|
|
8971
|
+
"options": [
|
|
8972
|
+
"debug",
|
|
8973
|
+
"warn",
|
|
8974
|
+
"error",
|
|
8975
|
+
"info",
|
|
8976
|
+
"trace"
|
|
8977
|
+
],
|
|
8978
|
+
"type": "option"
|
|
8979
|
+
},
|
|
8980
|
+
"read-only": {
|
|
8981
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
8982
|
+
"helpGroup": "GLOBAL",
|
|
8983
|
+
"name": "read-only",
|
|
8984
|
+
"required": false,
|
|
8985
|
+
"allowNo": false,
|
|
8986
|
+
"type": "boolean"
|
|
8987
|
+
},
|
|
8988
|
+
"limit": {
|
|
8989
|
+
"char": "l",
|
|
8990
|
+
"description": "Maximum transactions to return. Core default: 1000.",
|
|
8991
|
+
"name": "limit",
|
|
8992
|
+
"hasDynamicHelp": false,
|
|
8993
|
+
"multiple": false,
|
|
8994
|
+
"type": "option"
|
|
8995
|
+
},
|
|
8996
|
+
"poll-interval-ms": {
|
|
8997
|
+
"description": "Interval between collection status polls. Core default: 1000.",
|
|
8998
|
+
"name": "poll-interval-ms",
|
|
8999
|
+
"hasDynamicHelp": false,
|
|
9000
|
+
"multiple": false,
|
|
9001
|
+
"type": "option"
|
|
9002
|
+
},
|
|
9003
|
+
"query": {
|
|
9004
|
+
"char": "q",
|
|
9005
|
+
"description": "Encoded query used to filter transactions. Core default: none.",
|
|
9006
|
+
"name": "query",
|
|
9007
|
+
"hasDynamicHelp": false,
|
|
9008
|
+
"multiple": false,
|
|
9009
|
+
"type": "option"
|
|
9010
|
+
},
|
|
9011
|
+
"timeout-ms": {
|
|
9012
|
+
"description": "Collection timeout in milliseconds. Core default: 60000.",
|
|
9013
|
+
"name": "timeout-ms",
|
|
8506
9014
|
"hasDynamicHelp": false,
|
|
8507
9015
|
"multiple": false,
|
|
8508
9016
|
"type": "option"
|
|
@@ -8510,7 +9018,7 @@
|
|
|
8510
9018
|
},
|
|
8511
9019
|
"hasDynamicHelp": false,
|
|
8512
9020
|
"hiddenAliases": [],
|
|
8513
|
-
"id": "
|
|
9021
|
+
"id": "transaction:list",
|
|
8514
9022
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8515
9023
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8516
9024
|
"pluginType": "core",
|
|
@@ -8520,8 +9028,8 @@
|
|
|
8520
9028
|
"relativePath": [
|
|
8521
9029
|
"dist",
|
|
8522
9030
|
"commands",
|
|
8523
|
-
"
|
|
8524
|
-
"
|
|
9031
|
+
"transaction",
|
|
9032
|
+
"list.js"
|
|
8525
9033
|
]
|
|
8526
9034
|
},
|
|
8527
9035
|
"update-set:clone": {
|
|
@@ -9851,254 +10359,7 @@
|
|
|
9851
10359
|
"xml",
|
|
9852
10360
|
"import.js"
|
|
9853
10361
|
]
|
|
9854
|
-
},
|
|
9855
|
-
"scope": {
|
|
9856
|
-
"aliases": [],
|
|
9857
|
-
"args": {},
|
|
9858
|
-
"description": "Get the current application scope or list available applications.",
|
|
9859
|
-
"examples": [
|
|
9860
|
-
{
|
|
9861
|
-
"command": "<%= config.bin %> <%= command.id %> --auth dev",
|
|
9862
|
-
"description": "Get the current application scope"
|
|
9863
|
-
},
|
|
9864
|
-
{
|
|
9865
|
-
"command": "<%= config.bin %> <%= command.id %> --list --auth dev",
|
|
9866
|
-
"description": "List all available applications"
|
|
9867
|
-
},
|
|
9868
|
-
{
|
|
9869
|
-
"command": "<%= config.bin %> <%= command.id %> -l --json --auth dev",
|
|
9870
|
-
"description": "List applications as JSON"
|
|
9871
|
-
}
|
|
9872
|
-
],
|
|
9873
|
-
"flags": {
|
|
9874
|
-
"json": {
|
|
9875
|
-
"description": "Format output as json.",
|
|
9876
|
-
"helpGroup": "GLOBAL",
|
|
9877
|
-
"name": "json",
|
|
9878
|
-
"allowNo": false,
|
|
9879
|
-
"type": "boolean"
|
|
9880
|
-
},
|
|
9881
|
-
"auth": {
|
|
9882
|
-
"char": "a",
|
|
9883
|
-
"description": "Auth alias to use.",
|
|
9884
|
-
"name": "auth",
|
|
9885
|
-
"required": false,
|
|
9886
|
-
"hasDynamicHelp": false,
|
|
9887
|
-
"multiple": false,
|
|
9888
|
-
"type": "option"
|
|
9889
|
-
},
|
|
9890
|
-
"cred-store": {
|
|
9891
|
-
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
9892
|
-
"helpGroup": "GLOBAL",
|
|
9893
|
-
"name": "cred-store",
|
|
9894
|
-
"required": false,
|
|
9895
|
-
"allowNo": false,
|
|
9896
|
-
"type": "boolean"
|
|
9897
|
-
},
|
|
9898
|
-
"deny-execute": {
|
|
9899
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
9900
|
-
"helpGroup": "GLOBAL",
|
|
9901
|
-
"name": "deny-execute",
|
|
9902
|
-
"required": false,
|
|
9903
|
-
"allowNo": false,
|
|
9904
|
-
"type": "boolean"
|
|
9905
|
-
},
|
|
9906
|
-
"deny-write": {
|
|
9907
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
9908
|
-
"helpGroup": "GLOBAL",
|
|
9909
|
-
"name": "deny-write",
|
|
9910
|
-
"required": false,
|
|
9911
|
-
"allowNo": false,
|
|
9912
|
-
"type": "boolean"
|
|
9913
|
-
},
|
|
9914
|
-
"log-dir": {
|
|
9915
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
9916
|
-
"helpGroup": "GLOBAL",
|
|
9917
|
-
"name": "log-dir",
|
|
9918
|
-
"required": false,
|
|
9919
|
-
"hasDynamicHelp": false,
|
|
9920
|
-
"multiple": false,
|
|
9921
|
-
"type": "option"
|
|
9922
|
-
},
|
|
9923
|
-
"log-file": {
|
|
9924
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
9925
|
-
"helpGroup": "GLOBAL",
|
|
9926
|
-
"name": "log-file",
|
|
9927
|
-
"required": false,
|
|
9928
|
-
"allowNo": false,
|
|
9929
|
-
"type": "boolean"
|
|
9930
|
-
},
|
|
9931
|
-
"log-level": {
|
|
9932
|
-
"helpGroup": "GLOBAL",
|
|
9933
|
-
"name": "log-level",
|
|
9934
|
-
"summary": "Specify level for logging.",
|
|
9935
|
-
"default": "info",
|
|
9936
|
-
"hasDynamicHelp": false,
|
|
9937
|
-
"multiple": false,
|
|
9938
|
-
"options": [
|
|
9939
|
-
"debug",
|
|
9940
|
-
"warn",
|
|
9941
|
-
"error",
|
|
9942
|
-
"info",
|
|
9943
|
-
"trace"
|
|
9944
|
-
],
|
|
9945
|
-
"type": "option"
|
|
9946
|
-
},
|
|
9947
|
-
"read-only": {
|
|
9948
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
9949
|
-
"helpGroup": "GLOBAL",
|
|
9950
|
-
"name": "read-only",
|
|
9951
|
-
"required": false,
|
|
9952
|
-
"allowNo": false,
|
|
9953
|
-
"type": "boolean"
|
|
9954
|
-
},
|
|
9955
|
-
"list": {
|
|
9956
|
-
"char": "l",
|
|
9957
|
-
"description": "List all available applications",
|
|
9958
|
-
"name": "list",
|
|
9959
|
-
"required": false,
|
|
9960
|
-
"allowNo": false,
|
|
9961
|
-
"type": "boolean"
|
|
9962
|
-
}
|
|
9963
|
-
},
|
|
9964
|
-
"hasDynamicHelp": false,
|
|
9965
|
-
"hiddenAliases": [],
|
|
9966
|
-
"id": "scope",
|
|
9967
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
9968
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
9969
|
-
"pluginType": "core",
|
|
9970
|
-
"strict": true,
|
|
9971
|
-
"enableJsonFlag": true,
|
|
9972
|
-
"isESM": true,
|
|
9973
|
-
"relativePath": [
|
|
9974
|
-
"dist",
|
|
9975
|
-
"commands",
|
|
9976
|
-
"scope",
|
|
9977
|
-
"index.js"
|
|
9978
|
-
]
|
|
9979
|
-
},
|
|
9980
|
-
"scope:set": {
|
|
9981
|
-
"aliases": [],
|
|
9982
|
-
"args": {},
|
|
9983
|
-
"description": "Set the current application scope on a ServiceNow instance.",
|
|
9984
|
-
"examples": [
|
|
9985
|
-
{
|
|
9986
|
-
"command": "<%= config.bin %> <%= command.id %> --app-id abc123def456ghi789jkl012mno345pq --auth dev",
|
|
9987
|
-
"description": "Set application scope by sys_id"
|
|
9988
|
-
},
|
|
9989
|
-
{
|
|
9990
|
-
"command": "<%= config.bin %> <%= command.id %> -a abc123def456ghi789jkl012mno345pq --json --auth dev",
|
|
9991
|
-
"description": "Set application scope and output as JSON"
|
|
9992
|
-
}
|
|
9993
|
-
],
|
|
9994
|
-
"flags": {
|
|
9995
|
-
"json": {
|
|
9996
|
-
"description": "Format output as json.",
|
|
9997
|
-
"helpGroup": "GLOBAL",
|
|
9998
|
-
"name": "json",
|
|
9999
|
-
"allowNo": false,
|
|
10000
|
-
"type": "boolean"
|
|
10001
|
-
},
|
|
10002
|
-
"auth": {
|
|
10003
|
-
"char": "a",
|
|
10004
|
-
"description": "Auth alias to use.",
|
|
10005
|
-
"name": "auth",
|
|
10006
|
-
"required": false,
|
|
10007
|
-
"hasDynamicHelp": false,
|
|
10008
|
-
"multiple": false,
|
|
10009
|
-
"type": "option"
|
|
10010
|
-
},
|
|
10011
|
-
"cred-store": {
|
|
10012
|
-
"description": "Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.",
|
|
10013
|
-
"helpGroup": "GLOBAL",
|
|
10014
|
-
"name": "cred-store",
|
|
10015
|
-
"required": false,
|
|
10016
|
-
"allowNo": false,
|
|
10017
|
-
"type": "boolean"
|
|
10018
|
-
},
|
|
10019
|
-
"deny-execute": {
|
|
10020
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
10021
|
-
"helpGroup": "GLOBAL",
|
|
10022
|
-
"name": "deny-execute",
|
|
10023
|
-
"required": false,
|
|
10024
|
-
"allowNo": false,
|
|
10025
|
-
"type": "boolean"
|
|
10026
|
-
},
|
|
10027
|
-
"deny-write": {
|
|
10028
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
10029
|
-
"helpGroup": "GLOBAL",
|
|
10030
|
-
"name": "deny-write",
|
|
10031
|
-
"required": false,
|
|
10032
|
-
"allowNo": false,
|
|
10033
|
-
"type": "boolean"
|
|
10034
|
-
},
|
|
10035
|
-
"log-dir": {
|
|
10036
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
10037
|
-
"helpGroup": "GLOBAL",
|
|
10038
|
-
"name": "log-dir",
|
|
10039
|
-
"required": false,
|
|
10040
|
-
"hasDynamicHelp": false,
|
|
10041
|
-
"multiple": false,
|
|
10042
|
-
"type": "option"
|
|
10043
|
-
},
|
|
10044
|
-
"log-file": {
|
|
10045
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
10046
|
-
"helpGroup": "GLOBAL",
|
|
10047
|
-
"name": "log-file",
|
|
10048
|
-
"required": false,
|
|
10049
|
-
"allowNo": false,
|
|
10050
|
-
"type": "boolean"
|
|
10051
|
-
},
|
|
10052
|
-
"log-level": {
|
|
10053
|
-
"helpGroup": "GLOBAL",
|
|
10054
|
-
"name": "log-level",
|
|
10055
|
-
"summary": "Specify level for logging.",
|
|
10056
|
-
"default": "info",
|
|
10057
|
-
"hasDynamicHelp": false,
|
|
10058
|
-
"multiple": false,
|
|
10059
|
-
"options": [
|
|
10060
|
-
"debug",
|
|
10061
|
-
"warn",
|
|
10062
|
-
"error",
|
|
10063
|
-
"info",
|
|
10064
|
-
"trace"
|
|
10065
|
-
],
|
|
10066
|
-
"type": "option"
|
|
10067
|
-
},
|
|
10068
|
-
"read-only": {
|
|
10069
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
10070
|
-
"helpGroup": "GLOBAL",
|
|
10071
|
-
"name": "read-only",
|
|
10072
|
-
"required": false,
|
|
10073
|
-
"allowNo": false,
|
|
10074
|
-
"type": "boolean"
|
|
10075
|
-
},
|
|
10076
|
-
"app-id": {
|
|
10077
|
-
"char": "a",
|
|
10078
|
-
"description": "32-char sys_id of application",
|
|
10079
|
-
"name": "app-id",
|
|
10080
|
-
"required": true,
|
|
10081
|
-
"hasDynamicHelp": false,
|
|
10082
|
-
"multiple": false,
|
|
10083
|
-
"type": "option"
|
|
10084
|
-
}
|
|
10085
|
-
},
|
|
10086
|
-
"hasDynamicHelp": false,
|
|
10087
|
-
"hiddenAliases": [],
|
|
10088
|
-
"id": "scope:set",
|
|
10089
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
10090
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
10091
|
-
"pluginType": "core",
|
|
10092
|
-
"strict": true,
|
|
10093
|
-
"enableJsonFlag": true,
|
|
10094
|
-
"isESM": true,
|
|
10095
|
-
"relativePath": [
|
|
10096
|
-
"dist",
|
|
10097
|
-
"commands",
|
|
10098
|
-
"scope",
|
|
10099
|
-
"set.js"
|
|
10100
|
-
]
|
|
10101
10362
|
}
|
|
10102
10363
|
},
|
|
10103
|
-
"version": "5.
|
|
10364
|
+
"version": "5.4.0"
|
|
10104
10365
|
}
|