@sonisoft/now-sdk-ext-cli 2.3.2 → 5.0.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 +509 -173
- package/bin/credstore-boot.js +67 -0
- package/bin/dev.js +4 -0
- package/bin/run.js +4 -0
- package/dist/commands/auth/delete.d.ts +17 -0
- package/dist/commands/auth/delete.d.ts.map +1 -0
- package/dist/commands/auth/delete.js +34 -0
- package/dist/commands/auth/delete.js.map +1 -0
- package/dist/commands/auth/doctor.d.ts +23 -0
- package/dist/commands/auth/doctor.d.ts.map +1 -0
- package/dist/commands/auth/doctor.js +75 -0
- package/dist/commands/auth/doctor.js.map +1 -0
- package/dist/commands/auth/list.d.ts +15 -0
- package/dist/commands/auth/list.d.ts.map +1 -0
- package/dist/commands/auth/list.js +42 -0
- package/dist/commands/auth/list.js.map +1 -0
- package/dist/commands/auth/use.d.ts +16 -0
- package/dist/commands/auth/use.d.ts.map +1 -0
- package/dist/commands/auth/use.js +20 -0
- package/dist/commands/auth/use.js.map +1 -0
- package/dist/common/authenticated-command.d.ts +10 -0
- package/dist/common/authenticated-command.d.ts.map +1 -1
- package/dist/common/authenticated-command.js +76 -16
- package/dist/common/authenticated-command.js.map +1 -1
- package/dist/common/cred-store-flag.d.ts +17 -0
- package/dist/common/cred-store-flag.d.ts.map +1 -0
- package/dist/common/cred-store-flag.js +23 -0
- package/dist/common/cred-store-flag.js.map +1 -0
- package/dist/common/scope-autocomplete.d.ts.map +1 -1
- package/dist/common/scope-autocomplete.js +8 -0
- package/dist/common/scope-autocomplete.js.map +1 -1
- package/oclif.manifest.json +1538 -813
- package/package.json +16 -15
- package/dist/common/base-command.d.ts +0 -19
- package/dist/common/base-command.d.ts.map +0 -1
- package/dist/common/base-command.js +0 -42
- package/dist/common/base-command.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -36,6 +36,14 @@
|
|
|
36
36
|
"multiple": false,
|
|
37
37
|
"type": "option"
|
|
38
38
|
},
|
|
39
|
+
"cred-store": {
|
|
40
|
+
"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.",
|
|
41
|
+
"helpGroup": "GLOBAL",
|
|
42
|
+
"name": "cred-store",
|
|
43
|
+
"required": false,
|
|
44
|
+
"allowNo": false,
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
39
47
|
"log-level": {
|
|
40
48
|
"helpGroup": "GLOBAL",
|
|
41
49
|
"name": "log-level",
|
|
@@ -123,6 +131,14 @@
|
|
|
123
131
|
"multiple": false,
|
|
124
132
|
"type": "option"
|
|
125
133
|
},
|
|
134
|
+
"cred-store": {
|
|
135
|
+
"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.",
|
|
136
|
+
"helpGroup": "GLOBAL",
|
|
137
|
+
"name": "cred-store",
|
|
138
|
+
"required": false,
|
|
139
|
+
"allowNo": false,
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
},
|
|
126
142
|
"log-level": {
|
|
127
143
|
"helpGroup": "GLOBAL",
|
|
128
144
|
"name": "log-level",
|
|
@@ -275,6 +291,14 @@
|
|
|
275
291
|
"multiple": false,
|
|
276
292
|
"type": "option"
|
|
277
293
|
},
|
|
294
|
+
"cred-store": {
|
|
295
|
+
"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.",
|
|
296
|
+
"helpGroup": "GLOBAL",
|
|
297
|
+
"name": "cred-store",
|
|
298
|
+
"required": false,
|
|
299
|
+
"allowNo": false,
|
|
300
|
+
"type": "boolean"
|
|
301
|
+
},
|
|
278
302
|
"log-level": {
|
|
279
303
|
"helpGroup": "GLOBAL",
|
|
280
304
|
"name": "log-level",
|
|
@@ -401,6 +425,14 @@
|
|
|
401
425
|
"multiple": false,
|
|
402
426
|
"type": "option"
|
|
403
427
|
},
|
|
428
|
+
"cred-store": {
|
|
429
|
+
"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.",
|
|
430
|
+
"helpGroup": "GLOBAL",
|
|
431
|
+
"name": "cred-store",
|
|
432
|
+
"required": false,
|
|
433
|
+
"allowNo": false,
|
|
434
|
+
"type": "boolean"
|
|
435
|
+
},
|
|
404
436
|
"log-level": {
|
|
405
437
|
"helpGroup": "GLOBAL",
|
|
406
438
|
"name": "log-level",
|
|
@@ -495,6 +527,14 @@
|
|
|
495
527
|
"multiple": false,
|
|
496
528
|
"type": "option"
|
|
497
529
|
},
|
|
530
|
+
"cred-store": {
|
|
531
|
+
"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.",
|
|
532
|
+
"helpGroup": "GLOBAL",
|
|
533
|
+
"name": "cred-store",
|
|
534
|
+
"required": false,
|
|
535
|
+
"allowNo": false,
|
|
536
|
+
"type": "boolean"
|
|
537
|
+
},
|
|
498
538
|
"log-level": {
|
|
499
539
|
"helpGroup": "GLOBAL",
|
|
500
540
|
"name": "log-level",
|
|
@@ -588,6 +628,14 @@
|
|
|
588
628
|
"multiple": false,
|
|
589
629
|
"type": "option"
|
|
590
630
|
},
|
|
631
|
+
"cred-store": {
|
|
632
|
+
"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.",
|
|
633
|
+
"helpGroup": "GLOBAL",
|
|
634
|
+
"name": "cred-store",
|
|
635
|
+
"required": false,
|
|
636
|
+
"allowNo": false,
|
|
637
|
+
"type": "boolean"
|
|
638
|
+
},
|
|
591
639
|
"log-level": {
|
|
592
640
|
"helpGroup": "GLOBAL",
|
|
593
641
|
"name": "log-level",
|
|
@@ -710,6 +758,14 @@
|
|
|
710
758
|
"multiple": false,
|
|
711
759
|
"type": "option"
|
|
712
760
|
},
|
|
761
|
+
"cred-store": {
|
|
762
|
+
"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.",
|
|
763
|
+
"helpGroup": "GLOBAL",
|
|
764
|
+
"name": "cred-store",
|
|
765
|
+
"required": false,
|
|
766
|
+
"allowNo": false,
|
|
767
|
+
"type": "boolean"
|
|
768
|
+
},
|
|
713
769
|
"log-level": {
|
|
714
770
|
"helpGroup": "GLOBAL",
|
|
715
771
|
"name": "log-level",
|
|
@@ -794,6 +850,14 @@
|
|
|
794
850
|
"multiple": false,
|
|
795
851
|
"type": "option"
|
|
796
852
|
},
|
|
853
|
+
"cred-store": {
|
|
854
|
+
"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.",
|
|
855
|
+
"helpGroup": "GLOBAL",
|
|
856
|
+
"name": "cred-store",
|
|
857
|
+
"required": false,
|
|
858
|
+
"allowNo": false,
|
|
859
|
+
"type": "boolean"
|
|
860
|
+
},
|
|
797
861
|
"log-level": {
|
|
798
862
|
"helpGroup": "GLOBAL",
|
|
799
863
|
"name": "log-level",
|
|
@@ -845,6 +909,199 @@
|
|
|
845
909
|
"uninstall.js"
|
|
846
910
|
]
|
|
847
911
|
},
|
|
912
|
+
"atf": {
|
|
913
|
+
"aliases": [],
|
|
914
|
+
"args": {},
|
|
915
|
+
"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",
|
|
916
|
+
"examples": [
|
|
917
|
+
{
|
|
918
|
+
"description": "Execute a single ATF test by sys_id",
|
|
919
|
+
"command": "<%= config.bin %> <%= command.id %> --test-id f717a8c783103210621e78c6feaad396 --auth dev-instance"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"description": "Execute a test suite by sys_id and wait for completion",
|
|
923
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --auth dev-instance --wait"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"description": "Execute a test suite by name",
|
|
927
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-name \"Smoke Tests\" --auth dev-instance"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"description": "Execute with specific browser configuration",
|
|
931
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --browser chrome --auth dev-instance"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"description": "Execute as performance test with JSON output for CI/CD",
|
|
935
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --performance --json --auth dev-instance"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"description": "Execute with custom poll interval (10 seconds)",
|
|
939
|
+
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance"
|
|
940
|
+
}
|
|
941
|
+
],
|
|
942
|
+
"flags": {
|
|
943
|
+
"json": {
|
|
944
|
+
"char": "j",
|
|
945
|
+
"description": "Output results as JSON",
|
|
946
|
+
"name": "json",
|
|
947
|
+
"required": false,
|
|
948
|
+
"allowNo": false,
|
|
949
|
+
"type": "boolean"
|
|
950
|
+
},
|
|
951
|
+
"auth": {
|
|
952
|
+
"char": "a",
|
|
953
|
+
"description": "Auth alias to use.",
|
|
954
|
+
"name": "auth",
|
|
955
|
+
"required": false,
|
|
956
|
+
"hasDynamicHelp": false,
|
|
957
|
+
"multiple": false,
|
|
958
|
+
"type": "option"
|
|
959
|
+
},
|
|
960
|
+
"cred-store": {
|
|
961
|
+
"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.",
|
|
962
|
+
"helpGroup": "GLOBAL",
|
|
963
|
+
"name": "cred-store",
|
|
964
|
+
"required": false,
|
|
965
|
+
"allowNo": false,
|
|
966
|
+
"type": "boolean"
|
|
967
|
+
},
|
|
968
|
+
"log-level": {
|
|
969
|
+
"helpGroup": "GLOBAL",
|
|
970
|
+
"name": "log-level",
|
|
971
|
+
"summary": "Specify level for logging.",
|
|
972
|
+
"default": "info",
|
|
973
|
+
"hasDynamicHelp": false,
|
|
974
|
+
"multiple": false,
|
|
975
|
+
"options": [
|
|
976
|
+
"debug",
|
|
977
|
+
"warn",
|
|
978
|
+
"error",
|
|
979
|
+
"info",
|
|
980
|
+
"trace"
|
|
981
|
+
],
|
|
982
|
+
"type": "option"
|
|
983
|
+
},
|
|
984
|
+
"test-id": {
|
|
985
|
+
"char": "t",
|
|
986
|
+
"description": "Test sys_id to execute",
|
|
987
|
+
"exclusive": [
|
|
988
|
+
"suite-id",
|
|
989
|
+
"suite-name"
|
|
990
|
+
],
|
|
991
|
+
"name": "test-id",
|
|
992
|
+
"required": false,
|
|
993
|
+
"hasDynamicHelp": false,
|
|
994
|
+
"multiple": false,
|
|
995
|
+
"type": "option"
|
|
996
|
+
},
|
|
997
|
+
"suite-id": {
|
|
998
|
+
"char": "s",
|
|
999
|
+
"description": "Test Suite sys_id to execute",
|
|
1000
|
+
"exclusive": [
|
|
1001
|
+
"test-id",
|
|
1002
|
+
"suite-name"
|
|
1003
|
+
],
|
|
1004
|
+
"name": "suite-id",
|
|
1005
|
+
"required": false,
|
|
1006
|
+
"hasDynamicHelp": false,
|
|
1007
|
+
"multiple": false,
|
|
1008
|
+
"type": "option"
|
|
1009
|
+
},
|
|
1010
|
+
"suite-name": {
|
|
1011
|
+
"char": "n",
|
|
1012
|
+
"description": "Test Suite name to execute",
|
|
1013
|
+
"exclusive": [
|
|
1014
|
+
"test-id",
|
|
1015
|
+
"suite-id"
|
|
1016
|
+
],
|
|
1017
|
+
"name": "suite-name",
|
|
1018
|
+
"required": false,
|
|
1019
|
+
"hasDynamicHelp": false,
|
|
1020
|
+
"multiple": false,
|
|
1021
|
+
"type": "option"
|
|
1022
|
+
},
|
|
1023
|
+
"wait": {
|
|
1024
|
+
"char": "w",
|
|
1025
|
+
"description": "Wait for test suite execution to complete and return results",
|
|
1026
|
+
"name": "wait",
|
|
1027
|
+
"required": false,
|
|
1028
|
+
"allowNo": false,
|
|
1029
|
+
"type": "boolean"
|
|
1030
|
+
},
|
|
1031
|
+
"poll-interval": {
|
|
1032
|
+
"char": "p",
|
|
1033
|
+
"description": "Polling interval in milliseconds when waiting for completion",
|
|
1034
|
+
"name": "poll-interval",
|
|
1035
|
+
"required": false,
|
|
1036
|
+
"default": 5000,
|
|
1037
|
+
"hasDynamicHelp": false,
|
|
1038
|
+
"multiple": false,
|
|
1039
|
+
"type": "option"
|
|
1040
|
+
},
|
|
1041
|
+
"browser": {
|
|
1042
|
+
"char": "b",
|
|
1043
|
+
"description": "Browser name for test execution (e.g., chrome, firefox)",
|
|
1044
|
+
"name": "browser",
|
|
1045
|
+
"required": false,
|
|
1046
|
+
"hasDynamicHelp": false,
|
|
1047
|
+
"multiple": false,
|
|
1048
|
+
"type": "option"
|
|
1049
|
+
},
|
|
1050
|
+
"browser-version": {
|
|
1051
|
+
"description": "Browser version for test execution",
|
|
1052
|
+
"name": "browser-version",
|
|
1053
|
+
"required": false,
|
|
1054
|
+
"hasDynamicHelp": false,
|
|
1055
|
+
"multiple": false,
|
|
1056
|
+
"type": "option"
|
|
1057
|
+
},
|
|
1058
|
+
"os-name": {
|
|
1059
|
+
"description": "Operating system name for test execution",
|
|
1060
|
+
"name": "os-name",
|
|
1061
|
+
"required": false,
|
|
1062
|
+
"hasDynamicHelp": false,
|
|
1063
|
+
"multiple": false,
|
|
1064
|
+
"type": "option"
|
|
1065
|
+
},
|
|
1066
|
+
"os-version": {
|
|
1067
|
+
"description": "Operating system version for test execution",
|
|
1068
|
+
"name": "os-version",
|
|
1069
|
+
"required": false,
|
|
1070
|
+
"hasDynamicHelp": false,
|
|
1071
|
+
"multiple": false,
|
|
1072
|
+
"type": "option"
|
|
1073
|
+
},
|
|
1074
|
+
"performance": {
|
|
1075
|
+
"description": "Run as performance test",
|
|
1076
|
+
"name": "performance",
|
|
1077
|
+
"required": false,
|
|
1078
|
+
"allowNo": false,
|
|
1079
|
+
"type": "boolean"
|
|
1080
|
+
},
|
|
1081
|
+
"cloud": {
|
|
1082
|
+
"description": "Run in cloud",
|
|
1083
|
+
"name": "cloud",
|
|
1084
|
+
"required": false,
|
|
1085
|
+
"allowNo": false,
|
|
1086
|
+
"type": "boolean"
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"hasDynamicHelp": false,
|
|
1090
|
+
"hiddenAliases": [],
|
|
1091
|
+
"id": "atf",
|
|
1092
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
1093
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
1094
|
+
"pluginType": "core",
|
|
1095
|
+
"strict": true,
|
|
1096
|
+
"enableJsonFlag": true,
|
|
1097
|
+
"isESM": true,
|
|
1098
|
+
"relativePath": [
|
|
1099
|
+
"dist",
|
|
1100
|
+
"commands",
|
|
1101
|
+
"atf",
|
|
1102
|
+
"index.js"
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
848
1105
|
"attachment:get": {
|
|
849
1106
|
"aliases": [],
|
|
850
1107
|
"args": {},
|
|
@@ -876,6 +1133,14 @@
|
|
|
876
1133
|
"multiple": false,
|
|
877
1134
|
"type": "option"
|
|
878
1135
|
},
|
|
1136
|
+
"cred-store": {
|
|
1137
|
+
"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.",
|
|
1138
|
+
"helpGroup": "GLOBAL",
|
|
1139
|
+
"name": "cred-store",
|
|
1140
|
+
"required": false,
|
|
1141
|
+
"allowNo": false,
|
|
1142
|
+
"type": "boolean"
|
|
1143
|
+
},
|
|
879
1144
|
"log-level": {
|
|
880
1145
|
"helpGroup": "GLOBAL",
|
|
881
1146
|
"name": "log-level",
|
|
@@ -949,6 +1214,14 @@
|
|
|
949
1214
|
"multiple": false,
|
|
950
1215
|
"type": "option"
|
|
951
1216
|
},
|
|
1217
|
+
"cred-store": {
|
|
1218
|
+
"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.",
|
|
1219
|
+
"helpGroup": "GLOBAL",
|
|
1220
|
+
"name": "cred-store",
|
|
1221
|
+
"required": false,
|
|
1222
|
+
"allowNo": false,
|
|
1223
|
+
"type": "boolean"
|
|
1224
|
+
},
|
|
952
1225
|
"log-level": {
|
|
953
1226
|
"helpGroup": "GLOBAL",
|
|
954
1227
|
"name": "log-level",
|
|
@@ -1040,6 +1313,14 @@
|
|
|
1040
1313
|
"multiple": false,
|
|
1041
1314
|
"type": "option"
|
|
1042
1315
|
},
|
|
1316
|
+
"cred-store": {
|
|
1317
|
+
"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.",
|
|
1318
|
+
"helpGroup": "GLOBAL",
|
|
1319
|
+
"name": "cred-store",
|
|
1320
|
+
"required": false,
|
|
1321
|
+
"allowNo": false,
|
|
1322
|
+
"type": "boolean"
|
|
1323
|
+
},
|
|
1043
1324
|
"log-level": {
|
|
1044
1325
|
"helpGroup": "GLOBAL",
|
|
1045
1326
|
"name": "log-level",
|
|
@@ -1139,6 +1420,14 @@
|
|
|
1139
1420
|
"multiple": false,
|
|
1140
1421
|
"type": "option"
|
|
1141
1422
|
},
|
|
1423
|
+
"cred-store": {
|
|
1424
|
+
"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.",
|
|
1425
|
+
"helpGroup": "GLOBAL",
|
|
1426
|
+
"name": "cred-store",
|
|
1427
|
+
"required": false,
|
|
1428
|
+
"allowNo": false,
|
|
1429
|
+
"type": "boolean"
|
|
1430
|
+
},
|
|
1142
1431
|
"log-level": {
|
|
1143
1432
|
"helpGroup": "GLOBAL",
|
|
1144
1433
|
"name": "log-level",
|
|
@@ -1219,6 +1508,14 @@
|
|
|
1219
1508
|
"multiple": false,
|
|
1220
1509
|
"type": "option"
|
|
1221
1510
|
},
|
|
1511
|
+
"cred-store": {
|
|
1512
|
+
"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.",
|
|
1513
|
+
"helpGroup": "GLOBAL",
|
|
1514
|
+
"name": "cred-store",
|
|
1515
|
+
"required": false,
|
|
1516
|
+
"allowNo": false,
|
|
1517
|
+
"type": "boolean"
|
|
1518
|
+
},
|
|
1222
1519
|
"log-level": {
|
|
1223
1520
|
"helpGroup": "GLOBAL",
|
|
1224
1521
|
"name": "log-level",
|
|
@@ -1268,191 +1565,6 @@
|
|
|
1268
1565
|
"update.js"
|
|
1269
1566
|
]
|
|
1270
1567
|
},
|
|
1271
|
-
"atf": {
|
|
1272
|
-
"aliases": [],
|
|
1273
|
-
"args": {},
|
|
1274
|
-
"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",
|
|
1275
|
-
"examples": [
|
|
1276
|
-
{
|
|
1277
|
-
"description": "Execute a single ATF test by sys_id",
|
|
1278
|
-
"command": "<%= config.bin %> <%= command.id %> --test-id f717a8c783103210621e78c6feaad396 --auth dev-instance"
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
"description": "Execute a test suite by sys_id and wait for completion",
|
|
1282
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --auth dev-instance --wait"
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
"description": "Execute a test suite by name",
|
|
1286
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-name \"Smoke Tests\" --auth dev-instance"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"description": "Execute with specific browser configuration",
|
|
1290
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --browser chrome --auth dev-instance"
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
"description": "Execute as performance test with JSON output for CI/CD",
|
|
1294
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --performance --json --auth dev-instance"
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
"description": "Execute with custom poll interval (10 seconds)",
|
|
1298
|
-
"command": "<%= config.bin %> <%= command.id %> --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance"
|
|
1299
|
-
}
|
|
1300
|
-
],
|
|
1301
|
-
"flags": {
|
|
1302
|
-
"json": {
|
|
1303
|
-
"char": "j",
|
|
1304
|
-
"description": "Output results as JSON",
|
|
1305
|
-
"name": "json",
|
|
1306
|
-
"required": false,
|
|
1307
|
-
"allowNo": false,
|
|
1308
|
-
"type": "boolean"
|
|
1309
|
-
},
|
|
1310
|
-
"auth": {
|
|
1311
|
-
"char": "a",
|
|
1312
|
-
"description": "Auth alias to use.",
|
|
1313
|
-
"name": "auth",
|
|
1314
|
-
"required": false,
|
|
1315
|
-
"hasDynamicHelp": false,
|
|
1316
|
-
"multiple": false,
|
|
1317
|
-
"type": "option"
|
|
1318
|
-
},
|
|
1319
|
-
"log-level": {
|
|
1320
|
-
"helpGroup": "GLOBAL",
|
|
1321
|
-
"name": "log-level",
|
|
1322
|
-
"summary": "Specify level for logging.",
|
|
1323
|
-
"default": "info",
|
|
1324
|
-
"hasDynamicHelp": false,
|
|
1325
|
-
"multiple": false,
|
|
1326
|
-
"options": [
|
|
1327
|
-
"debug",
|
|
1328
|
-
"warn",
|
|
1329
|
-
"error",
|
|
1330
|
-
"info",
|
|
1331
|
-
"trace"
|
|
1332
|
-
],
|
|
1333
|
-
"type": "option"
|
|
1334
|
-
},
|
|
1335
|
-
"test-id": {
|
|
1336
|
-
"char": "t",
|
|
1337
|
-
"description": "Test sys_id to execute",
|
|
1338
|
-
"exclusive": [
|
|
1339
|
-
"suite-id",
|
|
1340
|
-
"suite-name"
|
|
1341
|
-
],
|
|
1342
|
-
"name": "test-id",
|
|
1343
|
-
"required": false,
|
|
1344
|
-
"hasDynamicHelp": false,
|
|
1345
|
-
"multiple": false,
|
|
1346
|
-
"type": "option"
|
|
1347
|
-
},
|
|
1348
|
-
"suite-id": {
|
|
1349
|
-
"char": "s",
|
|
1350
|
-
"description": "Test Suite sys_id to execute",
|
|
1351
|
-
"exclusive": [
|
|
1352
|
-
"test-id",
|
|
1353
|
-
"suite-name"
|
|
1354
|
-
],
|
|
1355
|
-
"name": "suite-id",
|
|
1356
|
-
"required": false,
|
|
1357
|
-
"hasDynamicHelp": false,
|
|
1358
|
-
"multiple": false,
|
|
1359
|
-
"type": "option"
|
|
1360
|
-
},
|
|
1361
|
-
"suite-name": {
|
|
1362
|
-
"char": "n",
|
|
1363
|
-
"description": "Test Suite name to execute",
|
|
1364
|
-
"exclusive": [
|
|
1365
|
-
"test-id",
|
|
1366
|
-
"suite-id"
|
|
1367
|
-
],
|
|
1368
|
-
"name": "suite-name",
|
|
1369
|
-
"required": false,
|
|
1370
|
-
"hasDynamicHelp": false,
|
|
1371
|
-
"multiple": false,
|
|
1372
|
-
"type": "option"
|
|
1373
|
-
},
|
|
1374
|
-
"wait": {
|
|
1375
|
-
"char": "w",
|
|
1376
|
-
"description": "Wait for test suite execution to complete and return results",
|
|
1377
|
-
"name": "wait",
|
|
1378
|
-
"required": false,
|
|
1379
|
-
"allowNo": false,
|
|
1380
|
-
"type": "boolean"
|
|
1381
|
-
},
|
|
1382
|
-
"poll-interval": {
|
|
1383
|
-
"char": "p",
|
|
1384
|
-
"description": "Polling interval in milliseconds when waiting for completion",
|
|
1385
|
-
"name": "poll-interval",
|
|
1386
|
-
"required": false,
|
|
1387
|
-
"default": 5000,
|
|
1388
|
-
"hasDynamicHelp": false,
|
|
1389
|
-
"multiple": false,
|
|
1390
|
-
"type": "option"
|
|
1391
|
-
},
|
|
1392
|
-
"browser": {
|
|
1393
|
-
"char": "b",
|
|
1394
|
-
"description": "Browser name for test execution (e.g., chrome, firefox)",
|
|
1395
|
-
"name": "browser",
|
|
1396
|
-
"required": false,
|
|
1397
|
-
"hasDynamicHelp": false,
|
|
1398
|
-
"multiple": false,
|
|
1399
|
-
"type": "option"
|
|
1400
|
-
},
|
|
1401
|
-
"browser-version": {
|
|
1402
|
-
"description": "Browser version for test execution",
|
|
1403
|
-
"name": "browser-version",
|
|
1404
|
-
"required": false,
|
|
1405
|
-
"hasDynamicHelp": false,
|
|
1406
|
-
"multiple": false,
|
|
1407
|
-
"type": "option"
|
|
1408
|
-
},
|
|
1409
|
-
"os-name": {
|
|
1410
|
-
"description": "Operating system name for test execution",
|
|
1411
|
-
"name": "os-name",
|
|
1412
|
-
"required": false,
|
|
1413
|
-
"hasDynamicHelp": false,
|
|
1414
|
-
"multiple": false,
|
|
1415
|
-
"type": "option"
|
|
1416
|
-
},
|
|
1417
|
-
"os-version": {
|
|
1418
|
-
"description": "Operating system version for test execution",
|
|
1419
|
-
"name": "os-version",
|
|
1420
|
-
"required": false,
|
|
1421
|
-
"hasDynamicHelp": false,
|
|
1422
|
-
"multiple": false,
|
|
1423
|
-
"type": "option"
|
|
1424
|
-
},
|
|
1425
|
-
"performance": {
|
|
1426
|
-
"description": "Run as performance test",
|
|
1427
|
-
"name": "performance",
|
|
1428
|
-
"required": false,
|
|
1429
|
-
"allowNo": false,
|
|
1430
|
-
"type": "boolean"
|
|
1431
|
-
},
|
|
1432
|
-
"cloud": {
|
|
1433
|
-
"description": "Run in cloud",
|
|
1434
|
-
"name": "cloud",
|
|
1435
|
-
"required": false,
|
|
1436
|
-
"allowNo": false,
|
|
1437
|
-
"type": "boolean"
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
"hasDynamicHelp": false,
|
|
1441
|
-
"hiddenAliases": [],
|
|
1442
|
-
"id": "atf",
|
|
1443
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
1444
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
1445
|
-
"pluginType": "core",
|
|
1446
|
-
"strict": true,
|
|
1447
|
-
"enableJsonFlag": true,
|
|
1448
|
-
"isESM": true,
|
|
1449
|
-
"relativePath": [
|
|
1450
|
-
"dist",
|
|
1451
|
-
"commands",
|
|
1452
|
-
"atf",
|
|
1453
|
-
"index.js"
|
|
1454
|
-
]
|
|
1455
|
-
},
|
|
1456
1568
|
"bulk:delete": {
|
|
1457
1569
|
"aliases": [],
|
|
1458
1570
|
"args": {},
|
|
@@ -1493,6 +1605,14 @@
|
|
|
1493
1605
|
"multiple": false,
|
|
1494
1606
|
"type": "option"
|
|
1495
1607
|
},
|
|
1608
|
+
"cred-store": {
|
|
1609
|
+
"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.",
|
|
1610
|
+
"helpGroup": "GLOBAL",
|
|
1611
|
+
"name": "cred-store",
|
|
1612
|
+
"required": false,
|
|
1613
|
+
"allowNo": false,
|
|
1614
|
+
"type": "boolean"
|
|
1615
|
+
},
|
|
1496
1616
|
"log-level": {
|
|
1497
1617
|
"helpGroup": "GLOBAL",
|
|
1498
1618
|
"name": "log-level",
|
|
@@ -1601,6 +1721,14 @@
|
|
|
1601
1721
|
"multiple": false,
|
|
1602
1722
|
"type": "option"
|
|
1603
1723
|
},
|
|
1724
|
+
"cred-store": {
|
|
1725
|
+
"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.",
|
|
1726
|
+
"helpGroup": "GLOBAL",
|
|
1727
|
+
"name": "cred-store",
|
|
1728
|
+
"required": false,
|
|
1729
|
+
"allowNo": false,
|
|
1730
|
+
"type": "boolean"
|
|
1731
|
+
},
|
|
1604
1732
|
"log-level": {
|
|
1605
1733
|
"helpGroup": "GLOBAL",
|
|
1606
1734
|
"name": "log-level",
|
|
@@ -1752,6 +1880,14 @@
|
|
|
1752
1880
|
"multiple": false,
|
|
1753
1881
|
"type": "option"
|
|
1754
1882
|
},
|
|
1883
|
+
"cred-store": {
|
|
1884
|
+
"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.",
|
|
1885
|
+
"helpGroup": "GLOBAL",
|
|
1886
|
+
"name": "cred-store",
|
|
1887
|
+
"required": false,
|
|
1888
|
+
"allowNo": false,
|
|
1889
|
+
"type": "boolean"
|
|
1890
|
+
},
|
|
1755
1891
|
"log-level": {
|
|
1756
1892
|
"helpGroup": "GLOBAL",
|
|
1757
1893
|
"name": "log-level",
|
|
@@ -1795,42 +1931,239 @@
|
|
|
1795
1931
|
"index.js"
|
|
1796
1932
|
]
|
|
1797
1933
|
},
|
|
1798
|
-
"
|
|
1934
|
+
"auth:delete": {
|
|
1799
1935
|
"aliases": [],
|
|
1800
|
-
"args": {
|
|
1801
|
-
|
|
1936
|
+
"args": {
|
|
1937
|
+
"alias": {
|
|
1938
|
+
"description": "Alias to remove",
|
|
1939
|
+
"name": "alias",
|
|
1940
|
+
"required": false
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
"description": "Remove a credential from the store.\n\nThis does not touch the OS keyring — a copy stored there before migrating remains.",
|
|
1802
1944
|
"examples": [
|
|
1803
1945
|
{
|
|
1804
|
-
"
|
|
1805
|
-
"
|
|
1946
|
+
"command": "<%= config.bin %> <%= command.id %> dev206299",
|
|
1947
|
+
"description": "Remove one alias"
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
"command": "<%= config.bin %> <%= command.id %> --all",
|
|
1951
|
+
"description": "Remove every stored credential"
|
|
1806
1952
|
}
|
|
1807
1953
|
],
|
|
1808
1954
|
"flags": {
|
|
1809
|
-
"
|
|
1810
|
-
"
|
|
1811
|
-
"
|
|
1812
|
-
"name": "
|
|
1955
|
+
"cred-store": {
|
|
1956
|
+
"description": "Accepted for symmetry with other commands and ignored — the auth commands always use @sonisoft/sn-credstore.",
|
|
1957
|
+
"helpGroup": "GLOBAL",
|
|
1958
|
+
"name": "cred-store",
|
|
1813
1959
|
"required": false,
|
|
1814
1960
|
"allowNo": false,
|
|
1815
1961
|
"type": "boolean"
|
|
1816
1962
|
},
|
|
1817
|
-
"
|
|
1818
|
-
"
|
|
1819
|
-
"
|
|
1820
|
-
"name": "auth",
|
|
1963
|
+
"all": {
|
|
1964
|
+
"description": "Remove every stored credential",
|
|
1965
|
+
"name": "all",
|
|
1821
1966
|
"required": false,
|
|
1822
|
-
"
|
|
1823
|
-
"
|
|
1824
|
-
|
|
1967
|
+
"allowNo": false,
|
|
1968
|
+
"type": "boolean"
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1971
|
+
"hasDynamicHelp": false,
|
|
1972
|
+
"hiddenAliases": [],
|
|
1973
|
+
"id": "auth:delete",
|
|
1974
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
1975
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
1976
|
+
"pluginType": "core",
|
|
1977
|
+
"strict": true,
|
|
1978
|
+
"enableJsonFlag": false,
|
|
1979
|
+
"isESM": true,
|
|
1980
|
+
"relativePath": [
|
|
1981
|
+
"dist",
|
|
1982
|
+
"commands",
|
|
1983
|
+
"auth",
|
|
1984
|
+
"delete.js"
|
|
1985
|
+
]
|
|
1986
|
+
},
|
|
1987
|
+
"auth:doctor": {
|
|
1988
|
+
"aliases": [],
|
|
1989
|
+
"args": {},
|
|
1990
|
+
"description": "Diagnose credential storage: whether the SDK shim is active, which backend is in use, and what is stored.",
|
|
1991
|
+
"examples": [
|
|
1992
|
+
{
|
|
1993
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1994
|
+
"description": "Check credential storage health"
|
|
1825
1995
|
},
|
|
1826
|
-
|
|
1996
|
+
{
|
|
1997
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
1998
|
+
"description": "Machine-readable output for CI"
|
|
1999
|
+
}
|
|
2000
|
+
],
|
|
2001
|
+
"flags": {
|
|
2002
|
+
"json": {
|
|
2003
|
+
"description": "Format output as json.",
|
|
1827
2004
|
"helpGroup": "GLOBAL",
|
|
1828
|
-
"name": "
|
|
1829
|
-
"
|
|
1830
|
-
"
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
"
|
|
2005
|
+
"name": "json",
|
|
2006
|
+
"allowNo": false,
|
|
2007
|
+
"type": "boolean"
|
|
2008
|
+
},
|
|
2009
|
+
"cred-store": {
|
|
2010
|
+
"description": "Accepted for symmetry with other commands and ignored — the auth commands always use @sonisoft/sn-credstore.",
|
|
2011
|
+
"helpGroup": "GLOBAL",
|
|
2012
|
+
"name": "cred-store",
|
|
2013
|
+
"required": false,
|
|
2014
|
+
"allowNo": false,
|
|
2015
|
+
"type": "boolean"
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
"hasDynamicHelp": false,
|
|
2019
|
+
"hiddenAliases": [],
|
|
2020
|
+
"id": "auth:doctor",
|
|
2021
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
2022
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
2023
|
+
"pluginType": "core",
|
|
2024
|
+
"strict": true,
|
|
2025
|
+
"enableJsonFlag": true,
|
|
2026
|
+
"isESM": true,
|
|
2027
|
+
"relativePath": [
|
|
2028
|
+
"dist",
|
|
2029
|
+
"commands",
|
|
2030
|
+
"auth",
|
|
2031
|
+
"doctor.js"
|
|
2032
|
+
]
|
|
2033
|
+
},
|
|
2034
|
+
"auth:list": {
|
|
2035
|
+
"aliases": [],
|
|
2036
|
+
"args": {},
|
|
2037
|
+
"description": "List credentials in the headless-safe credential store.\n\nThese are the credentials the ServiceNow SDK reads via the sn-credstore shim, which works in non-interactive sessions where the OS keyring cannot be unlocked.\n\nSecrets are never printed.",
|
|
2038
|
+
"examples": [
|
|
2039
|
+
{
|
|
2040
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2041
|
+
"description": "List stored credentials"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
2045
|
+
"description": "List as JSON for scripting"
|
|
2046
|
+
}
|
|
2047
|
+
],
|
|
2048
|
+
"flags": {
|
|
2049
|
+
"json": {
|
|
2050
|
+
"description": "Format output as json.",
|
|
2051
|
+
"helpGroup": "GLOBAL",
|
|
2052
|
+
"name": "json",
|
|
2053
|
+
"allowNo": false,
|
|
2054
|
+
"type": "boolean"
|
|
2055
|
+
},
|
|
2056
|
+
"cred-store": {
|
|
2057
|
+
"description": "Accepted for symmetry with other commands and ignored — the auth commands always use @sonisoft/sn-credstore.",
|
|
2058
|
+
"helpGroup": "GLOBAL",
|
|
2059
|
+
"name": "cred-store",
|
|
2060
|
+
"required": false,
|
|
2061
|
+
"allowNo": false,
|
|
2062
|
+
"type": "boolean"
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
"hasDynamicHelp": false,
|
|
2066
|
+
"hiddenAliases": [],
|
|
2067
|
+
"id": "auth:list",
|
|
2068
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
2069
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
2070
|
+
"pluginType": "core",
|
|
2071
|
+
"strict": true,
|
|
2072
|
+
"enableJsonFlag": true,
|
|
2073
|
+
"isESM": true,
|
|
2074
|
+
"relativePath": [
|
|
2075
|
+
"dist",
|
|
2076
|
+
"commands",
|
|
2077
|
+
"auth",
|
|
2078
|
+
"list.js"
|
|
2079
|
+
]
|
|
2080
|
+
},
|
|
2081
|
+
"auth:use": {
|
|
2082
|
+
"aliases": [],
|
|
2083
|
+
"args": {
|
|
2084
|
+
"alias": {
|
|
2085
|
+
"description": "Alias to make the default",
|
|
2086
|
+
"name": "alias",
|
|
2087
|
+
"required": true
|
|
2088
|
+
}
|
|
2089
|
+
},
|
|
2090
|
+
"description": "Set the default credential alias.\n\nCommands run without --auth use this alias.",
|
|
2091
|
+
"examples": [
|
|
2092
|
+
{
|
|
2093
|
+
"command": "<%= config.bin %> <%= command.id %> dev206299",
|
|
2094
|
+
"description": "Make dev206299 the default"
|
|
2095
|
+
}
|
|
2096
|
+
],
|
|
2097
|
+
"flags": {
|
|
2098
|
+
"cred-store": {
|
|
2099
|
+
"description": "Accepted for symmetry with other commands and ignored — the auth commands always use @sonisoft/sn-credstore.",
|
|
2100
|
+
"helpGroup": "GLOBAL",
|
|
2101
|
+
"name": "cred-store",
|
|
2102
|
+
"required": false,
|
|
2103
|
+
"allowNo": false,
|
|
2104
|
+
"type": "boolean"
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"hasDynamicHelp": false,
|
|
2108
|
+
"hiddenAliases": [],
|
|
2109
|
+
"id": "auth:use",
|
|
2110
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
2111
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
2112
|
+
"pluginType": "core",
|
|
2113
|
+
"strict": true,
|
|
2114
|
+
"enableJsonFlag": false,
|
|
2115
|
+
"isESM": true,
|
|
2116
|
+
"relativePath": [
|
|
2117
|
+
"dist",
|
|
2118
|
+
"commands",
|
|
2119
|
+
"auth",
|
|
2120
|
+
"use.js"
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2123
|
+
"flow:action": {
|
|
2124
|
+
"aliases": [],
|
|
2125
|
+
"args": {},
|
|
2126
|
+
"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",
|
|
2127
|
+
"examples": [
|
|
2128
|
+
{
|
|
2129
|
+
"description": "Run an action",
|
|
2130
|
+
"command": "<%= config.bin %> <%= command.id %> --name global.create_record --inputs '{\"table\":\"incident\",\"values\":{\"short_description\":\"Test\"}}' --auth dev"
|
|
2131
|
+
}
|
|
2132
|
+
],
|
|
2133
|
+
"flags": {
|
|
2134
|
+
"json": {
|
|
2135
|
+
"char": "j",
|
|
2136
|
+
"description": "Output results as JSON",
|
|
2137
|
+
"name": "json",
|
|
2138
|
+
"required": false,
|
|
2139
|
+
"allowNo": false,
|
|
2140
|
+
"type": "boolean"
|
|
2141
|
+
},
|
|
2142
|
+
"auth": {
|
|
2143
|
+
"char": "a",
|
|
2144
|
+
"description": "Auth alias to use.",
|
|
2145
|
+
"name": "auth",
|
|
2146
|
+
"required": false,
|
|
2147
|
+
"hasDynamicHelp": false,
|
|
2148
|
+
"multiple": false,
|
|
2149
|
+
"type": "option"
|
|
2150
|
+
},
|
|
2151
|
+
"cred-store": {
|
|
2152
|
+
"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.",
|
|
2153
|
+
"helpGroup": "GLOBAL",
|
|
2154
|
+
"name": "cred-store",
|
|
2155
|
+
"required": false,
|
|
2156
|
+
"allowNo": false,
|
|
2157
|
+
"type": "boolean"
|
|
2158
|
+
},
|
|
2159
|
+
"log-level": {
|
|
2160
|
+
"helpGroup": "GLOBAL",
|
|
2161
|
+
"name": "log-level",
|
|
2162
|
+
"summary": "Specify level for logging.",
|
|
2163
|
+
"default": "info",
|
|
2164
|
+
"hasDynamicHelp": false,
|
|
2165
|
+
"multiple": false,
|
|
2166
|
+
"options": [
|
|
1834
2167
|
"debug",
|
|
1835
2168
|
"warn",
|
|
1836
2169
|
"error",
|
|
@@ -1935,6 +2268,14 @@
|
|
|
1935
2268
|
"multiple": false,
|
|
1936
2269
|
"type": "option"
|
|
1937
2270
|
},
|
|
2271
|
+
"cred-store": {
|
|
2272
|
+
"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.",
|
|
2273
|
+
"helpGroup": "GLOBAL",
|
|
2274
|
+
"name": "cred-store",
|
|
2275
|
+
"required": false,
|
|
2276
|
+
"allowNo": false,
|
|
2277
|
+
"type": "boolean"
|
|
2278
|
+
},
|
|
1938
2279
|
"log-level": {
|
|
1939
2280
|
"helpGroup": "GLOBAL",
|
|
1940
2281
|
"name": "log-level",
|
|
@@ -2030,6 +2371,14 @@
|
|
|
2030
2371
|
"multiple": false,
|
|
2031
2372
|
"type": "option"
|
|
2032
2373
|
},
|
|
2374
|
+
"cred-store": {
|
|
2375
|
+
"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.",
|
|
2376
|
+
"helpGroup": "GLOBAL",
|
|
2377
|
+
"name": "cred-store",
|
|
2378
|
+
"required": false,
|
|
2379
|
+
"allowNo": false,
|
|
2380
|
+
"type": "boolean"
|
|
2381
|
+
},
|
|
2033
2382
|
"log-level": {
|
|
2034
2383
|
"helpGroup": "GLOBAL",
|
|
2035
2384
|
"name": "log-level",
|
|
@@ -2126,6 +2475,14 @@
|
|
|
2126
2475
|
"multiple": false,
|
|
2127
2476
|
"type": "option"
|
|
2128
2477
|
},
|
|
2478
|
+
"cred-store": {
|
|
2479
|
+
"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.",
|
|
2480
|
+
"helpGroup": "GLOBAL",
|
|
2481
|
+
"name": "cred-store",
|
|
2482
|
+
"required": false,
|
|
2483
|
+
"allowNo": false,
|
|
2484
|
+
"type": "boolean"
|
|
2485
|
+
},
|
|
2129
2486
|
"log-level": {
|
|
2130
2487
|
"helpGroup": "GLOBAL",
|
|
2131
2488
|
"name": "log-level",
|
|
@@ -2212,6 +2569,14 @@
|
|
|
2212
2569
|
"multiple": false,
|
|
2213
2570
|
"type": "option"
|
|
2214
2571
|
},
|
|
2572
|
+
"cred-store": {
|
|
2573
|
+
"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.",
|
|
2574
|
+
"helpGroup": "GLOBAL",
|
|
2575
|
+
"name": "cred-store",
|
|
2576
|
+
"required": false,
|
|
2577
|
+
"allowNo": false,
|
|
2578
|
+
"type": "boolean"
|
|
2579
|
+
},
|
|
2215
2580
|
"log-level": {
|
|
2216
2581
|
"helpGroup": "GLOBAL",
|
|
2217
2582
|
"name": "log-level",
|
|
@@ -2298,6 +2663,14 @@
|
|
|
2298
2663
|
"multiple": false,
|
|
2299
2664
|
"type": "option"
|
|
2300
2665
|
},
|
|
2666
|
+
"cred-store": {
|
|
2667
|
+
"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.",
|
|
2668
|
+
"helpGroup": "GLOBAL",
|
|
2669
|
+
"name": "cred-store",
|
|
2670
|
+
"required": false,
|
|
2671
|
+
"allowNo": false,
|
|
2672
|
+
"type": "boolean"
|
|
2673
|
+
},
|
|
2301
2674
|
"log-level": {
|
|
2302
2675
|
"helpGroup": "GLOBAL",
|
|
2303
2676
|
"name": "log-level",
|
|
@@ -2396,6 +2769,14 @@
|
|
|
2396
2769
|
"multiple": false,
|
|
2397
2770
|
"type": "option"
|
|
2398
2771
|
},
|
|
2772
|
+
"cred-store": {
|
|
2773
|
+
"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.",
|
|
2774
|
+
"helpGroup": "GLOBAL",
|
|
2775
|
+
"name": "cred-store",
|
|
2776
|
+
"required": false,
|
|
2777
|
+
"allowNo": false,
|
|
2778
|
+
"type": "boolean"
|
|
2779
|
+
},
|
|
2399
2780
|
"log-level": {
|
|
2400
2781
|
"helpGroup": "GLOBAL",
|
|
2401
2782
|
"name": "log-level",
|
|
@@ -2496,6 +2877,14 @@
|
|
|
2496
2877
|
"multiple": false,
|
|
2497
2878
|
"type": "option"
|
|
2498
2879
|
},
|
|
2880
|
+
"cred-store": {
|
|
2881
|
+
"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.",
|
|
2882
|
+
"helpGroup": "GLOBAL",
|
|
2883
|
+
"name": "cred-store",
|
|
2884
|
+
"required": false,
|
|
2885
|
+
"allowNo": false,
|
|
2886
|
+
"type": "boolean"
|
|
2887
|
+
},
|
|
2499
2888
|
"log-level": {
|
|
2500
2889
|
"helpGroup": "GLOBAL",
|
|
2501
2890
|
"name": "log-level",
|
|
@@ -2582,6 +2971,14 @@
|
|
|
2582
2971
|
"multiple": false,
|
|
2583
2972
|
"type": "option"
|
|
2584
2973
|
},
|
|
2974
|
+
"cred-store": {
|
|
2975
|
+
"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.",
|
|
2976
|
+
"helpGroup": "GLOBAL",
|
|
2977
|
+
"name": "cred-store",
|
|
2978
|
+
"required": false,
|
|
2979
|
+
"allowNo": false,
|
|
2980
|
+
"type": "boolean"
|
|
2981
|
+
},
|
|
2585
2982
|
"log-level": {
|
|
2586
2983
|
"helpGroup": "GLOBAL",
|
|
2587
2984
|
"name": "log-level",
|
|
@@ -2690,6 +3087,14 @@
|
|
|
2690
3087
|
"multiple": false,
|
|
2691
3088
|
"type": "option"
|
|
2692
3089
|
},
|
|
3090
|
+
"cred-store": {
|
|
3091
|
+
"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.",
|
|
3092
|
+
"helpGroup": "GLOBAL",
|
|
3093
|
+
"name": "cred-store",
|
|
3094
|
+
"required": false,
|
|
3095
|
+
"allowNo": false,
|
|
3096
|
+
"type": "boolean"
|
|
3097
|
+
},
|
|
2693
3098
|
"log-level": {
|
|
2694
3099
|
"helpGroup": "GLOBAL",
|
|
2695
3100
|
"name": "log-level",
|
|
@@ -2772,6 +3177,14 @@
|
|
|
2772
3177
|
"multiple": false,
|
|
2773
3178
|
"type": "option"
|
|
2774
3179
|
},
|
|
3180
|
+
"cred-store": {
|
|
3181
|
+
"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.",
|
|
3182
|
+
"helpGroup": "GLOBAL",
|
|
3183
|
+
"name": "cred-store",
|
|
3184
|
+
"required": false,
|
|
3185
|
+
"allowNo": false,
|
|
3186
|
+
"type": "boolean"
|
|
3187
|
+
},
|
|
2775
3188
|
"log-level": {
|
|
2776
3189
|
"helpGroup": "GLOBAL",
|
|
2777
3190
|
"name": "log-level",
|
|
@@ -2888,6 +3301,14 @@
|
|
|
2888
3301
|
"multiple": false,
|
|
2889
3302
|
"type": "option"
|
|
2890
3303
|
},
|
|
3304
|
+
"cred-store": {
|
|
3305
|
+
"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.",
|
|
3306
|
+
"helpGroup": "GLOBAL",
|
|
3307
|
+
"name": "cred-store",
|
|
3308
|
+
"required": false,
|
|
3309
|
+
"allowNo": false,
|
|
3310
|
+
"type": "boolean"
|
|
3311
|
+
},
|
|
2891
3312
|
"log-level": {
|
|
2892
3313
|
"helpGroup": "GLOBAL",
|
|
2893
3314
|
"name": "log-level",
|
|
@@ -2994,6 +3415,14 @@
|
|
|
2994
3415
|
"multiple": false,
|
|
2995
3416
|
"type": "option"
|
|
2996
3417
|
},
|
|
3418
|
+
"cred-store": {
|
|
3419
|
+
"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.",
|
|
3420
|
+
"helpGroup": "GLOBAL",
|
|
3421
|
+
"name": "cred-store",
|
|
3422
|
+
"required": false,
|
|
3423
|
+
"allowNo": false,
|
|
3424
|
+
"type": "boolean"
|
|
3425
|
+
},
|
|
2997
3426
|
"log-level": {
|
|
2998
3427
|
"helpGroup": "GLOBAL",
|
|
2999
3428
|
"name": "log-level",
|
|
@@ -3126,6 +3555,14 @@
|
|
|
3126
3555
|
"multiple": false,
|
|
3127
3556
|
"type": "option"
|
|
3128
3557
|
},
|
|
3558
|
+
"cred-store": {
|
|
3559
|
+
"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.",
|
|
3560
|
+
"helpGroup": "GLOBAL",
|
|
3561
|
+
"name": "cred-store",
|
|
3562
|
+
"required": false,
|
|
3563
|
+
"allowNo": false,
|
|
3564
|
+
"type": "boolean"
|
|
3565
|
+
},
|
|
3129
3566
|
"log-level": {
|
|
3130
3567
|
"helpGroup": "GLOBAL",
|
|
3131
3568
|
"name": "log-level",
|
|
@@ -3226,6 +3663,14 @@
|
|
|
3226
3663
|
"multiple": false,
|
|
3227
3664
|
"type": "option"
|
|
3228
3665
|
},
|
|
3666
|
+
"cred-store": {
|
|
3667
|
+
"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.",
|
|
3668
|
+
"helpGroup": "GLOBAL",
|
|
3669
|
+
"name": "cred-store",
|
|
3670
|
+
"required": false,
|
|
3671
|
+
"allowNo": false,
|
|
3672
|
+
"type": "boolean"
|
|
3673
|
+
},
|
|
3229
3674
|
"log-level": {
|
|
3230
3675
|
"helpGroup": "GLOBAL",
|
|
3231
3676
|
"name": "log-level",
|
|
@@ -3322,6 +3767,14 @@
|
|
|
3322
3767
|
"multiple": false,
|
|
3323
3768
|
"type": "option"
|
|
3324
3769
|
},
|
|
3770
|
+
"cred-store": {
|
|
3771
|
+
"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.",
|
|
3772
|
+
"helpGroup": "GLOBAL",
|
|
3773
|
+
"name": "cred-store",
|
|
3774
|
+
"required": false,
|
|
3775
|
+
"allowNo": false,
|
|
3776
|
+
"type": "boolean"
|
|
3777
|
+
},
|
|
3325
3778
|
"log-level": {
|
|
3326
3779
|
"helpGroup": "GLOBAL",
|
|
3327
3780
|
"name": "log-level",
|
|
@@ -3409,6 +3862,14 @@
|
|
|
3409
3862
|
"multiple": false,
|
|
3410
3863
|
"type": "option"
|
|
3411
3864
|
},
|
|
3865
|
+
"cred-store": {
|
|
3866
|
+
"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.",
|
|
3867
|
+
"helpGroup": "GLOBAL",
|
|
3868
|
+
"name": "cred-store",
|
|
3869
|
+
"required": false,
|
|
3870
|
+
"allowNo": false,
|
|
3871
|
+
"type": "boolean"
|
|
3872
|
+
},
|
|
3412
3873
|
"log-level": {
|
|
3413
3874
|
"helpGroup": "GLOBAL",
|
|
3414
3875
|
"name": "log-level",
|
|
@@ -3524,6 +3985,14 @@
|
|
|
3524
3985
|
"multiple": false,
|
|
3525
3986
|
"type": "option"
|
|
3526
3987
|
},
|
|
3988
|
+
"cred-store": {
|
|
3989
|
+
"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.",
|
|
3990
|
+
"helpGroup": "GLOBAL",
|
|
3991
|
+
"name": "cred-store",
|
|
3992
|
+
"required": false,
|
|
3993
|
+
"allowNo": false,
|
|
3994
|
+
"type": "boolean"
|
|
3995
|
+
},
|
|
3527
3996
|
"log-level": {
|
|
3528
3997
|
"helpGroup": "GLOBAL",
|
|
3529
3998
|
"name": "log-level",
|
|
@@ -3576,26 +4045,29 @@
|
|
|
3576
4045
|
"syslog.js"
|
|
3577
4046
|
]
|
|
3578
4047
|
},
|
|
3579
|
-
"
|
|
4048
|
+
"scope": {
|
|
3580
4049
|
"aliases": [],
|
|
3581
4050
|
"args": {},
|
|
3582
|
-
"description": "Get
|
|
4051
|
+
"description": "Get the current application scope or list available applications.",
|
|
3583
4052
|
"examples": [
|
|
3584
4053
|
{
|
|
3585
|
-
"
|
|
3586
|
-
"
|
|
4054
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev",
|
|
4055
|
+
"description": "Get the current application scope"
|
|
3587
4056
|
},
|
|
3588
4057
|
{
|
|
3589
|
-
"
|
|
3590
|
-
"
|
|
4058
|
+
"command": "<%= config.bin %> <%= command.id %> --list --auth dev",
|
|
4059
|
+
"description": "List all available applications"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"command": "<%= config.bin %> <%= command.id %> -l --json --auth dev",
|
|
4063
|
+
"description": "List applications as JSON"
|
|
3591
4064
|
}
|
|
3592
4065
|
],
|
|
3593
4066
|
"flags": {
|
|
3594
4067
|
"json": {
|
|
3595
|
-
"
|
|
3596
|
-
"
|
|
4068
|
+
"description": "Format output as json.",
|
|
4069
|
+
"helpGroup": "GLOBAL",
|
|
3597
4070
|
"name": "json",
|
|
3598
|
-
"required": false,
|
|
3599
4071
|
"allowNo": false,
|
|
3600
4072
|
"type": "boolean"
|
|
3601
4073
|
},
|
|
@@ -3608,6 +4080,14 @@
|
|
|
3608
4080
|
"multiple": false,
|
|
3609
4081
|
"type": "option"
|
|
3610
4082
|
},
|
|
4083
|
+
"cred-store": {
|
|
4084
|
+
"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.",
|
|
4085
|
+
"helpGroup": "GLOBAL",
|
|
4086
|
+
"name": "cred-store",
|
|
4087
|
+
"required": false,
|
|
4088
|
+
"allowNo": false,
|
|
4089
|
+
"type": "boolean"
|
|
4090
|
+
},
|
|
3611
4091
|
"log-level": {
|
|
3612
4092
|
"helpGroup": "GLOBAL",
|
|
3613
4093
|
"name": "log-level",
|
|
@@ -3624,28 +4104,18 @@
|
|
|
3624
4104
|
],
|
|
3625
4105
|
"type": "option"
|
|
3626
4106
|
},
|
|
3627
|
-
"
|
|
3628
|
-
"char": "
|
|
3629
|
-
"description": "
|
|
3630
|
-
"name": "
|
|
3631
|
-
"required":
|
|
3632
|
-
"
|
|
3633
|
-
"
|
|
3634
|
-
"type": "option"
|
|
3635
|
-
},
|
|
3636
|
-
"field": {
|
|
3637
|
-
"char": "f",
|
|
3638
|
-
"description": "Field name to explain",
|
|
3639
|
-
"name": "field",
|
|
3640
|
-
"required": true,
|
|
3641
|
-
"hasDynamicHelp": false,
|
|
3642
|
-
"multiple": false,
|
|
3643
|
-
"type": "option"
|
|
4107
|
+
"list": {
|
|
4108
|
+
"char": "l",
|
|
4109
|
+
"description": "List all available applications",
|
|
4110
|
+
"name": "list",
|
|
4111
|
+
"required": false,
|
|
4112
|
+
"allowNo": false,
|
|
4113
|
+
"type": "boolean"
|
|
3644
4114
|
}
|
|
3645
4115
|
},
|
|
3646
4116
|
"hasDynamicHelp": false,
|
|
3647
4117
|
"hiddenAliases": [],
|
|
3648
|
-
"id": "
|
|
4118
|
+
"id": "scope",
|
|
3649
4119
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
3650
4120
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
3651
4121
|
"pluginType": "core",
|
|
@@ -3655,30 +4125,29 @@
|
|
|
3655
4125
|
"relativePath": [
|
|
3656
4126
|
"dist",
|
|
3657
4127
|
"commands",
|
|
3658
|
-
"
|
|
3659
|
-
"
|
|
4128
|
+
"scope",
|
|
4129
|
+
"index.js"
|
|
3660
4130
|
]
|
|
3661
4131
|
},
|
|
3662
|
-
"
|
|
4132
|
+
"scope:set": {
|
|
3663
4133
|
"aliases": [],
|
|
3664
4134
|
"args": {},
|
|
3665
|
-
"description": "
|
|
4135
|
+
"description": "Set the current application scope on a ServiceNow instance.",
|
|
3666
4136
|
"examples": [
|
|
3667
4137
|
{
|
|
3668
|
-
"
|
|
3669
|
-
"
|
|
4138
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123def456ghi789jkl012mno345pq --auth dev",
|
|
4139
|
+
"description": "Set application scope by sys_id"
|
|
3670
4140
|
},
|
|
3671
4141
|
{
|
|
3672
|
-
"
|
|
3673
|
-
"
|
|
4142
|
+
"command": "<%= config.bin %> <%= command.id %> -a abc123def456ghi789jkl012mno345pq --json --auth dev",
|
|
4143
|
+
"description": "Set application scope and output as JSON"
|
|
3674
4144
|
}
|
|
3675
4145
|
],
|
|
3676
4146
|
"flags": {
|
|
3677
4147
|
"json": {
|
|
3678
|
-
"
|
|
3679
|
-
"
|
|
4148
|
+
"description": "Format output as json.",
|
|
4149
|
+
"helpGroup": "GLOBAL",
|
|
3680
4150
|
"name": "json",
|
|
3681
|
-
"required": false,
|
|
3682
4151
|
"allowNo": false,
|
|
3683
4152
|
"type": "boolean"
|
|
3684
4153
|
},
|
|
@@ -3691,6 +4160,14 @@
|
|
|
3691
4160
|
"multiple": false,
|
|
3692
4161
|
"type": "option"
|
|
3693
4162
|
},
|
|
4163
|
+
"cred-store": {
|
|
4164
|
+
"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.",
|
|
4165
|
+
"helpGroup": "GLOBAL",
|
|
4166
|
+
"name": "cred-store",
|
|
4167
|
+
"required": false,
|
|
4168
|
+
"allowNo": false,
|
|
4169
|
+
"type": "boolean"
|
|
4170
|
+
},
|
|
3694
4171
|
"log-level": {
|
|
3695
4172
|
"helpGroup": "GLOBAL",
|
|
3696
4173
|
"name": "log-level",
|
|
@@ -3707,47 +4184,19 @@
|
|
|
3707
4184
|
],
|
|
3708
4185
|
"type": "option"
|
|
3709
4186
|
},
|
|
3710
|
-
"
|
|
3711
|
-
"char": "
|
|
3712
|
-
"description": "
|
|
3713
|
-
"name": "
|
|
4187
|
+
"app-id": {
|
|
4188
|
+
"char": "a",
|
|
4189
|
+
"description": "32-char sys_id of application",
|
|
4190
|
+
"name": "app-id",
|
|
3714
4191
|
"required": true,
|
|
3715
4192
|
"hasDynamicHelp": false,
|
|
3716
4193
|
"multiple": false,
|
|
3717
4194
|
"type": "option"
|
|
3718
|
-
},
|
|
3719
|
-
"include-choices": {
|
|
3720
|
-
"description": "Include field choices in the schema output",
|
|
3721
|
-
"name": "include-choices",
|
|
3722
|
-
"required": false,
|
|
3723
|
-
"allowNo": false,
|
|
3724
|
-
"type": "boolean"
|
|
3725
|
-
},
|
|
3726
|
-
"include-relationships": {
|
|
3727
|
-
"description": "Include table relationships in the schema output",
|
|
3728
|
-
"name": "include-relationships",
|
|
3729
|
-
"required": false,
|
|
3730
|
-
"allowNo": false,
|
|
3731
|
-
"type": "boolean"
|
|
3732
|
-
},
|
|
3733
|
-
"include-ui-policies": {
|
|
3734
|
-
"description": "Include UI policies in the schema output",
|
|
3735
|
-
"name": "include-ui-policies",
|
|
3736
|
-
"required": false,
|
|
3737
|
-
"allowNo": false,
|
|
3738
|
-
"type": "boolean"
|
|
3739
|
-
},
|
|
3740
|
-
"include-business-rules": {
|
|
3741
|
-
"description": "Include business rules in the schema output",
|
|
3742
|
-
"name": "include-business-rules",
|
|
3743
|
-
"required": false,
|
|
3744
|
-
"allowNo": false,
|
|
3745
|
-
"type": "boolean"
|
|
3746
4195
|
}
|
|
3747
4196
|
},
|
|
3748
4197
|
"hasDynamicHelp": false,
|
|
3749
4198
|
"hiddenAliases": [],
|
|
3750
|
-
"id": "
|
|
4199
|
+
"id": "scope:set",
|
|
3751
4200
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
3752
4201
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
3753
4202
|
"pluginType": "core",
|
|
@@ -3757,30 +4206,33 @@
|
|
|
3757
4206
|
"relativePath": [
|
|
3758
4207
|
"dist",
|
|
3759
4208
|
"commands",
|
|
3760
|
-
"
|
|
3761
|
-
"
|
|
4209
|
+
"scope",
|
|
4210
|
+
"set.js"
|
|
3762
4211
|
]
|
|
3763
4212
|
},
|
|
3764
|
-
"
|
|
4213
|
+
"script-sync:pull": {
|
|
3765
4214
|
"aliases": [],
|
|
3766
4215
|
"args": {},
|
|
3767
|
-
"description": "
|
|
4216
|
+
"description": "Pull a script from a ServiceNow instance to a local file.\n\nThis command downloads a script record from your ServiceNow instance and saves it as a local file. Supports multiple script types including Script Includes, Business Rules, UI Scripts, UI Actions, and Client Scripts.\n\nFeatures:\n • Download scripts by name and type\n • Custom output file path support\n • Auto-generated file names based on script name and type\n • JSON output for CI/CD integration",
|
|
3768
4217
|
"examples": [
|
|
3769
4218
|
{
|
|
3770
|
-
"description": "
|
|
3771
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4219
|
+
"description": "Pull a Script Include to auto-generated file name",
|
|
4220
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyScriptInclude --type sys_script_include --auth dev-instance"
|
|
3772
4221
|
},
|
|
3773
4222
|
{
|
|
3774
|
-
"description": "
|
|
3775
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4223
|
+
"description": "Pull a Business Rule to a specific file",
|
|
4224
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyBusinessRule --type sys_script --output ./scripts/my-rule.js --auth dev-instance"
|
|
4225
|
+
},
|
|
4226
|
+
{
|
|
4227
|
+
"description": "Pull a Client Script with JSON output",
|
|
4228
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyClientScript -t sys_script_client --json --auth dev-instance"
|
|
3776
4229
|
}
|
|
3777
4230
|
],
|
|
3778
4231
|
"flags": {
|
|
3779
4232
|
"json": {
|
|
3780
|
-
"
|
|
3781
|
-
"
|
|
4233
|
+
"description": "Format output as json.",
|
|
4234
|
+
"helpGroup": "GLOBAL",
|
|
3782
4235
|
"name": "json",
|
|
3783
|
-
"required": false,
|
|
3784
4236
|
"allowNo": false,
|
|
3785
4237
|
"type": "boolean"
|
|
3786
4238
|
},
|
|
@@ -3793,6 +4245,14 @@
|
|
|
3793
4245
|
"multiple": false,
|
|
3794
4246
|
"type": "option"
|
|
3795
4247
|
},
|
|
4248
|
+
"cred-store": {
|
|
4249
|
+
"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.",
|
|
4250
|
+
"helpGroup": "GLOBAL",
|
|
4251
|
+
"name": "cred-store",
|
|
4252
|
+
"required": false,
|
|
4253
|
+
"allowNo": false,
|
|
4254
|
+
"type": "boolean"
|
|
4255
|
+
},
|
|
3796
4256
|
"log-level": {
|
|
3797
4257
|
"helpGroup": "GLOBAL",
|
|
3798
4258
|
"name": "log-level",
|
|
@@ -3809,19 +4269,44 @@
|
|
|
3809
4269
|
],
|
|
3810
4270
|
"type": "option"
|
|
3811
4271
|
},
|
|
3812
|
-
"
|
|
3813
|
-
"char": "
|
|
3814
|
-
"description": "
|
|
3815
|
-
"name": "
|
|
4272
|
+
"name": {
|
|
4273
|
+
"char": "n",
|
|
4274
|
+
"description": "Name of the script to pull",
|
|
4275
|
+
"name": "name",
|
|
3816
4276
|
"required": true,
|
|
3817
4277
|
"hasDynamicHelp": false,
|
|
3818
4278
|
"multiple": false,
|
|
3819
4279
|
"type": "option"
|
|
4280
|
+
},
|
|
4281
|
+
"type": {
|
|
4282
|
+
"char": "t",
|
|
4283
|
+
"description": "Type of script to pull",
|
|
4284
|
+
"name": "type",
|
|
4285
|
+
"required": true,
|
|
4286
|
+
"hasDynamicHelp": false,
|
|
4287
|
+
"multiple": false,
|
|
4288
|
+
"options": [
|
|
4289
|
+
"sys_script_include",
|
|
4290
|
+
"sys_script",
|
|
4291
|
+
"sys_ui_script",
|
|
4292
|
+
"sys_ui_action",
|
|
4293
|
+
"sys_script_client"
|
|
4294
|
+
],
|
|
4295
|
+
"type": "option"
|
|
4296
|
+
},
|
|
4297
|
+
"output": {
|
|
4298
|
+
"char": "o",
|
|
4299
|
+
"description": "Output file path. If not specified, a file name is auto-generated.",
|
|
4300
|
+
"name": "output",
|
|
4301
|
+
"required": false,
|
|
4302
|
+
"hasDynamicHelp": false,
|
|
4303
|
+
"multiple": false,
|
|
4304
|
+
"type": "option"
|
|
3820
4305
|
}
|
|
3821
4306
|
},
|
|
3822
4307
|
"hasDynamicHelp": false,
|
|
3823
4308
|
"hiddenAliases": [],
|
|
3824
|
-
"id": "
|
|
4309
|
+
"id": "script-sync:pull",
|
|
3825
4310
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
3826
4311
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
3827
4312
|
"pluginType": "core",
|
|
@@ -3831,26 +4316,26 @@
|
|
|
3831
4316
|
"relativePath": [
|
|
3832
4317
|
"dist",
|
|
3833
4318
|
"commands",
|
|
3834
|
-
"
|
|
3835
|
-
"
|
|
4319
|
+
"script-sync",
|
|
4320
|
+
"pull.js"
|
|
3836
4321
|
]
|
|
3837
4322
|
},
|
|
3838
|
-
"
|
|
4323
|
+
"script-sync:push": {
|
|
3839
4324
|
"aliases": [],
|
|
3840
4325
|
"args": {},
|
|
3841
|
-
"description": "
|
|
4326
|
+
"description": "Push a local script file to a ServiceNow instance.\n\nThis command uploads a local script file to your ServiceNow instance, updating the corresponding script record. Supports multiple script types including Script Includes, Business Rules, UI Scripts, UI Actions, and Client Scripts.\n\nFeatures:\n • Upload scripts by name and type\n • Specify the local file to push\n • JSON output for CI/CD integration\n • Detailed push result reporting",
|
|
3842
4327
|
"examples": [
|
|
3843
4328
|
{
|
|
3844
|
-
"
|
|
3845
|
-
"
|
|
4329
|
+
"description": "Push a Script Include from a local file",
|
|
4330
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyScriptInclude --type sys_script_include --file ./scripts/MyScriptInclude.js --auth dev-instance"
|
|
3846
4331
|
},
|
|
3847
4332
|
{
|
|
3848
|
-
"
|
|
3849
|
-
"
|
|
4333
|
+
"description": "Push a Business Rule with short flags",
|
|
4334
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyBusinessRule -t sys_script -f ./scripts/my-rule.js -a dev-instance"
|
|
3850
4335
|
},
|
|
3851
4336
|
{
|
|
3852
|
-
"
|
|
3853
|
-
"
|
|
4337
|
+
"description": "Push a UI Script with JSON output",
|
|
4338
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyUIScript -t sys_ui_script -f ./scripts/ui-script.js --json --auth dev-instance"
|
|
3854
4339
|
}
|
|
3855
4340
|
],
|
|
3856
4341
|
"flags": {
|
|
@@ -3870,6 +4355,14 @@
|
|
|
3870
4355
|
"multiple": false,
|
|
3871
4356
|
"type": "option"
|
|
3872
4357
|
},
|
|
4358
|
+
"cred-store": {
|
|
4359
|
+
"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.",
|
|
4360
|
+
"helpGroup": "GLOBAL",
|
|
4361
|
+
"name": "cred-store",
|
|
4362
|
+
"required": false,
|
|
4363
|
+
"allowNo": false,
|
|
4364
|
+
"type": "boolean"
|
|
4365
|
+
},
|
|
3873
4366
|
"log-level": {
|
|
3874
4367
|
"helpGroup": "GLOBAL",
|
|
3875
4368
|
"name": "log-level",
|
|
@@ -3886,18 +4379,44 @@
|
|
|
3886
4379
|
],
|
|
3887
4380
|
"type": "option"
|
|
3888
4381
|
},
|
|
3889
|
-
"
|
|
3890
|
-
"char": "
|
|
3891
|
-
"description": "
|
|
3892
|
-
"name": "
|
|
3893
|
-
"required":
|
|
3894
|
-
"
|
|
3895
|
-
"
|
|
4382
|
+
"name": {
|
|
4383
|
+
"char": "n",
|
|
4384
|
+
"description": "Name of the script to push",
|
|
4385
|
+
"name": "name",
|
|
4386
|
+
"required": true,
|
|
4387
|
+
"hasDynamicHelp": false,
|
|
4388
|
+
"multiple": false,
|
|
4389
|
+
"type": "option"
|
|
4390
|
+
},
|
|
4391
|
+
"type": {
|
|
4392
|
+
"char": "t",
|
|
4393
|
+
"description": "Type of script to push",
|
|
4394
|
+
"name": "type",
|
|
4395
|
+
"required": true,
|
|
4396
|
+
"hasDynamicHelp": false,
|
|
4397
|
+
"multiple": false,
|
|
4398
|
+
"options": [
|
|
4399
|
+
"sys_script_include",
|
|
4400
|
+
"sys_script",
|
|
4401
|
+
"sys_ui_script",
|
|
4402
|
+
"sys_ui_action",
|
|
4403
|
+
"sys_script_client"
|
|
4404
|
+
],
|
|
4405
|
+
"type": "option"
|
|
4406
|
+
},
|
|
4407
|
+
"file": {
|
|
4408
|
+
"char": "f",
|
|
4409
|
+
"description": "Path to the local script file to push",
|
|
4410
|
+
"name": "file",
|
|
4411
|
+
"required": true,
|
|
4412
|
+
"hasDynamicHelp": false,
|
|
4413
|
+
"multiple": false,
|
|
4414
|
+
"type": "option"
|
|
3896
4415
|
}
|
|
3897
4416
|
},
|
|
3898
4417
|
"hasDynamicHelp": false,
|
|
3899
4418
|
"hiddenAliases": [],
|
|
3900
|
-
"id": "
|
|
4419
|
+
"id": "script-sync:push",
|
|
3901
4420
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
3902
4421
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
3903
4422
|
"pluginType": "core",
|
|
@@ -3907,22 +4426,26 @@
|
|
|
3907
4426
|
"relativePath": [
|
|
3908
4427
|
"dist",
|
|
3909
4428
|
"commands",
|
|
3910
|
-
"
|
|
3911
|
-
"
|
|
4429
|
+
"script-sync",
|
|
4430
|
+
"push.js"
|
|
3912
4431
|
]
|
|
3913
4432
|
},
|
|
3914
|
-
"
|
|
4433
|
+
"script-sync:sync": {
|
|
3915
4434
|
"aliases": [],
|
|
3916
4435
|
"args": {},
|
|
3917
|
-
"description": "
|
|
4436
|
+
"description": "Synchronize all scripts in a directory with a ServiceNow instance.\n\nThis command scans a local directory for script files and synchronizes them with the corresponding records on your ServiceNow instance. You can optionally filter by script types to synchronize only specific kinds of scripts.\n\nFeatures:\n • Batch synchronization of all scripts in a directory\n • Filter by one or more script types\n • Summary report with success/failure counts\n • JSON output for CI/CD integration",
|
|
3918
4437
|
"examples": [
|
|
3919
4438
|
{
|
|
3920
|
-
"
|
|
3921
|
-
"
|
|
4439
|
+
"description": "Sync all scripts in a directory",
|
|
4440
|
+
"command": "<%= config.bin %> <%= command.id %> --directory ./scripts --auth dev-instance"
|
|
3922
4441
|
},
|
|
3923
4442
|
{
|
|
3924
|
-
"
|
|
3925
|
-
"
|
|
4443
|
+
"description": "Sync only Script Includes and Business Rules",
|
|
4444
|
+
"command": "<%= config.bin %> <%= command.id %> --directory ./scripts --types sys_script_include --types sys_script --auth dev-instance"
|
|
4445
|
+
},
|
|
4446
|
+
{
|
|
4447
|
+
"description": "Sync with JSON output for CI/CD",
|
|
4448
|
+
"command": "<%= config.bin %> <%= command.id %> -d ./scripts --json --auth dev-instance"
|
|
3926
4449
|
}
|
|
3927
4450
|
],
|
|
3928
4451
|
"flags": {
|
|
@@ -3942,6 +4465,14 @@
|
|
|
3942
4465
|
"multiple": false,
|
|
3943
4466
|
"type": "option"
|
|
3944
4467
|
},
|
|
4468
|
+
"cred-store": {
|
|
4469
|
+
"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.",
|
|
4470
|
+
"helpGroup": "GLOBAL",
|
|
4471
|
+
"name": "cred-store",
|
|
4472
|
+
"required": false,
|
|
4473
|
+
"allowNo": false,
|
|
4474
|
+
"type": "boolean"
|
|
4475
|
+
},
|
|
3945
4476
|
"log-level": {
|
|
3946
4477
|
"helpGroup": "GLOBAL",
|
|
3947
4478
|
"name": "log-level",
|
|
@@ -3958,19 +4489,35 @@
|
|
|
3958
4489
|
],
|
|
3959
4490
|
"type": "option"
|
|
3960
4491
|
},
|
|
3961
|
-
"
|
|
3962
|
-
"char": "
|
|
3963
|
-
"description": "
|
|
3964
|
-
"name": "
|
|
4492
|
+
"directory": {
|
|
4493
|
+
"char": "d",
|
|
4494
|
+
"description": "Directory containing script files to synchronize",
|
|
4495
|
+
"name": "directory",
|
|
3965
4496
|
"required": true,
|
|
3966
4497
|
"hasDynamicHelp": false,
|
|
3967
4498
|
"multiple": false,
|
|
3968
4499
|
"type": "option"
|
|
4500
|
+
},
|
|
4501
|
+
"types": {
|
|
4502
|
+
"char": "t",
|
|
4503
|
+
"description": "Script types to synchronize. Can be specified multiple times to include multiple types.",
|
|
4504
|
+
"name": "types",
|
|
4505
|
+
"required": false,
|
|
4506
|
+
"hasDynamicHelp": false,
|
|
4507
|
+
"multiple": true,
|
|
4508
|
+
"options": [
|
|
4509
|
+
"sys_script_include",
|
|
4510
|
+
"sys_script",
|
|
4511
|
+
"sys_ui_script",
|
|
4512
|
+
"sys_ui_action",
|
|
4513
|
+
"sys_script_client"
|
|
4514
|
+
],
|
|
4515
|
+
"type": "option"
|
|
3969
4516
|
}
|
|
3970
4517
|
},
|
|
3971
4518
|
"hasDynamicHelp": false,
|
|
3972
4519
|
"hiddenAliases": [],
|
|
3973
|
-
"id": "
|
|
4520
|
+
"id": "script-sync:sync",
|
|
3974
4521
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
3975
4522
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
3976
4523
|
"pluginType": "core",
|
|
@@ -3980,33 +4527,30 @@
|
|
|
3980
4527
|
"relativePath": [
|
|
3981
4528
|
"dist",
|
|
3982
4529
|
"commands",
|
|
3983
|
-
"
|
|
3984
|
-
"
|
|
4530
|
+
"script-sync",
|
|
4531
|
+
"sync.js"
|
|
3985
4532
|
]
|
|
3986
4533
|
},
|
|
3987
|
-
"
|
|
4534
|
+
"schema:field": {
|
|
3988
4535
|
"aliases": [],
|
|
3989
4536
|
"args": {},
|
|
3990
|
-
"description": "
|
|
4537
|
+
"description": "Get detailed information about a specific field on a ServiceNow table.\n\nThis command retrieves comprehensive details about a single field, including its type, constraints, choices, and other metadata. Useful for understanding field definitions during development.",
|
|
3991
4538
|
"examples": [
|
|
3992
4539
|
{
|
|
3993
|
-
"description": "
|
|
3994
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3995
|
-
},
|
|
3996
|
-
{
|
|
3997
|
-
"description": "Pull a Business Rule to a specific file",
|
|
3998
|
-
"command": "<%= config.bin %> <%= command.id %> --name MyBusinessRule --type sys_script --output ./scripts/my-rule.js --auth dev-instance"
|
|
4540
|
+
"description": "Explain the state field on incident table",
|
|
4541
|
+
"command": "<%= config.bin %> <%= command.id %> --table incident --field state --auth dev"
|
|
3999
4542
|
},
|
|
4000
4543
|
{
|
|
4001
|
-
"description": "
|
|
4002
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4544
|
+
"description": "Explain the priority field on incident table with JSON output",
|
|
4545
|
+
"command": "<%= config.bin %> <%= command.id %> --table incident --field priority --json --auth dev"
|
|
4003
4546
|
}
|
|
4004
4547
|
],
|
|
4005
4548
|
"flags": {
|
|
4006
4549
|
"json": {
|
|
4007
|
-
"
|
|
4008
|
-
"
|
|
4550
|
+
"char": "j",
|
|
4551
|
+
"description": "Output results as JSON",
|
|
4009
4552
|
"name": "json",
|
|
4553
|
+
"required": false,
|
|
4010
4554
|
"allowNo": false,
|
|
4011
4555
|
"type": "boolean"
|
|
4012
4556
|
},
|
|
@@ -4019,6 +4563,14 @@
|
|
|
4019
4563
|
"multiple": false,
|
|
4020
4564
|
"type": "option"
|
|
4021
4565
|
},
|
|
4566
|
+
"cred-store": {
|
|
4567
|
+
"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.",
|
|
4568
|
+
"helpGroup": "GLOBAL",
|
|
4569
|
+
"name": "cred-store",
|
|
4570
|
+
"required": false,
|
|
4571
|
+
"allowNo": false,
|
|
4572
|
+
"type": "boolean"
|
|
4573
|
+
},
|
|
4022
4574
|
"log-level": {
|
|
4023
4575
|
"helpGroup": "GLOBAL",
|
|
4024
4576
|
"name": "log-level",
|
|
@@ -4035,36 +4587,20 @@
|
|
|
4035
4587
|
],
|
|
4036
4588
|
"type": "option"
|
|
4037
4589
|
},
|
|
4038
|
-
"
|
|
4039
|
-
"char": "n",
|
|
4040
|
-
"description": "Name of the script to pull",
|
|
4041
|
-
"name": "name",
|
|
4042
|
-
"required": true,
|
|
4043
|
-
"hasDynamicHelp": false,
|
|
4044
|
-
"multiple": false,
|
|
4045
|
-
"type": "option"
|
|
4046
|
-
},
|
|
4047
|
-
"type": {
|
|
4590
|
+
"table": {
|
|
4048
4591
|
"char": "t",
|
|
4049
|
-
"description": "
|
|
4050
|
-
"name": "
|
|
4592
|
+
"description": "ServiceNow table name",
|
|
4593
|
+
"name": "table",
|
|
4051
4594
|
"required": true,
|
|
4052
4595
|
"hasDynamicHelp": false,
|
|
4053
4596
|
"multiple": false,
|
|
4054
|
-
"options": [
|
|
4055
|
-
"sys_script_include",
|
|
4056
|
-
"sys_script",
|
|
4057
|
-
"sys_ui_script",
|
|
4058
|
-
"sys_ui_action",
|
|
4059
|
-
"sys_script_client"
|
|
4060
|
-
],
|
|
4061
4597
|
"type": "option"
|
|
4062
4598
|
},
|
|
4063
|
-
"
|
|
4064
|
-
"char": "
|
|
4065
|
-
"description": "
|
|
4066
|
-
"name": "
|
|
4067
|
-
"required":
|
|
4599
|
+
"field": {
|
|
4600
|
+
"char": "f",
|
|
4601
|
+
"description": "Field name to explain",
|
|
4602
|
+
"name": "field",
|
|
4603
|
+
"required": true,
|
|
4068
4604
|
"hasDynamicHelp": false,
|
|
4069
4605
|
"multiple": false,
|
|
4070
4606
|
"type": "option"
|
|
@@ -4072,7 +4608,7 @@
|
|
|
4072
4608
|
},
|
|
4073
4609
|
"hasDynamicHelp": false,
|
|
4074
4610
|
"hiddenAliases": [],
|
|
4075
|
-
"id": "
|
|
4611
|
+
"id": "schema:field",
|
|
4076
4612
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4077
4613
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4078
4614
|
"pluginType": "core",
|
|
@@ -4082,33 +4618,30 @@
|
|
|
4082
4618
|
"relativePath": [
|
|
4083
4619
|
"dist",
|
|
4084
4620
|
"commands",
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4621
|
+
"schema",
|
|
4622
|
+
"field.js"
|
|
4087
4623
|
]
|
|
4088
4624
|
},
|
|
4089
|
-
"
|
|
4625
|
+
"schema": {
|
|
4090
4626
|
"aliases": [],
|
|
4091
4627
|
"args": {},
|
|
4092
|
-
"description": "
|
|
4628
|
+
"description": "Discover and inspect a ServiceNow table schema including fields, types, and relationships.\n\nThis command retrieves the full schema definition for a ServiceNow table, including all fields, their types, constraints, and optionally choices, relationships, UI policies, and business rules.\n\nFeatures:\n • List all fields with types, lengths, and constraints\n • Optionally include field choices\n • Optionally include table relationships\n • Optionally include UI policies\n • Optionally include business rules\n • JSON output for CI/CD integration",
|
|
4093
4629
|
"examples": [
|
|
4094
4630
|
{
|
|
4095
|
-
"description": "
|
|
4096
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4097
|
-
},
|
|
4098
|
-
{
|
|
4099
|
-
"description": "Push a Business Rule with short flags",
|
|
4100
|
-
"command": "<%= config.bin %> <%= command.id %> -n MyBusinessRule -t sys_script -f ./scripts/my-rule.js -a dev-instance"
|
|
4631
|
+
"description": "Discover incident table schema",
|
|
4632
|
+
"command": "<%= config.bin %> <%= command.id %> --table incident --auth dev"
|
|
4101
4633
|
},
|
|
4102
4634
|
{
|
|
4103
|
-
"description": "
|
|
4104
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4635
|
+
"description": "Include choices and relationships",
|
|
4636
|
+
"command": "<%= config.bin %> <%= command.id %> --table incident --include-choices --include-relationships --auth dev"
|
|
4105
4637
|
}
|
|
4106
4638
|
],
|
|
4107
4639
|
"flags": {
|
|
4108
4640
|
"json": {
|
|
4109
|
-
"
|
|
4110
|
-
"
|
|
4641
|
+
"char": "j",
|
|
4642
|
+
"description": "Output results as JSON",
|
|
4111
4643
|
"name": "json",
|
|
4644
|
+
"required": false,
|
|
4112
4645
|
"allowNo": false,
|
|
4113
4646
|
"type": "boolean"
|
|
4114
4647
|
},
|
|
@@ -4121,6 +4654,14 @@
|
|
|
4121
4654
|
"multiple": false,
|
|
4122
4655
|
"type": "option"
|
|
4123
4656
|
},
|
|
4657
|
+
"cred-store": {
|
|
4658
|
+
"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.",
|
|
4659
|
+
"helpGroup": "GLOBAL",
|
|
4660
|
+
"name": "cred-store",
|
|
4661
|
+
"required": false,
|
|
4662
|
+
"allowNo": false,
|
|
4663
|
+
"type": "boolean"
|
|
4664
|
+
},
|
|
4124
4665
|
"log-level": {
|
|
4125
4666
|
"helpGroup": "GLOBAL",
|
|
4126
4667
|
"name": "log-level",
|
|
@@ -4137,44 +4678,47 @@
|
|
|
4137
4678
|
],
|
|
4138
4679
|
"type": "option"
|
|
4139
4680
|
},
|
|
4140
|
-
"
|
|
4141
|
-
"char": "n",
|
|
4142
|
-
"description": "Name of the script to push",
|
|
4143
|
-
"name": "name",
|
|
4144
|
-
"required": true,
|
|
4145
|
-
"hasDynamicHelp": false,
|
|
4146
|
-
"multiple": false,
|
|
4147
|
-
"type": "option"
|
|
4148
|
-
},
|
|
4149
|
-
"type": {
|
|
4681
|
+
"table": {
|
|
4150
4682
|
"char": "t",
|
|
4151
|
-
"description": "
|
|
4152
|
-
"name": "
|
|
4683
|
+
"description": "ServiceNow table name to discover schema for",
|
|
4684
|
+
"name": "table",
|
|
4153
4685
|
"required": true,
|
|
4154
4686
|
"hasDynamicHelp": false,
|
|
4155
4687
|
"multiple": false,
|
|
4156
|
-
"options": [
|
|
4157
|
-
"sys_script_include",
|
|
4158
|
-
"sys_script",
|
|
4159
|
-
"sys_ui_script",
|
|
4160
|
-
"sys_ui_action",
|
|
4161
|
-
"sys_script_client"
|
|
4162
|
-
],
|
|
4163
4688
|
"type": "option"
|
|
4164
4689
|
},
|
|
4165
|
-
"
|
|
4166
|
-
"
|
|
4167
|
-
"
|
|
4168
|
-
"
|
|
4169
|
-
"
|
|
4170
|
-
"
|
|
4171
|
-
|
|
4172
|
-
|
|
4690
|
+
"include-choices": {
|
|
4691
|
+
"description": "Include field choices in the schema output",
|
|
4692
|
+
"name": "include-choices",
|
|
4693
|
+
"required": false,
|
|
4694
|
+
"allowNo": false,
|
|
4695
|
+
"type": "boolean"
|
|
4696
|
+
},
|
|
4697
|
+
"include-relationships": {
|
|
4698
|
+
"description": "Include table relationships in the schema output",
|
|
4699
|
+
"name": "include-relationships",
|
|
4700
|
+
"required": false,
|
|
4701
|
+
"allowNo": false,
|
|
4702
|
+
"type": "boolean"
|
|
4703
|
+
},
|
|
4704
|
+
"include-ui-policies": {
|
|
4705
|
+
"description": "Include UI policies in the schema output",
|
|
4706
|
+
"name": "include-ui-policies",
|
|
4707
|
+
"required": false,
|
|
4708
|
+
"allowNo": false,
|
|
4709
|
+
"type": "boolean"
|
|
4710
|
+
},
|
|
4711
|
+
"include-business-rules": {
|
|
4712
|
+
"description": "Include business rules in the schema output",
|
|
4713
|
+
"name": "include-business-rules",
|
|
4714
|
+
"required": false,
|
|
4715
|
+
"allowNo": false,
|
|
4716
|
+
"type": "boolean"
|
|
4173
4717
|
}
|
|
4174
4718
|
},
|
|
4175
4719
|
"hasDynamicHelp": false,
|
|
4176
4720
|
"hiddenAliases": [],
|
|
4177
|
-
"id": "
|
|
4721
|
+
"id": "schema",
|
|
4178
4722
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4179
4723
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4180
4724
|
"pluginType": "core",
|
|
@@ -4184,33 +4728,30 @@
|
|
|
4184
4728
|
"relativePath": [
|
|
4185
4729
|
"dist",
|
|
4186
4730
|
"commands",
|
|
4187
|
-
"
|
|
4188
|
-
"
|
|
4731
|
+
"schema",
|
|
4732
|
+
"index.js"
|
|
4189
4733
|
]
|
|
4190
4734
|
},
|
|
4191
|
-
"
|
|
4735
|
+
"schema:validate-catalog": {
|
|
4192
4736
|
"aliases": [],
|
|
4193
4737
|
"args": {},
|
|
4194
|
-
"description": "
|
|
4738
|
+
"description": "Validate a ServiceNow catalog item configuration for common issues.\n\nThis command checks a catalog item configuration and reports any validation issues, warnings, or errors found. Useful for ensuring catalog items are properly configured before deployment.",
|
|
4195
4739
|
"examples": [
|
|
4196
4740
|
{
|
|
4197
|
-
"description": "
|
|
4198
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4199
|
-
},
|
|
4200
|
-
{
|
|
4201
|
-
"description": "Sync only Script Includes and Business Rules",
|
|
4202
|
-
"command": "<%= config.bin %> <%= command.id %> --directory ./scripts --types sys_script_include --types sys_script --auth dev-instance"
|
|
4741
|
+
"description": "Validate a catalog item by sys_id",
|
|
4742
|
+
"command": "<%= config.bin %> <%= command.id %> --sys-id a1b2c3d4e5f6 --auth dev"
|
|
4203
4743
|
},
|
|
4204
4744
|
{
|
|
4205
|
-
"description": "
|
|
4206
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
4745
|
+
"description": "Validate a catalog item with JSON output",
|
|
4746
|
+
"command": "<%= config.bin %> <%= command.id %> --sys-id a1b2c3d4e5f6 --json --auth dev"
|
|
4207
4747
|
}
|
|
4208
4748
|
],
|
|
4209
4749
|
"flags": {
|
|
4210
4750
|
"json": {
|
|
4211
|
-
"
|
|
4212
|
-
"
|
|
4751
|
+
"char": "j",
|
|
4752
|
+
"description": "Output results as JSON",
|
|
4213
4753
|
"name": "json",
|
|
4754
|
+
"required": false,
|
|
4214
4755
|
"allowNo": false,
|
|
4215
4756
|
"type": "boolean"
|
|
4216
4757
|
},
|
|
@@ -4223,6 +4764,14 @@
|
|
|
4223
4764
|
"multiple": false,
|
|
4224
4765
|
"type": "option"
|
|
4225
4766
|
},
|
|
4767
|
+
"cred-store": {
|
|
4768
|
+
"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.",
|
|
4769
|
+
"helpGroup": "GLOBAL",
|
|
4770
|
+
"name": "cred-store",
|
|
4771
|
+
"required": false,
|
|
4772
|
+
"allowNo": false,
|
|
4773
|
+
"type": "boolean"
|
|
4774
|
+
},
|
|
4226
4775
|
"log-level": {
|
|
4227
4776
|
"helpGroup": "GLOBAL",
|
|
4228
4777
|
"name": "log-level",
|
|
@@ -4239,35 +4788,19 @@
|
|
|
4239
4788
|
],
|
|
4240
4789
|
"type": "option"
|
|
4241
4790
|
},
|
|
4242
|
-
"
|
|
4243
|
-
"char": "
|
|
4244
|
-
"description": "
|
|
4245
|
-
"name": "
|
|
4791
|
+
"sys-id": {
|
|
4792
|
+
"char": "s",
|
|
4793
|
+
"description": "Catalog item sys_id to validate",
|
|
4794
|
+
"name": "sys-id",
|
|
4246
4795
|
"required": true,
|
|
4247
4796
|
"hasDynamicHelp": false,
|
|
4248
4797
|
"multiple": false,
|
|
4249
4798
|
"type": "option"
|
|
4250
|
-
},
|
|
4251
|
-
"types": {
|
|
4252
|
-
"char": "t",
|
|
4253
|
-
"description": "Script types to synchronize. Can be specified multiple times to include multiple types.",
|
|
4254
|
-
"name": "types",
|
|
4255
|
-
"required": false,
|
|
4256
|
-
"hasDynamicHelp": false,
|
|
4257
|
-
"multiple": true,
|
|
4258
|
-
"options": [
|
|
4259
|
-
"sys_script_include",
|
|
4260
|
-
"sys_script",
|
|
4261
|
-
"sys_ui_script",
|
|
4262
|
-
"sys_ui_action",
|
|
4263
|
-
"sys_script_client"
|
|
4264
|
-
],
|
|
4265
|
-
"type": "option"
|
|
4266
4799
|
}
|
|
4267
4800
|
},
|
|
4268
4801
|
"hasDynamicHelp": false,
|
|
4269
4802
|
"hiddenAliases": [],
|
|
4270
|
-
"id": "
|
|
4803
|
+
"id": "schema:validate-catalog",
|
|
4271
4804
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
4272
4805
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
4273
4806
|
"pluginType": "core",
|
|
@@ -4277,8 +4810,8 @@
|
|
|
4277
4810
|
"relativePath": [
|
|
4278
4811
|
"dist",
|
|
4279
4812
|
"commands",
|
|
4280
|
-
"
|
|
4281
|
-
"
|
|
4813
|
+
"schema",
|
|
4814
|
+
"validate-catalog.js"
|
|
4282
4815
|
]
|
|
4283
4816
|
},
|
|
4284
4817
|
"search:add-table": {
|
|
@@ -4316,6 +4849,14 @@
|
|
|
4316
4849
|
"multiple": false,
|
|
4317
4850
|
"type": "option"
|
|
4318
4851
|
},
|
|
4852
|
+
"cred-store": {
|
|
4853
|
+
"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.",
|
|
4854
|
+
"helpGroup": "GLOBAL",
|
|
4855
|
+
"name": "cred-store",
|
|
4856
|
+
"required": false,
|
|
4857
|
+
"allowNo": false,
|
|
4858
|
+
"type": "boolean"
|
|
4859
|
+
},
|
|
4319
4860
|
"log-level": {
|
|
4320
4861
|
"helpGroup": "GLOBAL",
|
|
4321
4862
|
"name": "log-level",
|
|
@@ -4407,6 +4948,14 @@
|
|
|
4407
4948
|
"multiple": false,
|
|
4408
4949
|
"type": "option"
|
|
4409
4950
|
},
|
|
4951
|
+
"cred-store": {
|
|
4952
|
+
"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.",
|
|
4953
|
+
"helpGroup": "GLOBAL",
|
|
4954
|
+
"name": "cred-store",
|
|
4955
|
+
"required": false,
|
|
4956
|
+
"allowNo": false,
|
|
4957
|
+
"type": "boolean"
|
|
4958
|
+
},
|
|
4410
4959
|
"log-level": {
|
|
4411
4960
|
"helpGroup": "GLOBAL",
|
|
4412
4961
|
"name": "log-level",
|
|
@@ -4479,6 +5028,14 @@
|
|
|
4479
5028
|
"multiple": false,
|
|
4480
5029
|
"type": "option"
|
|
4481
5030
|
},
|
|
5031
|
+
"cred-store": {
|
|
5032
|
+
"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.",
|
|
5033
|
+
"helpGroup": "GLOBAL",
|
|
5034
|
+
"name": "cred-store",
|
|
5035
|
+
"required": false,
|
|
5036
|
+
"allowNo": false,
|
|
5037
|
+
"type": "boolean"
|
|
5038
|
+
},
|
|
4482
5039
|
"log-level": {
|
|
4483
5040
|
"helpGroup": "GLOBAL",
|
|
4484
5041
|
"name": "log-level",
|
|
@@ -4587,6 +5144,14 @@
|
|
|
4587
5144
|
"multiple": false,
|
|
4588
5145
|
"type": "option"
|
|
4589
5146
|
},
|
|
5147
|
+
"cred-store": {
|
|
5148
|
+
"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.",
|
|
5149
|
+
"helpGroup": "GLOBAL",
|
|
5150
|
+
"name": "cred-store",
|
|
5151
|
+
"required": false,
|
|
5152
|
+
"allowNo": false,
|
|
5153
|
+
"type": "boolean"
|
|
5154
|
+
},
|
|
4590
5155
|
"log-level": {
|
|
4591
5156
|
"helpGroup": "GLOBAL",
|
|
4592
5157
|
"name": "log-level",
|
|
@@ -4664,6 +5229,14 @@
|
|
|
4664
5229
|
"multiple": false,
|
|
4665
5230
|
"type": "option"
|
|
4666
5231
|
},
|
|
5232
|
+
"cred-store": {
|
|
5233
|
+
"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.",
|
|
5234
|
+
"helpGroup": "GLOBAL",
|
|
5235
|
+
"name": "cred-store",
|
|
5236
|
+
"required": false,
|
|
5237
|
+
"allowNo": false,
|
|
5238
|
+
"type": "boolean"
|
|
5239
|
+
},
|
|
4667
5240
|
"log-level": {
|
|
4668
5241
|
"helpGroup": "GLOBAL",
|
|
4669
5242
|
"name": "log-level",
|
|
@@ -4782,6 +5355,14 @@
|
|
|
4782
5355
|
"multiple": false,
|
|
4783
5356
|
"type": "option"
|
|
4784
5357
|
},
|
|
5358
|
+
"cred-store": {
|
|
5359
|
+
"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.",
|
|
5360
|
+
"helpGroup": "GLOBAL",
|
|
5361
|
+
"name": "cred-store",
|
|
5362
|
+
"required": false,
|
|
5363
|
+
"allowNo": false,
|
|
5364
|
+
"type": "boolean"
|
|
5365
|
+
},
|
|
4785
5366
|
"log-level": {
|
|
4786
5367
|
"helpGroup": "GLOBAL",
|
|
4787
5368
|
"name": "log-level",
|
|
@@ -4882,6 +5463,14 @@
|
|
|
4882
5463
|
"multiple": false,
|
|
4883
5464
|
"type": "option"
|
|
4884
5465
|
},
|
|
5466
|
+
"cred-store": {
|
|
5467
|
+
"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.",
|
|
5468
|
+
"helpGroup": "GLOBAL",
|
|
5469
|
+
"name": "cred-store",
|
|
5470
|
+
"required": false,
|
|
5471
|
+
"allowNo": false,
|
|
5472
|
+
"type": "boolean"
|
|
5473
|
+
},
|
|
4885
5474
|
"log-level": {
|
|
4886
5475
|
"helpGroup": "GLOBAL",
|
|
4887
5476
|
"name": "log-level",
|
|
@@ -4985,6 +5574,14 @@
|
|
|
4985
5574
|
"multiple": false,
|
|
4986
5575
|
"type": "option"
|
|
4987
5576
|
},
|
|
5577
|
+
"cred-store": {
|
|
5578
|
+
"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.",
|
|
5579
|
+
"helpGroup": "GLOBAL",
|
|
5580
|
+
"name": "cred-store",
|
|
5581
|
+
"required": false,
|
|
5582
|
+
"allowNo": false,
|
|
5583
|
+
"type": "boolean"
|
|
5584
|
+
},
|
|
4988
5585
|
"log-level": {
|
|
4989
5586
|
"helpGroup": "GLOBAL",
|
|
4990
5587
|
"name": "log-level",
|
|
@@ -5027,18 +5624,18 @@
|
|
|
5027
5624
|
"validate.js"
|
|
5028
5625
|
]
|
|
5029
5626
|
},
|
|
5030
|
-
"
|
|
5627
|
+
"update-set:clone": {
|
|
5031
5628
|
"aliases": [],
|
|
5032
5629
|
"args": {},
|
|
5033
|
-
"description": "
|
|
5630
|
+
"description": "Clone an update set and its records.",
|
|
5034
5631
|
"examples": [
|
|
5035
5632
|
{
|
|
5036
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5037
|
-
"description": "
|
|
5633
|
+
"command": "<%= config.bin %> <%= command.id %> --source us-001 --name \"Cloned Set\" --auth dev-instance",
|
|
5634
|
+
"description": "Clone an update set"
|
|
5038
5635
|
},
|
|
5039
5636
|
{
|
|
5040
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
5041
|
-
"description": "
|
|
5637
|
+
"command": "<%= config.bin %> <%= command.id %> --source us-001 --name \"Cloned Set\" --json --auth dev-instance",
|
|
5638
|
+
"description": "Clone with JSON output"
|
|
5042
5639
|
}
|
|
5043
5640
|
],
|
|
5044
5641
|
"flags": {
|
|
@@ -5058,6 +5655,14 @@
|
|
|
5058
5655
|
"multiple": false,
|
|
5059
5656
|
"type": "option"
|
|
5060
5657
|
},
|
|
5658
|
+
"cred-store": {
|
|
5659
|
+
"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.",
|
|
5660
|
+
"helpGroup": "GLOBAL",
|
|
5661
|
+
"name": "cred-store",
|
|
5662
|
+
"required": false,
|
|
5663
|
+
"allowNo": false,
|
|
5664
|
+
"type": "boolean"
|
|
5665
|
+
},
|
|
5061
5666
|
"log-level": {
|
|
5062
5667
|
"helpGroup": "GLOBAL",
|
|
5063
5668
|
"name": "log-level",
|
|
@@ -5074,19 +5679,19 @@
|
|
|
5074
5679
|
],
|
|
5075
5680
|
"type": "option"
|
|
5076
5681
|
},
|
|
5077
|
-
"
|
|
5078
|
-
"char": "
|
|
5079
|
-
"description": "
|
|
5080
|
-
"name": "
|
|
5081
|
-
"required":
|
|
5682
|
+
"name": {
|
|
5683
|
+
"char": "n",
|
|
5684
|
+
"description": "Name for the cloned update set",
|
|
5685
|
+
"name": "name",
|
|
5686
|
+
"required": true,
|
|
5082
5687
|
"hasDynamicHelp": false,
|
|
5083
5688
|
"multiple": false,
|
|
5084
5689
|
"type": "option"
|
|
5085
5690
|
},
|
|
5086
|
-
"
|
|
5087
|
-
"char": "
|
|
5088
|
-
"description": "
|
|
5089
|
-
"name": "
|
|
5691
|
+
"source": {
|
|
5692
|
+
"char": "s",
|
|
5693
|
+
"description": "Source update set sys_id",
|
|
5694
|
+
"name": "source",
|
|
5090
5695
|
"required": true,
|
|
5091
5696
|
"hasDynamicHelp": false,
|
|
5092
5697
|
"multiple": false,
|
|
@@ -5095,7 +5700,7 @@
|
|
|
5095
5700
|
},
|
|
5096
5701
|
"hasDynamicHelp": false,
|
|
5097
5702
|
"hiddenAliases": [],
|
|
5098
|
-
"id": "
|
|
5703
|
+
"id": "update-set:clone",
|
|
5099
5704
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5100
5705
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5101
5706
|
"pluginType": "core",
|
|
@@ -5105,26 +5710,26 @@
|
|
|
5105
5710
|
"relativePath": [
|
|
5106
5711
|
"dist",
|
|
5107
5712
|
"commands",
|
|
5108
|
-
"
|
|
5109
|
-
"
|
|
5713
|
+
"update-set",
|
|
5714
|
+
"clone.js"
|
|
5110
5715
|
]
|
|
5111
5716
|
},
|
|
5112
|
-
"
|
|
5717
|
+
"update-set:create": {
|
|
5113
5718
|
"aliases": [],
|
|
5114
5719
|
"args": {},
|
|
5115
|
-
"description": "
|
|
5720
|
+
"description": "Create a new update set.",
|
|
5116
5721
|
"examples": [
|
|
5117
|
-
{
|
|
5118
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5119
|
-
"description": "
|
|
5722
|
+
{
|
|
5723
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"My Feature Set\" --auth dev-instance",
|
|
5724
|
+
"description": "Create a new update set with a name"
|
|
5120
5725
|
},
|
|
5121
5726
|
{
|
|
5122
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5123
|
-
"description": "
|
|
5727
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"My Feature Set\" --description \"Update set for feature X\" --auth dev-instance",
|
|
5728
|
+
"description": "Create with name and description"
|
|
5124
5729
|
},
|
|
5125
5730
|
{
|
|
5126
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5127
|
-
"description": "
|
|
5731
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"My Feature Set\" --application x_my_app --auth dev-instance",
|
|
5732
|
+
"description": "Create within a specific application scope"
|
|
5128
5733
|
}
|
|
5129
5734
|
],
|
|
5130
5735
|
"flags": {
|
|
@@ -5144,6 +5749,14 @@
|
|
|
5144
5749
|
"multiple": false,
|
|
5145
5750
|
"type": "option"
|
|
5146
5751
|
},
|
|
5752
|
+
"cred-store": {
|
|
5753
|
+
"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.",
|
|
5754
|
+
"helpGroup": "GLOBAL",
|
|
5755
|
+
"name": "cred-store",
|
|
5756
|
+
"required": false,
|
|
5757
|
+
"allowNo": false,
|
|
5758
|
+
"type": "boolean"
|
|
5759
|
+
},
|
|
5147
5760
|
"log-level": {
|
|
5148
5761
|
"helpGroup": "GLOBAL",
|
|
5149
5762
|
"name": "log-level",
|
|
@@ -5160,37 +5773,27 @@
|
|
|
5160
5773
|
],
|
|
5161
5774
|
"type": "option"
|
|
5162
5775
|
},
|
|
5163
|
-
"
|
|
5164
|
-
"
|
|
5165
|
-
"
|
|
5166
|
-
"name": "group",
|
|
5776
|
+
"application": {
|
|
5777
|
+
"description": "Application scope for the new update set",
|
|
5778
|
+
"name": "application",
|
|
5167
5779
|
"required": false,
|
|
5168
5780
|
"hasDynamicHelp": false,
|
|
5169
5781
|
"multiple": false,
|
|
5170
5782
|
"type": "option"
|
|
5171
5783
|
},
|
|
5172
|
-
"
|
|
5173
|
-
"char": "
|
|
5174
|
-
"description": "
|
|
5175
|
-
"name": "
|
|
5176
|
-
"required": true,
|
|
5177
|
-
"hasDynamicHelp": false,
|
|
5178
|
-
"multiple": false,
|
|
5179
|
-
"type": "option"
|
|
5180
|
-
},
|
|
5181
|
-
"table": {
|
|
5182
|
-
"description": "ServiceNow table name",
|
|
5183
|
-
"name": "table",
|
|
5784
|
+
"description": {
|
|
5785
|
+
"char": "d",
|
|
5786
|
+
"description": "Description for the new update set",
|
|
5787
|
+
"name": "description",
|
|
5184
5788
|
"required": false,
|
|
5185
|
-
"default": "task",
|
|
5186
5789
|
"hasDynamicHelp": false,
|
|
5187
5790
|
"multiple": false,
|
|
5188
5791
|
"type": "option"
|
|
5189
5792
|
},
|
|
5190
|
-
"
|
|
5191
|
-
"char": "
|
|
5192
|
-
"description": "
|
|
5193
|
-
"name": "
|
|
5793
|
+
"name": {
|
|
5794
|
+
"char": "n",
|
|
5795
|
+
"description": "Name for the new update set",
|
|
5796
|
+
"name": "name",
|
|
5194
5797
|
"required": true,
|
|
5195
5798
|
"hasDynamicHelp": false,
|
|
5196
5799
|
"multiple": false,
|
|
@@ -5199,7 +5802,7 @@
|
|
|
5199
5802
|
},
|
|
5200
5803
|
"hasDynamicHelp": false,
|
|
5201
5804
|
"hiddenAliases": [],
|
|
5202
|
-
"id": "
|
|
5805
|
+
"id": "update-set:create",
|
|
5203
5806
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5204
5807
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5205
5808
|
"pluginType": "core",
|
|
@@ -5209,22 +5812,26 @@
|
|
|
5209
5812
|
"relativePath": [
|
|
5210
5813
|
"dist",
|
|
5211
5814
|
"commands",
|
|
5212
|
-
"
|
|
5213
|
-
"
|
|
5815
|
+
"update-set",
|
|
5816
|
+
"create.js"
|
|
5214
5817
|
]
|
|
5215
5818
|
},
|
|
5216
|
-
"
|
|
5819
|
+
"update-set:current": {
|
|
5217
5820
|
"aliases": [],
|
|
5218
5821
|
"args": {},
|
|
5219
|
-
"description": "
|
|
5822
|
+
"description": "Get or set the current update set.",
|
|
5220
5823
|
"examples": [
|
|
5221
5824
|
{
|
|
5222
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5223
|
-
"description": "
|
|
5825
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev-instance",
|
|
5826
|
+
"description": "Get the current update set"
|
|
5224
5827
|
},
|
|
5225
5828
|
{
|
|
5226
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5227
|
-
"description": "
|
|
5829
|
+
"command": "<%= config.bin %> <%= command.id %> --set us-001 --auth dev-instance",
|
|
5830
|
+
"description": "Set the current update set by sys_id"
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
"command": "<%= config.bin %> <%= command.id %> --json --auth dev-instance",
|
|
5834
|
+
"description": "Get the current update set as JSON"
|
|
5228
5835
|
}
|
|
5229
5836
|
],
|
|
5230
5837
|
"flags": {
|
|
@@ -5244,6 +5851,14 @@
|
|
|
5244
5851
|
"multiple": false,
|
|
5245
5852
|
"type": "option"
|
|
5246
5853
|
},
|
|
5854
|
+
"cred-store": {
|
|
5855
|
+
"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.",
|
|
5856
|
+
"helpGroup": "GLOBAL",
|
|
5857
|
+
"name": "cred-store",
|
|
5858
|
+
"required": false,
|
|
5859
|
+
"allowNo": false,
|
|
5860
|
+
"type": "boolean"
|
|
5861
|
+
},
|
|
5247
5862
|
"log-level": {
|
|
5248
5863
|
"helpGroup": "GLOBAL",
|
|
5249
5864
|
"name": "log-level",
|
|
@@ -5260,35 +5875,19 @@
|
|
|
5260
5875
|
],
|
|
5261
5876
|
"type": "option"
|
|
5262
5877
|
},
|
|
5263
|
-
"
|
|
5264
|
-
"
|
|
5265
|
-
"
|
|
5878
|
+
"set": {
|
|
5879
|
+
"char": "s",
|
|
5880
|
+
"description": "sys_id of update set to make current",
|
|
5881
|
+
"name": "set",
|
|
5266
5882
|
"required": false,
|
|
5267
5883
|
"hasDynamicHelp": false,
|
|
5268
5884
|
"multiple": false,
|
|
5269
5885
|
"type": "option"
|
|
5270
|
-
},
|
|
5271
|
-
"notes": {
|
|
5272
|
-
"description": "Close notes",
|
|
5273
|
-
"name": "notes",
|
|
5274
|
-
"required": true,
|
|
5275
|
-
"hasDynamicHelp": false,
|
|
5276
|
-
"multiple": false,
|
|
5277
|
-
"type": "option"
|
|
5278
|
-
},
|
|
5279
|
-
"number": {
|
|
5280
|
-
"char": "n",
|
|
5281
|
-
"description": "Incident number (e.g., INC0010001)",
|
|
5282
|
-
"name": "number",
|
|
5283
|
-
"required": true,
|
|
5284
|
-
"hasDynamicHelp": false,
|
|
5285
|
-
"multiple": false,
|
|
5286
|
-
"type": "option"
|
|
5287
5886
|
}
|
|
5288
5887
|
},
|
|
5289
5888
|
"hasDynamicHelp": false,
|
|
5290
5889
|
"hiddenAliases": [],
|
|
5291
|
-
"id": "
|
|
5890
|
+
"id": "update-set:current",
|
|
5292
5891
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5293
5892
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5294
5893
|
"pluginType": "core",
|
|
@@ -5298,26 +5897,26 @@
|
|
|
5298
5897
|
"relativePath": [
|
|
5299
5898
|
"dist",
|
|
5300
5899
|
"commands",
|
|
5301
|
-
"
|
|
5302
|
-
"
|
|
5900
|
+
"update-set",
|
|
5901
|
+
"current.js"
|
|
5303
5902
|
]
|
|
5304
5903
|
},
|
|
5305
|
-
"
|
|
5904
|
+
"update-set": {
|
|
5306
5905
|
"aliases": [],
|
|
5307
5906
|
"args": {},
|
|
5308
|
-
"description": "
|
|
5907
|
+
"description": "List update sets on a ServiceNow instance.",
|
|
5309
5908
|
"examples": [
|
|
5310
5909
|
{
|
|
5311
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5312
|
-
"description": "
|
|
5910
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev-instance",
|
|
5911
|
+
"description": "List update sets with default limit"
|
|
5313
5912
|
},
|
|
5314
5913
|
{
|
|
5315
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5316
|
-
"description": "
|
|
5914
|
+
"command": "<%= config.bin %> <%= command.id %> --query \"state=in progress\" --limit 50 --auth dev-instance",
|
|
5915
|
+
"description": "List update sets with a custom query filter"
|
|
5317
5916
|
},
|
|
5318
5917
|
{
|
|
5319
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5320
|
-
"description": "
|
|
5918
|
+
"command": "<%= config.bin %> <%= command.id %> --json --auth dev-instance",
|
|
5919
|
+
"description": "List update sets with JSON output"
|
|
5321
5920
|
}
|
|
5322
5921
|
],
|
|
5323
5922
|
"flags": {
|
|
@@ -5337,6 +5936,14 @@
|
|
|
5337
5936
|
"multiple": false,
|
|
5338
5937
|
"type": "option"
|
|
5339
5938
|
},
|
|
5939
|
+
"cred-store": {
|
|
5940
|
+
"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.",
|
|
5941
|
+
"helpGroup": "GLOBAL",
|
|
5942
|
+
"name": "cred-store",
|
|
5943
|
+
"required": false,
|
|
5944
|
+
"allowNo": false,
|
|
5945
|
+
"type": "boolean"
|
|
5946
|
+
},
|
|
5340
5947
|
"log-level": {
|
|
5341
5948
|
"helpGroup": "GLOBAL",
|
|
5342
5949
|
"name": "log-level",
|
|
@@ -5353,44 +5960,28 @@
|
|
|
5353
5960
|
],
|
|
5354
5961
|
"type": "option"
|
|
5355
5962
|
},
|
|
5356
|
-
"
|
|
5357
|
-
"
|
|
5358
|
-
"
|
|
5359
|
-
"
|
|
5360
|
-
"
|
|
5361
|
-
"hasDynamicHelp": false,
|
|
5362
|
-
"multiple": false,
|
|
5363
|
-
"type": "option"
|
|
5364
|
-
},
|
|
5365
|
-
"number": {
|
|
5366
|
-
"char": "n",
|
|
5367
|
-
"description": "Task number (e.g., INC0010001)",
|
|
5368
|
-
"name": "number",
|
|
5369
|
-
"required": true,
|
|
5963
|
+
"limit": {
|
|
5964
|
+
"description": "Maximum number of update sets to return",
|
|
5965
|
+
"name": "limit",
|
|
5966
|
+
"required": false,
|
|
5967
|
+
"default": 20,
|
|
5370
5968
|
"hasDynamicHelp": false,
|
|
5371
5969
|
"multiple": false,
|
|
5372
5970
|
"type": "option"
|
|
5373
5971
|
},
|
|
5374
|
-
"
|
|
5375
|
-
"
|
|
5376
|
-
"
|
|
5972
|
+
"query": {
|
|
5973
|
+
"char": "q",
|
|
5974
|
+
"description": "Encoded query filter",
|
|
5975
|
+
"name": "query",
|
|
5377
5976
|
"required": false,
|
|
5378
|
-
"default": "task",
|
|
5379
5977
|
"hasDynamicHelp": false,
|
|
5380
5978
|
"multiple": false,
|
|
5381
5979
|
"type": "option"
|
|
5382
|
-
},
|
|
5383
|
-
"work-note": {
|
|
5384
|
-
"description": "Add as work note instead of comment",
|
|
5385
|
-
"name": "work-note",
|
|
5386
|
-
"required": false,
|
|
5387
|
-
"allowNo": false,
|
|
5388
|
-
"type": "boolean"
|
|
5389
5980
|
}
|
|
5390
5981
|
},
|
|
5391
5982
|
"hasDynamicHelp": false,
|
|
5392
5983
|
"hiddenAliases": [],
|
|
5393
|
-
"id": "
|
|
5984
|
+
"id": "update-set",
|
|
5394
5985
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5395
5986
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5396
5987
|
"pluginType": "core",
|
|
@@ -5400,26 +5991,22 @@
|
|
|
5400
5991
|
"relativePath": [
|
|
5401
5992
|
"dist",
|
|
5402
5993
|
"commands",
|
|
5403
|
-
"
|
|
5404
|
-
"
|
|
5994
|
+
"update-set",
|
|
5995
|
+
"index.js"
|
|
5405
5996
|
]
|
|
5406
5997
|
},
|
|
5407
|
-
"
|
|
5998
|
+
"update-set:inspect": {
|
|
5408
5999
|
"aliases": [],
|
|
5409
6000
|
"args": {},
|
|
5410
|
-
"description": "
|
|
6001
|
+
"description": "Inspect the components of an update set.",
|
|
5411
6002
|
"examples": [
|
|
5412
6003
|
{
|
|
5413
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5414
|
-
"description": "
|
|
5415
|
-
},
|
|
5416
|
-
{
|
|
5417
|
-
"command": "<%= config.bin %> <%= command.id %> -n CHG0010001 --table change_request --auth dev",
|
|
5418
|
-
"description": "Find a change request by number"
|
|
6004
|
+
"command": "<%= config.bin %> <%= command.id %> --sys-id us-001 --auth dev-instance",
|
|
6005
|
+
"description": "Inspect an update set by sys_id"
|
|
5419
6006
|
},
|
|
5420
6007
|
{
|
|
5421
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
5422
|
-
"description": "
|
|
6008
|
+
"command": "<%= config.bin %> <%= command.id %> --sys-id us-001 --json --auth dev-instance",
|
|
6009
|
+
"description": "Inspect with JSON output"
|
|
5423
6010
|
}
|
|
5424
6011
|
],
|
|
5425
6012
|
"flags": {
|
|
@@ -5439,6 +6026,14 @@
|
|
|
5439
6026
|
"multiple": false,
|
|
5440
6027
|
"type": "option"
|
|
5441
6028
|
},
|
|
6029
|
+
"cred-store": {
|
|
6030
|
+
"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.",
|
|
6031
|
+
"helpGroup": "GLOBAL",
|
|
6032
|
+
"name": "cred-store",
|
|
6033
|
+
"required": false,
|
|
6034
|
+
"allowNo": false,
|
|
6035
|
+
"type": "boolean"
|
|
6036
|
+
},
|
|
5442
6037
|
"log-level": {
|
|
5443
6038
|
"helpGroup": "GLOBAL",
|
|
5444
6039
|
"name": "log-level",
|
|
@@ -5455,28 +6050,19 @@
|
|
|
5455
6050
|
],
|
|
5456
6051
|
"type": "option"
|
|
5457
6052
|
},
|
|
5458
|
-
"
|
|
5459
|
-
"char": "
|
|
5460
|
-
"description": "
|
|
5461
|
-
"name": "
|
|
6053
|
+
"sys-id": {
|
|
6054
|
+
"char": "s",
|
|
6055
|
+
"description": "sys_id of the update set to inspect",
|
|
6056
|
+
"name": "sys-id",
|
|
5462
6057
|
"required": true,
|
|
5463
6058
|
"hasDynamicHelp": false,
|
|
5464
6059
|
"multiple": false,
|
|
5465
6060
|
"type": "option"
|
|
5466
|
-
},
|
|
5467
|
-
"table": {
|
|
5468
|
-
"description": "ServiceNow table name",
|
|
5469
|
-
"name": "table",
|
|
5470
|
-
"required": false,
|
|
5471
|
-
"default": "task",
|
|
5472
|
-
"hasDynamicHelp": false,
|
|
5473
|
-
"multiple": false,
|
|
5474
|
-
"type": "option"
|
|
5475
6061
|
}
|
|
5476
6062
|
},
|
|
5477
6063
|
"hasDynamicHelp": false,
|
|
5478
6064
|
"hiddenAliases": [],
|
|
5479
|
-
"id": "
|
|
6065
|
+
"id": "update-set:inspect",
|
|
5480
6066
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5481
6067
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5482
6068
|
"pluginType": "core",
|
|
@@ -5486,22 +6072,26 @@
|
|
|
5486
6072
|
"relativePath": [
|
|
5487
6073
|
"dist",
|
|
5488
6074
|
"commands",
|
|
5489
|
-
"
|
|
5490
|
-
"
|
|
6075
|
+
"update-set",
|
|
6076
|
+
"inspect.js"
|
|
5491
6077
|
]
|
|
5492
6078
|
},
|
|
5493
|
-
"
|
|
6079
|
+
"update-set:move": {
|
|
5494
6080
|
"aliases": [],
|
|
5495
6081
|
"args": {},
|
|
5496
|
-
"description": "
|
|
6082
|
+
"description": "Move records between update sets.",
|
|
5497
6083
|
"examples": [
|
|
5498
6084
|
{
|
|
5499
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5500
|
-
"description": "
|
|
6085
|
+
"command": "<%= config.bin %> <%= command.id %> --target us-002 --source us-001 --auth dev-instance",
|
|
6086
|
+
"description": "Move all records from one update set to another"
|
|
5501
6087
|
},
|
|
5502
6088
|
{
|
|
5503
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
5504
|
-
"description": "
|
|
6089
|
+
"command": "<%= config.bin %> <%= command.id %> --target us-002 --records \"rec-001,rec-002,rec-003\" --auth dev-instance",
|
|
6090
|
+
"description": "Move specific records to a target update set"
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"command": "<%= config.bin %> <%= command.id %> --target us-002 --source us-001 --json --auth dev-instance",
|
|
6094
|
+
"description": "Move records with JSON output"
|
|
5505
6095
|
}
|
|
5506
6096
|
],
|
|
5507
6097
|
"flags": {
|
|
@@ -5521,6 +6111,14 @@
|
|
|
5521
6111
|
"multiple": false,
|
|
5522
6112
|
"type": "option"
|
|
5523
6113
|
},
|
|
6114
|
+
"cred-store": {
|
|
6115
|
+
"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.",
|
|
6116
|
+
"helpGroup": "GLOBAL",
|
|
6117
|
+
"name": "cred-store",
|
|
6118
|
+
"required": false,
|
|
6119
|
+
"allowNo": false,
|
|
6120
|
+
"type": "boolean"
|
|
6121
|
+
},
|
|
5524
6122
|
"log-level": {
|
|
5525
6123
|
"helpGroup": "GLOBAL",
|
|
5526
6124
|
"name": "log-level",
|
|
@@ -5537,26 +6135,25 @@
|
|
|
5537
6135
|
],
|
|
5538
6136
|
"type": "option"
|
|
5539
6137
|
},
|
|
5540
|
-
"
|
|
5541
|
-
"description": "
|
|
5542
|
-
"name": "
|
|
6138
|
+
"records": {
|
|
6139
|
+
"description": "Comma-separated sys_ids of records to move",
|
|
6140
|
+
"name": "records",
|
|
5543
6141
|
"required": false,
|
|
5544
6142
|
"hasDynamicHelp": false,
|
|
5545
6143
|
"multiple": false,
|
|
5546
6144
|
"type": "option"
|
|
5547
6145
|
},
|
|
5548
|
-
"
|
|
5549
|
-
"description": "
|
|
5550
|
-
"name": "
|
|
5551
|
-
"required":
|
|
6146
|
+
"source": {
|
|
6147
|
+
"description": "Source update set sys_id",
|
|
6148
|
+
"name": "source",
|
|
6149
|
+
"required": false,
|
|
5552
6150
|
"hasDynamicHelp": false,
|
|
5553
6151
|
"multiple": false,
|
|
5554
6152
|
"type": "option"
|
|
5555
6153
|
},
|
|
5556
|
-
"
|
|
5557
|
-
"
|
|
5558
|
-
"
|
|
5559
|
-
"name": "number",
|
|
6154
|
+
"target": {
|
|
6155
|
+
"description": "Target update set sys_id",
|
|
6156
|
+
"name": "target",
|
|
5560
6157
|
"required": true,
|
|
5561
6158
|
"hasDynamicHelp": false,
|
|
5562
6159
|
"multiple": false,
|
|
@@ -5565,7 +6162,7 @@
|
|
|
5565
6162
|
},
|
|
5566
6163
|
"hasDynamicHelp": false,
|
|
5567
6164
|
"hiddenAliases": [],
|
|
5568
|
-
"id": "
|
|
6165
|
+
"id": "update-set:move",
|
|
5569
6166
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5570
6167
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5571
6168
|
"pluginType": "core",
|
|
@@ -5575,22 +6172,22 @@
|
|
|
5575
6172
|
"relativePath": [
|
|
5576
6173
|
"dist",
|
|
5577
6174
|
"commands",
|
|
5578
|
-
"
|
|
5579
|
-
"
|
|
6175
|
+
"update-set",
|
|
6176
|
+
"move.js"
|
|
5580
6177
|
]
|
|
5581
6178
|
},
|
|
5582
|
-
"
|
|
6179
|
+
"workflow:create": {
|
|
5583
6180
|
"aliases": [],
|
|
5584
6181
|
"args": {},
|
|
5585
|
-
"description": "
|
|
6182
|
+
"description": "Create a complete workflow from a JSON specification file.",
|
|
5586
6183
|
"examples": [
|
|
5587
6184
|
{
|
|
5588
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5589
|
-
"description": "
|
|
6185
|
+
"command": "<%= config.bin %> <%= command.id %> --spec ./workflow.json --auth dev",
|
|
6186
|
+
"description": "Create a workflow from a JSON spec file"
|
|
5590
6187
|
},
|
|
5591
6188
|
{
|
|
5592
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5593
|
-
"description": "
|
|
6189
|
+
"command": "<%= config.bin %> <%= command.id %> -s ./workflow.json --json --auth dev",
|
|
6190
|
+
"description": "Create a workflow and output result as JSON"
|
|
5594
6191
|
}
|
|
5595
6192
|
],
|
|
5596
6193
|
"flags": {
|
|
@@ -5610,6 +6207,14 @@
|
|
|
5610
6207
|
"multiple": false,
|
|
5611
6208
|
"type": "option"
|
|
5612
6209
|
},
|
|
6210
|
+
"cred-store": {
|
|
6211
|
+
"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.",
|
|
6212
|
+
"helpGroup": "GLOBAL",
|
|
6213
|
+
"name": "cred-store",
|
|
6214
|
+
"required": false,
|
|
6215
|
+
"allowNo": false,
|
|
6216
|
+
"type": "boolean"
|
|
6217
|
+
},
|
|
5613
6218
|
"log-level": {
|
|
5614
6219
|
"helpGroup": "GLOBAL",
|
|
5615
6220
|
"name": "log-level",
|
|
@@ -5626,19 +6231,10 @@
|
|
|
5626
6231
|
],
|
|
5627
6232
|
"type": "option"
|
|
5628
6233
|
},
|
|
5629
|
-
"
|
|
5630
|
-
"char": "n",
|
|
5631
|
-
"description": "Name for the cloned update set",
|
|
5632
|
-
"name": "name",
|
|
5633
|
-
"required": true,
|
|
5634
|
-
"hasDynamicHelp": false,
|
|
5635
|
-
"multiple": false,
|
|
5636
|
-
"type": "option"
|
|
5637
|
-
},
|
|
5638
|
-
"source": {
|
|
6234
|
+
"spec": {
|
|
5639
6235
|
"char": "s",
|
|
5640
|
-
"description": "
|
|
5641
|
-
"name": "
|
|
6236
|
+
"description": "Path to workflow JSON specification file",
|
|
6237
|
+
"name": "spec",
|
|
5642
6238
|
"required": true,
|
|
5643
6239
|
"hasDynamicHelp": false,
|
|
5644
6240
|
"multiple": false,
|
|
@@ -5647,7 +6243,7 @@
|
|
|
5647
6243
|
},
|
|
5648
6244
|
"hasDynamicHelp": false,
|
|
5649
6245
|
"hiddenAliases": [],
|
|
5650
|
-
"id": "
|
|
6246
|
+
"id": "workflow:create",
|
|
5651
6247
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5652
6248
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5653
6249
|
"pluginType": "core",
|
|
@@ -5657,26 +6253,22 @@
|
|
|
5657
6253
|
"relativePath": [
|
|
5658
6254
|
"dist",
|
|
5659
6255
|
"commands",
|
|
5660
|
-
"
|
|
5661
|
-
"
|
|
6256
|
+
"workflow",
|
|
6257
|
+
"create.js"
|
|
5662
6258
|
]
|
|
5663
6259
|
},
|
|
5664
|
-
"
|
|
6260
|
+
"workflow:publish": {
|
|
5665
6261
|
"aliases": [],
|
|
5666
6262
|
"args": {},
|
|
5667
|
-
"description": "
|
|
6263
|
+
"description": "Publish a workflow version.",
|
|
5668
6264
|
"examples": [
|
|
5669
6265
|
{
|
|
5670
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5671
|
-
"description": "
|
|
5672
|
-
},
|
|
5673
|
-
{
|
|
5674
|
-
"command": "<%= config.bin %> <%= command.id %> --name \"My Feature Set\" --description \"Update set for feature X\" --auth dev-instance",
|
|
5675
|
-
"description": "Create with name and description"
|
|
6266
|
+
"command": "<%= config.bin %> <%= command.id %> --version-id wfv-001 --start-activity act-001 --auth dev",
|
|
6267
|
+
"description": "Publish a workflow version"
|
|
5676
6268
|
},
|
|
5677
6269
|
{
|
|
5678
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5679
|
-
"description": "
|
|
6270
|
+
"command": "<%= config.bin %> <%= command.id %> -v wfv-001 -s act-001 --json --auth dev",
|
|
6271
|
+
"description": "Publish a workflow version and output as JSON"
|
|
5680
6272
|
}
|
|
5681
6273
|
],
|
|
5682
6274
|
"flags": {
|
|
@@ -5696,6 +6288,14 @@
|
|
|
5696
6288
|
"multiple": false,
|
|
5697
6289
|
"type": "option"
|
|
5698
6290
|
},
|
|
6291
|
+
"cred-store": {
|
|
6292
|
+
"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.",
|
|
6293
|
+
"helpGroup": "GLOBAL",
|
|
6294
|
+
"name": "cred-store",
|
|
6295
|
+
"required": false,
|
|
6296
|
+
"allowNo": false,
|
|
6297
|
+
"type": "boolean"
|
|
6298
|
+
},
|
|
5699
6299
|
"log-level": {
|
|
5700
6300
|
"helpGroup": "GLOBAL",
|
|
5701
6301
|
"name": "log-level",
|
|
@@ -5712,27 +6312,19 @@
|
|
|
5712
6312
|
],
|
|
5713
6313
|
"type": "option"
|
|
5714
6314
|
},
|
|
5715
|
-
"
|
|
5716
|
-
"
|
|
5717
|
-
"
|
|
5718
|
-
"
|
|
5719
|
-
"
|
|
5720
|
-
"multiple": false,
|
|
5721
|
-
"type": "option"
|
|
5722
|
-
},
|
|
5723
|
-
"description": {
|
|
5724
|
-
"char": "d",
|
|
5725
|
-
"description": "Description for the new update set",
|
|
5726
|
-
"name": "description",
|
|
5727
|
-
"required": false,
|
|
6315
|
+
"start-activity": {
|
|
6316
|
+
"char": "s",
|
|
6317
|
+
"description": "Sys ID of the start activity",
|
|
6318
|
+
"name": "start-activity",
|
|
6319
|
+
"required": true,
|
|
5728
6320
|
"hasDynamicHelp": false,
|
|
5729
6321
|
"multiple": false,
|
|
5730
6322
|
"type": "option"
|
|
5731
6323
|
},
|
|
5732
|
-
"
|
|
5733
|
-
"char": "
|
|
5734
|
-
"description": "
|
|
5735
|
-
"name": "
|
|
6324
|
+
"version-id": {
|
|
6325
|
+
"char": "v",
|
|
6326
|
+
"description": "Sys ID of the workflow version to publish",
|
|
6327
|
+
"name": "version-id",
|
|
5736
6328
|
"required": true,
|
|
5737
6329
|
"hasDynamicHelp": false,
|
|
5738
6330
|
"multiple": false,
|
|
@@ -5741,7 +6333,7 @@
|
|
|
5741
6333
|
},
|
|
5742
6334
|
"hasDynamicHelp": false,
|
|
5743
6335
|
"hiddenAliases": [],
|
|
5744
|
-
"id": "
|
|
6336
|
+
"id": "workflow:publish",
|
|
5745
6337
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5746
6338
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5747
6339
|
"pluginType": "core",
|
|
@@ -5751,33 +6343,34 @@
|
|
|
5751
6343
|
"relativePath": [
|
|
5752
6344
|
"dist",
|
|
5753
6345
|
"commands",
|
|
5754
|
-
"
|
|
5755
|
-
"
|
|
6346
|
+
"workflow",
|
|
6347
|
+
"publish.js"
|
|
5756
6348
|
]
|
|
5757
6349
|
},
|
|
5758
|
-
"
|
|
6350
|
+
"xml:export": {
|
|
5759
6351
|
"aliases": [],
|
|
5760
6352
|
"args": {},
|
|
5761
|
-
"description": "
|
|
6353
|
+
"description": "Export a single ServiceNow record as XML.\n\nDownloads the XML representation of a specific record from a ServiceNow table. Without --output, the XML is printed to stdout. With --output, the XML is written to the specified file path.\n\nFeatures:\n • Export any record by table and sys_id\n • Print XML to stdout for piping to other tools\n • Save directly to a file with --output\n • JSON output mode for CI/CD integration",
|
|
5762
6354
|
"examples": [
|
|
5763
6355
|
{
|
|
5764
|
-
"
|
|
5765
|
-
"
|
|
6356
|
+
"description": "Export a record to stdout",
|
|
6357
|
+
"command": "<%= config.bin %> <%= command.id %> --table sys_script_include --sys-id abc123def456 --auth dev"
|
|
5766
6358
|
},
|
|
5767
6359
|
{
|
|
5768
|
-
"
|
|
5769
|
-
"
|
|
6360
|
+
"description": "Export and save to a file",
|
|
6361
|
+
"command": "<%= config.bin %> <%= command.id %> --table incident --sys-id abc123 --output ./export.xml --auth dev"
|
|
5770
6362
|
},
|
|
5771
6363
|
{
|
|
5772
|
-
"
|
|
5773
|
-
"
|
|
6364
|
+
"description": "Export as JSON metadata",
|
|
6365
|
+
"command": "<%= config.bin %> <%= command.id %> --table sys_script --sys-id abc123 --json --auth dev"
|
|
5774
6366
|
}
|
|
5775
6367
|
],
|
|
5776
6368
|
"flags": {
|
|
5777
6369
|
"json": {
|
|
5778
|
-
"
|
|
5779
|
-
"
|
|
6370
|
+
"char": "j",
|
|
6371
|
+
"description": "Output results as JSON",
|
|
5780
6372
|
"name": "json",
|
|
6373
|
+
"required": false,
|
|
5781
6374
|
"allowNo": false,
|
|
5782
6375
|
"type": "boolean"
|
|
5783
6376
|
},
|
|
@@ -5790,6 +6383,14 @@
|
|
|
5790
6383
|
"multiple": false,
|
|
5791
6384
|
"type": "option"
|
|
5792
6385
|
},
|
|
6386
|
+
"cred-store": {
|
|
6387
|
+
"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.",
|
|
6388
|
+
"helpGroup": "GLOBAL",
|
|
6389
|
+
"name": "cred-store",
|
|
6390
|
+
"required": false,
|
|
6391
|
+
"allowNo": false,
|
|
6392
|
+
"type": "boolean"
|
|
6393
|
+
},
|
|
5793
6394
|
"log-level": {
|
|
5794
6395
|
"helpGroup": "GLOBAL",
|
|
5795
6396
|
"name": "log-level",
|
|
@@ -5806,10 +6407,28 @@
|
|
|
5806
6407
|
],
|
|
5807
6408
|
"type": "option"
|
|
5808
6409
|
},
|
|
5809
|
-
"
|
|
6410
|
+
"table": {
|
|
6411
|
+
"char": "t",
|
|
6412
|
+
"description": "Table name of the record to export",
|
|
6413
|
+
"name": "table",
|
|
6414
|
+
"required": true,
|
|
6415
|
+
"hasDynamicHelp": false,
|
|
6416
|
+
"multiple": false,
|
|
6417
|
+
"type": "option"
|
|
6418
|
+
},
|
|
6419
|
+
"sys-id": {
|
|
5810
6420
|
"char": "s",
|
|
5811
|
-
"description": "
|
|
5812
|
-
"name": "
|
|
6421
|
+
"description": "Sys ID of the record to export",
|
|
6422
|
+
"name": "sys-id",
|
|
6423
|
+
"required": true,
|
|
6424
|
+
"hasDynamicHelp": false,
|
|
6425
|
+
"multiple": false,
|
|
6426
|
+
"type": "option"
|
|
6427
|
+
},
|
|
6428
|
+
"output": {
|
|
6429
|
+
"char": "o",
|
|
6430
|
+
"description": "File path to write the exported XML to. If omitted, XML is printed to stdout.",
|
|
6431
|
+
"name": "output",
|
|
5813
6432
|
"required": false,
|
|
5814
6433
|
"hasDynamicHelp": false,
|
|
5815
6434
|
"multiple": false,
|
|
@@ -5818,7 +6437,7 @@
|
|
|
5818
6437
|
},
|
|
5819
6438
|
"hasDynamicHelp": false,
|
|
5820
6439
|
"hiddenAliases": [],
|
|
5821
|
-
"id": "
|
|
6440
|
+
"id": "xml:export",
|
|
5822
6441
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5823
6442
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5824
6443
|
"pluginType": "core",
|
|
@@ -5828,33 +6447,30 @@
|
|
|
5828
6447
|
"relativePath": [
|
|
5829
6448
|
"dist",
|
|
5830
6449
|
"commands",
|
|
5831
|
-
"
|
|
5832
|
-
"
|
|
6450
|
+
"xml",
|
|
6451
|
+
"export.js"
|
|
5833
6452
|
]
|
|
5834
6453
|
},
|
|
5835
|
-
"
|
|
6454
|
+
"xml:import": {
|
|
5836
6455
|
"aliases": [],
|
|
5837
6456
|
"args": {},
|
|
5838
|
-
"description": "
|
|
6457
|
+
"description": "Import XML records into a ServiceNow instance.\n\nReads an XML file and imports its contents into the specified target table. The XML should be in ServiceNow unload format.\n\nFeatures:\n • Import from local XML files\n • Target a specific table\n • JSON output mode for CI/CD integration",
|
|
5839
6458
|
"examples": [
|
|
5840
6459
|
{
|
|
5841
|
-
"
|
|
5842
|
-
"
|
|
5843
|
-
},
|
|
5844
|
-
{
|
|
5845
|
-
"command": "<%= config.bin %> <%= command.id %> --query \"state=in progress\" --limit 50 --auth dev-instance",
|
|
5846
|
-
"description": "List update sets with a custom query filter"
|
|
6460
|
+
"description": "Import records from an XML file",
|
|
6461
|
+
"command": "<%= config.bin %> <%= command.id %> --file ./export.xml --table sys_script_include --auth dev"
|
|
5847
6462
|
},
|
|
5848
6463
|
{
|
|
5849
|
-
"
|
|
5850
|
-
"
|
|
6464
|
+
"description": "Import with JSON output",
|
|
6465
|
+
"command": "<%= config.bin %> <%= command.id %> --file ./records.xml --table incident --json --auth dev"
|
|
5851
6466
|
}
|
|
5852
6467
|
],
|
|
5853
6468
|
"flags": {
|
|
5854
6469
|
"json": {
|
|
5855
|
-
"
|
|
5856
|
-
"
|
|
6470
|
+
"char": "j",
|
|
6471
|
+
"description": "Output results as JSON",
|
|
5857
6472
|
"name": "json",
|
|
6473
|
+
"required": false,
|
|
5858
6474
|
"allowNo": false,
|
|
5859
6475
|
"type": "boolean"
|
|
5860
6476
|
},
|
|
@@ -5867,6 +6483,14 @@
|
|
|
5867
6483
|
"multiple": false,
|
|
5868
6484
|
"type": "option"
|
|
5869
6485
|
},
|
|
6486
|
+
"cred-store": {
|
|
6487
|
+
"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.",
|
|
6488
|
+
"helpGroup": "GLOBAL",
|
|
6489
|
+
"name": "cred-store",
|
|
6490
|
+
"required": false,
|
|
6491
|
+
"allowNo": false,
|
|
6492
|
+
"type": "boolean"
|
|
6493
|
+
},
|
|
5870
6494
|
"log-level": {
|
|
5871
6495
|
"helpGroup": "GLOBAL",
|
|
5872
6496
|
"name": "log-level",
|
|
@@ -5883,20 +6507,20 @@
|
|
|
5883
6507
|
],
|
|
5884
6508
|
"type": "option"
|
|
5885
6509
|
},
|
|
5886
|
-
"
|
|
5887
|
-
"
|
|
5888
|
-
"
|
|
5889
|
-
"
|
|
5890
|
-
"
|
|
6510
|
+
"file": {
|
|
6511
|
+
"char": "f",
|
|
6512
|
+
"description": "Path to the XML file to import",
|
|
6513
|
+
"name": "file",
|
|
6514
|
+
"required": true,
|
|
5891
6515
|
"hasDynamicHelp": false,
|
|
5892
6516
|
"multiple": false,
|
|
5893
6517
|
"type": "option"
|
|
5894
6518
|
},
|
|
5895
|
-
"
|
|
5896
|
-
"char": "
|
|
5897
|
-
"description": "
|
|
5898
|
-
"name": "
|
|
5899
|
-
"required":
|
|
6519
|
+
"table": {
|
|
6520
|
+
"char": "t",
|
|
6521
|
+
"description": "Target table to import records into",
|
|
6522
|
+
"name": "table",
|
|
6523
|
+
"required": true,
|
|
5900
6524
|
"hasDynamicHelp": false,
|
|
5901
6525
|
"multiple": false,
|
|
5902
6526
|
"type": "option"
|
|
@@ -5904,7 +6528,7 @@
|
|
|
5904
6528
|
},
|
|
5905
6529
|
"hasDynamicHelp": false,
|
|
5906
6530
|
"hiddenAliases": [],
|
|
5907
|
-
"id": "
|
|
6531
|
+
"id": "xml:import",
|
|
5908
6532
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5909
6533
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5910
6534
|
"pluginType": "core",
|
|
@@ -5914,22 +6538,22 @@
|
|
|
5914
6538
|
"relativePath": [
|
|
5915
6539
|
"dist",
|
|
5916
6540
|
"commands",
|
|
5917
|
-
"
|
|
5918
|
-
"
|
|
6541
|
+
"xml",
|
|
6542
|
+
"import.js"
|
|
5919
6543
|
]
|
|
5920
6544
|
},
|
|
5921
|
-
"
|
|
6545
|
+
"task:approve": {
|
|
5922
6546
|
"aliases": [],
|
|
5923
6547
|
"args": {},
|
|
5924
|
-
"description": "
|
|
6548
|
+
"description": "Approve a ServiceNow change request.\n\nThis command approves a change request identified by its number. You can optionally provide approval comments.\n\nFeatures:\n - Approve change requests\n - Optionally add approval comments\n - Auto-resolves change request number to sys_id",
|
|
5925
6549
|
"examples": [
|
|
5926
6550
|
{
|
|
5927
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5928
|
-
"description": "
|
|
6551
|
+
"command": "<%= config.bin %> <%= command.id %> --number CHG0010001 --auth dev",
|
|
6552
|
+
"description": "Approve a change request"
|
|
5929
6553
|
},
|
|
5930
6554
|
{
|
|
5931
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5932
|
-
"description": "
|
|
6555
|
+
"command": "<%= config.bin %> <%= command.id %> -n CHG0010001 -c \"Looks good, approved\" --auth dev",
|
|
6556
|
+
"description": "Approve a change request with comments"
|
|
5933
6557
|
}
|
|
5934
6558
|
],
|
|
5935
6559
|
"flags": {
|
|
@@ -5949,6 +6573,14 @@
|
|
|
5949
6573
|
"multiple": false,
|
|
5950
6574
|
"type": "option"
|
|
5951
6575
|
},
|
|
6576
|
+
"cred-store": {
|
|
6577
|
+
"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.",
|
|
6578
|
+
"helpGroup": "GLOBAL",
|
|
6579
|
+
"name": "cred-store",
|
|
6580
|
+
"required": false,
|
|
6581
|
+
"allowNo": false,
|
|
6582
|
+
"type": "boolean"
|
|
6583
|
+
},
|
|
5952
6584
|
"log-level": {
|
|
5953
6585
|
"helpGroup": "GLOBAL",
|
|
5954
6586
|
"name": "log-level",
|
|
@@ -5965,10 +6597,19 @@
|
|
|
5965
6597
|
],
|
|
5966
6598
|
"type": "option"
|
|
5967
6599
|
},
|
|
5968
|
-
"
|
|
5969
|
-
"char": "
|
|
5970
|
-
"description": "
|
|
5971
|
-
"name": "
|
|
6600
|
+
"comments": {
|
|
6601
|
+
"char": "c",
|
|
6602
|
+
"description": "Approval comments",
|
|
6603
|
+
"name": "comments",
|
|
6604
|
+
"required": false,
|
|
6605
|
+
"hasDynamicHelp": false,
|
|
6606
|
+
"multiple": false,
|
|
6607
|
+
"type": "option"
|
|
6608
|
+
},
|
|
6609
|
+
"number": {
|
|
6610
|
+
"char": "n",
|
|
6611
|
+
"description": "Change request number (e.g., CHG0010001)",
|
|
6612
|
+
"name": "number",
|
|
5972
6613
|
"required": true,
|
|
5973
6614
|
"hasDynamicHelp": false,
|
|
5974
6615
|
"multiple": false,
|
|
@@ -5977,7 +6618,7 @@
|
|
|
5977
6618
|
},
|
|
5978
6619
|
"hasDynamicHelp": false,
|
|
5979
6620
|
"hiddenAliases": [],
|
|
5980
|
-
"id": "
|
|
6621
|
+
"id": "task:approve",
|
|
5981
6622
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
5982
6623
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
5983
6624
|
"pluginType": "core",
|
|
@@ -5987,26 +6628,26 @@
|
|
|
5987
6628
|
"relativePath": [
|
|
5988
6629
|
"dist",
|
|
5989
6630
|
"commands",
|
|
5990
|
-
"
|
|
5991
|
-
"
|
|
6631
|
+
"task",
|
|
6632
|
+
"approve.js"
|
|
5992
6633
|
]
|
|
5993
6634
|
},
|
|
5994
|
-
"
|
|
6635
|
+
"task:assign": {
|
|
5995
6636
|
"aliases": [],
|
|
5996
6637
|
"args": {},
|
|
5997
|
-
"description": "
|
|
6638
|
+
"description": "Assign a ServiceNow task to a user or group.\n\nThis command assigns a task record identified by its number to a specified user and/or group. You can assign to a user, a group, or both simultaneously.\n\nFeatures:\n - Assign tasks to individual users\n - Assign tasks to assignment groups\n - Assign to both user and group at once\n - Supports any task-based table\n - Auto-resolves task number to sys_id",
|
|
5998
6639
|
"examples": [
|
|
5999
6640
|
{
|
|
6000
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6001
|
-
"description": "
|
|
6641
|
+
"command": "<%= config.bin %> <%= command.id %> --number INC0010001 --user admin --auth dev",
|
|
6642
|
+
"description": "Assign an incident to a user"
|
|
6002
6643
|
},
|
|
6003
6644
|
{
|
|
6004
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6005
|
-
"description": "
|
|
6645
|
+
"command": "<%= config.bin %> <%= command.id %> -n INC0010001 -u admin -g \"Service Desk\" --auth dev",
|
|
6646
|
+
"description": "Assign an incident to a user and group"
|
|
6006
6647
|
},
|
|
6007
6648
|
{
|
|
6008
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6009
|
-
"description": "
|
|
6649
|
+
"command": "<%= config.bin %> <%= command.id %> --number CHG0010001 --table change_request --user admin --auth dev",
|
|
6650
|
+
"description": "Assign a change request to a user"
|
|
6010
6651
|
}
|
|
6011
6652
|
],
|
|
6012
6653
|
"flags": {
|
|
@@ -6026,6 +6667,14 @@
|
|
|
6026
6667
|
"multiple": false,
|
|
6027
6668
|
"type": "option"
|
|
6028
6669
|
},
|
|
6670
|
+
"cred-store": {
|
|
6671
|
+
"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.",
|
|
6672
|
+
"helpGroup": "GLOBAL",
|
|
6673
|
+
"name": "cred-store",
|
|
6674
|
+
"required": false,
|
|
6675
|
+
"allowNo": false,
|
|
6676
|
+
"type": "boolean"
|
|
6677
|
+
},
|
|
6029
6678
|
"log-level": {
|
|
6030
6679
|
"helpGroup": "GLOBAL",
|
|
6031
6680
|
"name": "log-level",
|
|
@@ -6042,25 +6691,37 @@
|
|
|
6042
6691
|
],
|
|
6043
6692
|
"type": "option"
|
|
6044
6693
|
},
|
|
6045
|
-
"
|
|
6046
|
-
"
|
|
6047
|
-
"
|
|
6694
|
+
"group": {
|
|
6695
|
+
"char": "g",
|
|
6696
|
+
"description": "Assignment group",
|
|
6697
|
+
"name": "group",
|
|
6048
6698
|
"required": false,
|
|
6049
6699
|
"hasDynamicHelp": false,
|
|
6050
6700
|
"multiple": false,
|
|
6051
6701
|
"type": "option"
|
|
6052
6702
|
},
|
|
6053
|
-
"
|
|
6054
|
-
"
|
|
6055
|
-
"
|
|
6703
|
+
"number": {
|
|
6704
|
+
"char": "n",
|
|
6705
|
+
"description": "Task number (e.g., INC0010001)",
|
|
6706
|
+
"name": "number",
|
|
6707
|
+
"required": true,
|
|
6708
|
+
"hasDynamicHelp": false,
|
|
6709
|
+
"multiple": false,
|
|
6710
|
+
"type": "option"
|
|
6711
|
+
},
|
|
6712
|
+
"table": {
|
|
6713
|
+
"description": "ServiceNow table name",
|
|
6714
|
+
"name": "table",
|
|
6056
6715
|
"required": false,
|
|
6716
|
+
"default": "task",
|
|
6057
6717
|
"hasDynamicHelp": false,
|
|
6058
6718
|
"multiple": false,
|
|
6059
6719
|
"type": "option"
|
|
6060
6720
|
},
|
|
6061
|
-
"
|
|
6062
|
-
"
|
|
6063
|
-
"
|
|
6721
|
+
"user": {
|
|
6722
|
+
"char": "u",
|
|
6723
|
+
"description": "User to assign the task to",
|
|
6724
|
+
"name": "user",
|
|
6064
6725
|
"required": true,
|
|
6065
6726
|
"hasDynamicHelp": false,
|
|
6066
6727
|
"multiple": false,
|
|
@@ -6069,7 +6730,7 @@
|
|
|
6069
6730
|
},
|
|
6070
6731
|
"hasDynamicHelp": false,
|
|
6071
6732
|
"hiddenAliases": [],
|
|
6072
|
-
"id": "
|
|
6733
|
+
"id": "task:assign",
|
|
6073
6734
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6074
6735
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6075
6736
|
"pluginType": "core",
|
|
@@ -6079,22 +6740,22 @@
|
|
|
6079
6740
|
"relativePath": [
|
|
6080
6741
|
"dist",
|
|
6081
6742
|
"commands",
|
|
6082
|
-
"
|
|
6083
|
-
"
|
|
6743
|
+
"task",
|
|
6744
|
+
"assign.js"
|
|
6084
6745
|
]
|
|
6085
6746
|
},
|
|
6086
|
-
"
|
|
6747
|
+
"task:close": {
|
|
6087
6748
|
"aliases": [],
|
|
6088
6749
|
"args": {},
|
|
6089
|
-
"description": "
|
|
6750
|
+
"description": "Close a ServiceNow incident.\n\nThis command closes an incident identified by its number, setting the close notes and optionally a close code. The incident must be in a state that allows closure.\n\nFeatures:\n - Close incidents with close notes\n - Optionally specify a close code\n - Auto-resolves incident number to sys_id",
|
|
6090
6751
|
"examples": [
|
|
6091
6752
|
{
|
|
6092
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6093
|
-
"description": "
|
|
6753
|
+
"command": "<%= config.bin %> <%= command.id %> --number INC0010001 --notes \"Issue confirmed resolved by user\" --auth dev",
|
|
6754
|
+
"description": "Close an incident with close notes"
|
|
6094
6755
|
},
|
|
6095
6756
|
{
|
|
6096
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
6097
|
-
"description": "
|
|
6757
|
+
"command": "<%= config.bin %> <%= command.id %> -n INC0010001 --notes \"Closed\" --close-code \"Solved (Permanently)\" --auth dev",
|
|
6758
|
+
"description": "Close with a specific close code"
|
|
6098
6759
|
}
|
|
6099
6760
|
],
|
|
6100
6761
|
"flags": {
|
|
@@ -6114,6 +6775,14 @@
|
|
|
6114
6775
|
"multiple": false,
|
|
6115
6776
|
"type": "option"
|
|
6116
6777
|
},
|
|
6778
|
+
"cred-store": {
|
|
6779
|
+
"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.",
|
|
6780
|
+
"helpGroup": "GLOBAL",
|
|
6781
|
+
"name": "cred-store",
|
|
6782
|
+
"required": false,
|
|
6783
|
+
"allowNo": false,
|
|
6784
|
+
"type": "boolean"
|
|
6785
|
+
},
|
|
6117
6786
|
"log-level": {
|
|
6118
6787
|
"helpGroup": "GLOBAL",
|
|
6119
6788
|
"name": "log-level",
|
|
@@ -6130,10 +6799,26 @@
|
|
|
6130
6799
|
],
|
|
6131
6800
|
"type": "option"
|
|
6132
6801
|
},
|
|
6133
|
-
"
|
|
6134
|
-
"
|
|
6135
|
-
"
|
|
6136
|
-
"
|
|
6802
|
+
"close-code": {
|
|
6803
|
+
"description": "Close code for the closure",
|
|
6804
|
+
"name": "close-code",
|
|
6805
|
+
"required": false,
|
|
6806
|
+
"hasDynamicHelp": false,
|
|
6807
|
+
"multiple": false,
|
|
6808
|
+
"type": "option"
|
|
6809
|
+
},
|
|
6810
|
+
"notes": {
|
|
6811
|
+
"description": "Close notes",
|
|
6812
|
+
"name": "notes",
|
|
6813
|
+
"required": true,
|
|
6814
|
+
"hasDynamicHelp": false,
|
|
6815
|
+
"multiple": false,
|
|
6816
|
+
"type": "option"
|
|
6817
|
+
},
|
|
6818
|
+
"number": {
|
|
6819
|
+
"char": "n",
|
|
6820
|
+
"description": "Incident number (e.g., INC0010001)",
|
|
6821
|
+
"name": "number",
|
|
6137
6822
|
"required": true,
|
|
6138
6823
|
"hasDynamicHelp": false,
|
|
6139
6824
|
"multiple": false,
|
|
@@ -6142,7 +6827,7 @@
|
|
|
6142
6827
|
},
|
|
6143
6828
|
"hasDynamicHelp": false,
|
|
6144
6829
|
"hiddenAliases": [],
|
|
6145
|
-
"id": "
|
|
6830
|
+
"id": "task:close",
|
|
6146
6831
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6147
6832
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6148
6833
|
"pluginType": "core",
|
|
@@ -6152,22 +6837,26 @@
|
|
|
6152
6837
|
"relativePath": [
|
|
6153
6838
|
"dist",
|
|
6154
6839
|
"commands",
|
|
6155
|
-
"
|
|
6156
|
-
"
|
|
6840
|
+
"task",
|
|
6841
|
+
"close.js"
|
|
6157
6842
|
]
|
|
6158
6843
|
},
|
|
6159
|
-
"
|
|
6844
|
+
"task:comment": {
|
|
6160
6845
|
"aliases": [],
|
|
6161
6846
|
"args": {},
|
|
6162
|
-
"description": "
|
|
6847
|
+
"description": "Add a comment or work note to a ServiceNow task.\n\nThis command adds a comment or work note to a task record identified by its number. By default, comments are added as customer-visible comments. Use the --work-note flag to add an internal work note instead.\n\nFeatures:\n - Add customer-visible comments to any task\n - Add internal work notes visible only to fulfiller teams\n - Supports any task-based table (incident, change_request, etc.)\n - Auto-resolves task number to sys_id",
|
|
6163
6848
|
"examples": [
|
|
6164
6849
|
{
|
|
6165
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6166
|
-
"description": "
|
|
6850
|
+
"command": "<%= config.bin %> <%= command.id %> --number INC0010001 --comment \"Investigating the issue\" --auth dev",
|
|
6851
|
+
"description": "Add a comment to an incident"
|
|
6167
6852
|
},
|
|
6168
6853
|
{
|
|
6169
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
6170
|
-
"description": "
|
|
6854
|
+
"command": "<%= config.bin %> <%= command.id %> -n INC0010001 -c \"Internal update\" --work-note --auth dev",
|
|
6855
|
+
"description": "Add a work note to an incident"
|
|
6856
|
+
},
|
|
6857
|
+
{
|
|
6858
|
+
"command": "<%= config.bin %> <%= command.id %> --number CHG0010001 --table change_request --comment \"Approved\" --auth dev",
|
|
6859
|
+
"description": "Add a comment to a change request"
|
|
6171
6860
|
}
|
|
6172
6861
|
],
|
|
6173
6862
|
"flags": {
|
|
@@ -6187,6 +6876,14 @@
|
|
|
6187
6876
|
"multiple": false,
|
|
6188
6877
|
"type": "option"
|
|
6189
6878
|
},
|
|
6879
|
+
"cred-store": {
|
|
6880
|
+
"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.",
|
|
6881
|
+
"helpGroup": "GLOBAL",
|
|
6882
|
+
"name": "cred-store",
|
|
6883
|
+
"required": false,
|
|
6884
|
+
"allowNo": false,
|
|
6885
|
+
"type": "boolean"
|
|
6886
|
+
},
|
|
6190
6887
|
"log-level": {
|
|
6191
6888
|
"helpGroup": "GLOBAL",
|
|
6192
6889
|
"name": "log-level",
|
|
@@ -6203,28 +6900,44 @@
|
|
|
6203
6900
|
],
|
|
6204
6901
|
"type": "option"
|
|
6205
6902
|
},
|
|
6206
|
-
"
|
|
6207
|
-
"char": "
|
|
6208
|
-
"description": "
|
|
6209
|
-
"name": "
|
|
6903
|
+
"comment": {
|
|
6904
|
+
"char": "c",
|
|
6905
|
+
"description": "Comment text to add",
|
|
6906
|
+
"name": "comment",
|
|
6210
6907
|
"required": true,
|
|
6211
6908
|
"hasDynamicHelp": false,
|
|
6212
6909
|
"multiple": false,
|
|
6213
6910
|
"type": "option"
|
|
6214
6911
|
},
|
|
6215
|
-
"
|
|
6216
|
-
"char": "
|
|
6217
|
-
"description": "
|
|
6218
|
-
"name": "
|
|
6912
|
+
"number": {
|
|
6913
|
+
"char": "n",
|
|
6914
|
+
"description": "Task number (e.g., INC0010001)",
|
|
6915
|
+
"name": "number",
|
|
6219
6916
|
"required": true,
|
|
6220
6917
|
"hasDynamicHelp": false,
|
|
6221
6918
|
"multiple": false,
|
|
6222
6919
|
"type": "option"
|
|
6920
|
+
},
|
|
6921
|
+
"table": {
|
|
6922
|
+
"description": "ServiceNow table name",
|
|
6923
|
+
"name": "table",
|
|
6924
|
+
"required": false,
|
|
6925
|
+
"default": "task",
|
|
6926
|
+
"hasDynamicHelp": false,
|
|
6927
|
+
"multiple": false,
|
|
6928
|
+
"type": "option"
|
|
6929
|
+
},
|
|
6930
|
+
"work-note": {
|
|
6931
|
+
"description": "Add as work note instead of comment",
|
|
6932
|
+
"name": "work-note",
|
|
6933
|
+
"required": false,
|
|
6934
|
+
"allowNo": false,
|
|
6935
|
+
"type": "boolean"
|
|
6223
6936
|
}
|
|
6224
6937
|
},
|
|
6225
6938
|
"hasDynamicHelp": false,
|
|
6226
6939
|
"hiddenAliases": [],
|
|
6227
|
-
"id": "
|
|
6940
|
+
"id": "task:comment",
|
|
6228
6941
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6229
6942
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6230
6943
|
"pluginType": "core",
|
|
@@ -6234,34 +6947,33 @@
|
|
|
6234
6947
|
"relativePath": [
|
|
6235
6948
|
"dist",
|
|
6236
6949
|
"commands",
|
|
6237
|
-
"
|
|
6238
|
-
"
|
|
6950
|
+
"task",
|
|
6951
|
+
"comment.js"
|
|
6239
6952
|
]
|
|
6240
6953
|
},
|
|
6241
|
-
"
|
|
6954
|
+
"task:find": {
|
|
6242
6955
|
"aliases": [],
|
|
6243
6956
|
"args": {},
|
|
6244
|
-
"description": "
|
|
6957
|
+
"description": "Find a ServiceNow task by its number.\n\nThis command looks up a task record by its number in the specified table. Returns the full task details including sys_id, description, state, and assignment information.\n\nFeatures:\n - Look up any task by number\n - Supports any task-based table\n - JSON output for scripting and automation",
|
|
6245
6958
|
"examples": [
|
|
6246
6959
|
{
|
|
6247
|
-
"
|
|
6248
|
-
"
|
|
6960
|
+
"command": "<%= config.bin %> <%= command.id %> --number INC0010001 --auth dev",
|
|
6961
|
+
"description": "Find an incident by number"
|
|
6249
6962
|
},
|
|
6250
6963
|
{
|
|
6251
|
-
"
|
|
6252
|
-
"
|
|
6964
|
+
"command": "<%= config.bin %> <%= command.id %> -n CHG0010001 --table change_request --auth dev",
|
|
6965
|
+
"description": "Find a change request by number"
|
|
6253
6966
|
},
|
|
6254
6967
|
{
|
|
6255
|
-
"
|
|
6256
|
-
"
|
|
6968
|
+
"command": "<%= config.bin %> <%= command.id %> -n INC0010001 --json --auth dev",
|
|
6969
|
+
"description": "Find an incident and output as JSON"
|
|
6257
6970
|
}
|
|
6258
6971
|
],
|
|
6259
6972
|
"flags": {
|
|
6260
6973
|
"json": {
|
|
6261
|
-
"
|
|
6262
|
-
"
|
|
6974
|
+
"description": "Format output as json.",
|
|
6975
|
+
"helpGroup": "GLOBAL",
|
|
6263
6976
|
"name": "json",
|
|
6264
|
-
"required": false,
|
|
6265
6977
|
"allowNo": false,
|
|
6266
6978
|
"type": "boolean"
|
|
6267
6979
|
},
|
|
@@ -6274,6 +6986,14 @@
|
|
|
6274
6986
|
"multiple": false,
|
|
6275
6987
|
"type": "option"
|
|
6276
6988
|
},
|
|
6989
|
+
"cred-store": {
|
|
6990
|
+
"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.",
|
|
6991
|
+
"helpGroup": "GLOBAL",
|
|
6992
|
+
"name": "cred-store",
|
|
6993
|
+
"required": false,
|
|
6994
|
+
"allowNo": false,
|
|
6995
|
+
"type": "boolean"
|
|
6996
|
+
},
|
|
6277
6997
|
"log-level": {
|
|
6278
6998
|
"helpGroup": "GLOBAL",
|
|
6279
6999
|
"name": "log-level",
|
|
@@ -6290,29 +7010,20 @@
|
|
|
6290
7010
|
],
|
|
6291
7011
|
"type": "option"
|
|
6292
7012
|
},
|
|
6293
|
-
"
|
|
6294
|
-
"char": "
|
|
6295
|
-
"description": "
|
|
6296
|
-
"name": "
|
|
6297
|
-
"required": true,
|
|
6298
|
-
"hasDynamicHelp": false,
|
|
6299
|
-
"multiple": false,
|
|
6300
|
-
"type": "option"
|
|
6301
|
-
},
|
|
6302
|
-
"sys-id": {
|
|
6303
|
-
"char": "s",
|
|
6304
|
-
"description": "Sys ID of the record to export",
|
|
6305
|
-
"name": "sys-id",
|
|
7013
|
+
"number": {
|
|
7014
|
+
"char": "n",
|
|
7015
|
+
"description": "Task number (e.g., INC0010001, CHG0010001)",
|
|
7016
|
+
"name": "number",
|
|
6306
7017
|
"required": true,
|
|
6307
7018
|
"hasDynamicHelp": false,
|
|
6308
7019
|
"multiple": false,
|
|
6309
7020
|
"type": "option"
|
|
6310
7021
|
},
|
|
6311
|
-
"
|
|
6312
|
-
"
|
|
6313
|
-
"
|
|
6314
|
-
"name": "output",
|
|
7022
|
+
"table": {
|
|
7023
|
+
"description": "ServiceNow table name",
|
|
7024
|
+
"name": "table",
|
|
6315
7025
|
"required": false,
|
|
7026
|
+
"default": "task",
|
|
6316
7027
|
"hasDynamicHelp": false,
|
|
6317
7028
|
"multiple": false,
|
|
6318
7029
|
"type": "option"
|
|
@@ -6320,7 +7031,7 @@
|
|
|
6320
7031
|
},
|
|
6321
7032
|
"hasDynamicHelp": false,
|
|
6322
7033
|
"hiddenAliases": [],
|
|
6323
|
-
"id": "
|
|
7034
|
+
"id": "task:find",
|
|
6324
7035
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6325
7036
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6326
7037
|
"pluginType": "core",
|
|
@@ -6330,30 +7041,29 @@
|
|
|
6330
7041
|
"relativePath": [
|
|
6331
7042
|
"dist",
|
|
6332
7043
|
"commands",
|
|
6333
|
-
"
|
|
6334
|
-
"
|
|
7044
|
+
"task",
|
|
7045
|
+
"find.js"
|
|
6335
7046
|
]
|
|
6336
7047
|
},
|
|
6337
|
-
"
|
|
7048
|
+
"task:resolve": {
|
|
6338
7049
|
"aliases": [],
|
|
6339
7050
|
"args": {},
|
|
6340
|
-
"description": "
|
|
7051
|
+
"description": "Resolve a ServiceNow incident with resolution notes.\n\nThis command resolves an incident identified by its number, setting the resolution notes and optionally a close code. The incident must be in a state that allows resolution.\n\nFeatures:\n - Resolve incidents with resolution notes\n - Optionally specify a close code\n - Auto-resolves incident number to sys_id",
|
|
6341
7052
|
"examples": [
|
|
6342
7053
|
{
|
|
6343
|
-
"
|
|
6344
|
-
"
|
|
7054
|
+
"command": "<%= config.bin %> <%= command.id %> --number INC0010001 --notes \"Issue resolved by restarting the service\" --auth dev",
|
|
7055
|
+
"description": "Resolve an incident with resolution notes"
|
|
6345
7056
|
},
|
|
6346
7057
|
{
|
|
6347
|
-
"
|
|
6348
|
-
"
|
|
7058
|
+
"command": "<%= config.bin %> <%= command.id %> -n INC0010001 --notes \"Fixed\" --close-code \"Solved (Permanently)\" --auth dev",
|
|
7059
|
+
"description": "Resolve with a specific close code"
|
|
6349
7060
|
}
|
|
6350
7061
|
],
|
|
6351
7062
|
"flags": {
|
|
6352
7063
|
"json": {
|
|
6353
|
-
"
|
|
6354
|
-
"
|
|
7064
|
+
"description": "Format output as json.",
|
|
7065
|
+
"helpGroup": "GLOBAL",
|
|
6355
7066
|
"name": "json",
|
|
6356
|
-
"required": false,
|
|
6357
7067
|
"allowNo": false,
|
|
6358
7068
|
"type": "boolean"
|
|
6359
7069
|
},
|
|
@@ -6366,6 +7076,14 @@
|
|
|
6366
7076
|
"multiple": false,
|
|
6367
7077
|
"type": "option"
|
|
6368
7078
|
},
|
|
7079
|
+
"cred-store": {
|
|
7080
|
+
"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.",
|
|
7081
|
+
"helpGroup": "GLOBAL",
|
|
7082
|
+
"name": "cred-store",
|
|
7083
|
+
"required": false,
|
|
7084
|
+
"allowNo": false,
|
|
7085
|
+
"type": "boolean"
|
|
7086
|
+
},
|
|
6369
7087
|
"log-level": {
|
|
6370
7088
|
"helpGroup": "GLOBAL",
|
|
6371
7089
|
"name": "log-level",
|
|
@@ -6382,19 +7100,26 @@
|
|
|
6382
7100
|
],
|
|
6383
7101
|
"type": "option"
|
|
6384
7102
|
},
|
|
6385
|
-
"
|
|
6386
|
-
"
|
|
6387
|
-
"
|
|
6388
|
-
"
|
|
7103
|
+
"close-code": {
|
|
7104
|
+
"description": "Close code for the resolution",
|
|
7105
|
+
"name": "close-code",
|
|
7106
|
+
"required": false,
|
|
7107
|
+
"hasDynamicHelp": false,
|
|
7108
|
+
"multiple": false,
|
|
7109
|
+
"type": "option"
|
|
7110
|
+
},
|
|
7111
|
+
"notes": {
|
|
7112
|
+
"description": "Resolution notes",
|
|
7113
|
+
"name": "notes",
|
|
6389
7114
|
"required": true,
|
|
6390
7115
|
"hasDynamicHelp": false,
|
|
6391
7116
|
"multiple": false,
|
|
6392
7117
|
"type": "option"
|
|
6393
7118
|
},
|
|
6394
|
-
"
|
|
6395
|
-
"char": "
|
|
6396
|
-
"description": "
|
|
6397
|
-
"name": "
|
|
7119
|
+
"number": {
|
|
7120
|
+
"char": "n",
|
|
7121
|
+
"description": "Incident number (e.g., INC0010001)",
|
|
7122
|
+
"name": "number",
|
|
6398
7123
|
"required": true,
|
|
6399
7124
|
"hasDynamicHelp": false,
|
|
6400
7125
|
"multiple": false,
|
|
@@ -6403,7 +7128,7 @@
|
|
|
6403
7128
|
},
|
|
6404
7129
|
"hasDynamicHelp": false,
|
|
6405
7130
|
"hiddenAliases": [],
|
|
6406
|
-
"id": "
|
|
7131
|
+
"id": "task:resolve",
|
|
6407
7132
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6408
7133
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6409
7134
|
"pluginType": "core",
|
|
@@ -6413,10 +7138,10 @@
|
|
|
6413
7138
|
"relativePath": [
|
|
6414
7139
|
"dist",
|
|
6415
7140
|
"commands",
|
|
6416
|
-
"
|
|
6417
|
-
"
|
|
7141
|
+
"task",
|
|
7142
|
+
"resolve.js"
|
|
6418
7143
|
]
|
|
6419
7144
|
}
|
|
6420
7145
|
},
|
|
6421
|
-
"version": "
|
|
7146
|
+
"version": "5.0.0"
|
|
6422
7147
|
}
|