@sonisoft/now-sdk-ext-cli 5.7.0 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -81
- package/dist/commands/exec/index.d.ts +2 -0
- package/dist/commands/exec/index.d.ts.map +1 -1
- package/dist/commands/exec/index.js +24 -1
- package/dist/commands/exec/index.js.map +1 -1
- package/dist/common/scope-autocomplete.d.ts.map +1 -1
- package/dist/common/scope-autocomplete.js +5 -3
- package/dist/common/scope-autocomplete.js.map +1 -1
- package/dist/common/script-scope-error.d.ts +32 -0
- package/dist/common/script-scope-error.d.ts.map +1 -0
- package/dist/common/script-scope-error.js +46 -0
- package/dist/common/script-scope-error.js.map +1 -0
- package/oclif.manifest.json +624 -624
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -3160,7 +3160,7 @@
|
|
|
3160
3160
|
"aliases": [],
|
|
3161
3161
|
"args": {
|
|
3162
3162
|
"scope": {
|
|
3163
|
-
"description": "Scope to execute script in
|
|
3163
|
+
"description": "Scope to execute script in: \"global\", the scope of an application developed on the instance (sys_app), or a scope sys_id. Installed store apps cannot be used.",
|
|
3164
3164
|
"name": "scope",
|
|
3165
3165
|
"required": true
|
|
3166
3166
|
},
|
|
@@ -3170,7 +3170,7 @@
|
|
|
3170
3170
|
"required": false
|
|
3171
3171
|
}
|
|
3172
3172
|
},
|
|
3173
|
-
"description": "Execute JavaScript on a ServiceNow instance remotely using Scripts - Background.\n\nThis command allows you to run JavaScript either from files or interactively via REPL mode. It mimics the functionality of the Scripts - Background interface in ServiceNow, providing a way to execute scripts programmatically without manual interaction. The output is returned in real-time and can be piped to other commands or saved to files.\n\nModes:\n • File Mode: Provide a file path to execute scripts from a file\n • REPL Mode: Omit the file path to start an interactive session\n\nFeatures:\n • Execute local JavaScript files remotely\n • Interactive REPL for ad-hoc script execution\n • Script parameterization with {placeholder} replacement\n • Multi-line script support in REPL\n • Scope-aware execution (global or custom scope)\n • Real-time console output capture\n • Pipe-able output for command chaining\n • Debug logging support\n • Useful for data migration, testing, and administrative tasks\n\nScript Parameterization:\n Use {paramName} placeholders in your script files, then provide values via --params:\n • Supports any JSON-serializable values (strings, numbers, booleans)\n • Multiple parameters supported\n • All occurrences of each placeholder are replaced\n • Example: {token}, {username}, {environment}\n\nREPL Controls:\n • Press Enter to add a new line\n • Type .exec or press Ctrl+D to execute the script\n • Type .clear to clear the current input\n • Type .exit or press Ctrl+C twice to exit REPL\n\n⚠️ IMPORTANT SECURITY WARNING:\nThis command executes scripts with the same permissions and risks as using Scripts - Background directly\nin ServiceNow. Always:\n • Review scripts before execution\n • Test in non-production environments first\n • Use appropriate scoping to limit access\n • Be aware of data modification risks\n • Follow your organization's security policies\n • Never execute untrusted scripts\n\nScript Capabilities:\n Scripts run with full GlideSystem API access and can:\n • Query and modify database records\n • Create, update, and delete data\n • Execute business rules and workflows\n • Access all APIs available in Scripts - Background\n • Use gs, GlideRecord, GlideAggregate, and other server-side APIs",
|
|
3173
|
+
"description": "Execute JavaScript on a ServiceNow instance remotely using Scripts - Background.\n\nThis command allows you to run JavaScript either from files or interactively via REPL mode. It mimics the functionality of the Scripts - Background interface in ServiceNow, providing a way to execute scripts programmatically without manual interaction. The output is returned in real-time and can be piped to other commands or saved to files.\n\nModes:\n • File Mode: Provide a file path to execute scripts from a file\n • REPL Mode: Omit the file path to start an interactive session\n\nFeatures:\n • Execute local JavaScript files remotely\n • Interactive REPL for ad-hoc script execution\n • Script parameterization with {placeholder} replacement\n • Multi-line script support in REPL\n • Scope-aware execution (global or custom scope)\n • Real-time console output capture\n • Pipe-able output for command chaining\n • Debug logging support\n • Useful for data migration, testing, and administrative tasks\n\nScript Parameterization:\n Use {paramName} placeholders in your script files, then provide values via --params:\n • Supports any JSON-serializable values (strings, numbers, booleans)\n • Multiple parameters supported\n • All occurrences of each placeholder are replaced\n • Example: {token}, {username}, {environment}\n\nScopes:\n Scripts - Background runs in \"global\" or in an application developed on the instance (sys_app).\n Installed store/repository apps (sys_store_app) cannot be used: run in global and call their\n APIs fully qualified (e.g. sn_app.Util). An unusable scope fails before the script is sent.\n\nREPL Controls:\n • Press Enter to add a new line\n • Type .exec or press Ctrl+D to execute the script\n • Type .clear to clear the current input\n • Type .exit or press Ctrl+C twice to exit REPL\n\n⚠️ IMPORTANT SECURITY WARNING:\nThis command executes scripts with the same permissions and risks as using Scripts - Background directly\nin ServiceNow. Always:\n • Review scripts before execution\n • Test in non-production environments first\n • Use appropriate scoping to limit access\n • Be aware of data modification risks\n • Follow your organization's security policies\n • Never execute untrusted scripts\n\nScript Capabilities:\n Scripts run with full GlideSystem API access and can:\n • Query and modify database records\n • Create, update, and delete data\n • Execute business rules and workflows\n • Access all APIs available in Scripts - Background\n • Use gs, GlideRecord, GlideAggregate, and other server-side APIs",
|
|
3174
3174
|
"examples": [
|
|
3175
3175
|
{
|
|
3176
3176
|
"description": "Start REPL in global scope",
|
|
@@ -6601,22 +6601,22 @@
|
|
|
6601
6601
|
"validate-catalog.js"
|
|
6602
6602
|
]
|
|
6603
6603
|
},
|
|
6604
|
-
"
|
|
6604
|
+
"script-sync:pull": {
|
|
6605
6605
|
"aliases": [],
|
|
6606
6606
|
"args": {},
|
|
6607
|
-
"description": "
|
|
6607
|
+
"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",
|
|
6608
6608
|
"examples": [
|
|
6609
6609
|
{
|
|
6610
|
-
"
|
|
6611
|
-
"
|
|
6610
|
+
"description": "Pull a Script Include to auto-generated file name",
|
|
6611
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyScriptInclude --type sys_script_include --auth dev-instance"
|
|
6612
6612
|
},
|
|
6613
6613
|
{
|
|
6614
|
-
"
|
|
6615
|
-
"
|
|
6614
|
+
"description": "Pull a Business Rule to a specific file",
|
|
6615
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyBusinessRule --type sys_script --output ./scripts/my-rule.js --auth dev-instance"
|
|
6616
6616
|
},
|
|
6617
6617
|
{
|
|
6618
|
-
"
|
|
6619
|
-
"
|
|
6618
|
+
"description": "Pull a Client Script with JSON output",
|
|
6619
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyClientScript -t sys_script_client --json --auth dev-instance"
|
|
6620
6620
|
}
|
|
6621
6621
|
],
|
|
6622
6622
|
"flags": {
|
|
@@ -6701,18 +6701,44 @@
|
|
|
6701
6701
|
"allowNo": false,
|
|
6702
6702
|
"type": "boolean"
|
|
6703
6703
|
},
|
|
6704
|
-
"
|
|
6705
|
-
"char": "
|
|
6706
|
-
"description": "
|
|
6707
|
-
"name": "
|
|
6704
|
+
"name": {
|
|
6705
|
+
"char": "n",
|
|
6706
|
+
"description": "Name of the script to pull",
|
|
6707
|
+
"name": "name",
|
|
6708
|
+
"required": true,
|
|
6709
|
+
"hasDynamicHelp": false,
|
|
6710
|
+
"multiple": false,
|
|
6711
|
+
"type": "option"
|
|
6712
|
+
},
|
|
6713
|
+
"type": {
|
|
6714
|
+
"char": "t",
|
|
6715
|
+
"description": "Type of script to pull",
|
|
6716
|
+
"name": "type",
|
|
6717
|
+
"required": true,
|
|
6718
|
+
"hasDynamicHelp": false,
|
|
6719
|
+
"multiple": false,
|
|
6720
|
+
"options": [
|
|
6721
|
+
"sys_script_include",
|
|
6722
|
+
"sys_script",
|
|
6723
|
+
"sys_ui_script",
|
|
6724
|
+
"sys_ui_action",
|
|
6725
|
+
"sys_script_client"
|
|
6726
|
+
],
|
|
6727
|
+
"type": "option"
|
|
6728
|
+
},
|
|
6729
|
+
"output": {
|
|
6730
|
+
"char": "o",
|
|
6731
|
+
"description": "Output file path. If not specified, a file name is auto-generated.",
|
|
6732
|
+
"name": "output",
|
|
6708
6733
|
"required": false,
|
|
6709
|
-
"
|
|
6710
|
-
"
|
|
6734
|
+
"hasDynamicHelp": false,
|
|
6735
|
+
"multiple": false,
|
|
6736
|
+
"type": "option"
|
|
6711
6737
|
}
|
|
6712
6738
|
},
|
|
6713
6739
|
"hasDynamicHelp": false,
|
|
6714
6740
|
"hiddenAliases": [],
|
|
6715
|
-
"id": "
|
|
6741
|
+
"id": "script-sync:pull",
|
|
6716
6742
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6717
6743
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6718
6744
|
"pluginType": "core",
|
|
@@ -6722,22 +6748,26 @@
|
|
|
6722
6748
|
"relativePath": [
|
|
6723
6749
|
"dist",
|
|
6724
6750
|
"commands",
|
|
6725
|
-
"
|
|
6726
|
-
"
|
|
6751
|
+
"script-sync",
|
|
6752
|
+
"pull.js"
|
|
6727
6753
|
]
|
|
6728
6754
|
},
|
|
6729
|
-
"
|
|
6755
|
+
"script-sync:push": {
|
|
6730
6756
|
"aliases": [],
|
|
6731
6757
|
"args": {},
|
|
6732
|
-
"description": "
|
|
6758
|
+
"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",
|
|
6733
6759
|
"examples": [
|
|
6734
6760
|
{
|
|
6735
|
-
"
|
|
6736
|
-
"
|
|
6761
|
+
"description": "Push a Script Include from a local file",
|
|
6762
|
+
"command": "<%= config.bin %> <%= command.id %> --name MyScriptInclude --type sys_script_include --file ./scripts/MyScriptInclude.js --auth dev-instance"
|
|
6737
6763
|
},
|
|
6738
6764
|
{
|
|
6739
|
-
"
|
|
6740
|
-
"
|
|
6765
|
+
"description": "Push a Business Rule with short flags",
|
|
6766
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyBusinessRule -t sys_script -f ./scripts/my-rule.js -a dev-instance"
|
|
6767
|
+
},
|
|
6768
|
+
{
|
|
6769
|
+
"description": "Push a UI Script with JSON output",
|
|
6770
|
+
"command": "<%= config.bin %> <%= command.id %> -n MyUIScript -t sys_ui_script -f ./scripts/ui-script.js --json --auth dev-instance"
|
|
6741
6771
|
}
|
|
6742
6772
|
],
|
|
6743
6773
|
"flags": {
|
|
@@ -6822,10 +6852,35 @@
|
|
|
6822
6852
|
"allowNo": false,
|
|
6823
6853
|
"type": "boolean"
|
|
6824
6854
|
},
|
|
6825
|
-
"
|
|
6826
|
-
"char": "
|
|
6827
|
-
"description": "
|
|
6828
|
-
"name": "
|
|
6855
|
+
"name": {
|
|
6856
|
+
"char": "n",
|
|
6857
|
+
"description": "Name of the script to push",
|
|
6858
|
+
"name": "name",
|
|
6859
|
+
"required": true,
|
|
6860
|
+
"hasDynamicHelp": false,
|
|
6861
|
+
"multiple": false,
|
|
6862
|
+
"type": "option"
|
|
6863
|
+
},
|
|
6864
|
+
"type": {
|
|
6865
|
+
"char": "t",
|
|
6866
|
+
"description": "Type of script to push",
|
|
6867
|
+
"name": "type",
|
|
6868
|
+
"required": true,
|
|
6869
|
+
"hasDynamicHelp": false,
|
|
6870
|
+
"multiple": false,
|
|
6871
|
+
"options": [
|
|
6872
|
+
"sys_script_include",
|
|
6873
|
+
"sys_script",
|
|
6874
|
+
"sys_ui_script",
|
|
6875
|
+
"sys_ui_action",
|
|
6876
|
+
"sys_script_client"
|
|
6877
|
+
],
|
|
6878
|
+
"type": "option"
|
|
6879
|
+
},
|
|
6880
|
+
"file": {
|
|
6881
|
+
"char": "f",
|
|
6882
|
+
"description": "Path to the local script file to push",
|
|
6883
|
+
"name": "file",
|
|
6829
6884
|
"required": true,
|
|
6830
6885
|
"hasDynamicHelp": false,
|
|
6831
6886
|
"multiple": false,
|
|
@@ -6834,7 +6889,7 @@
|
|
|
6834
6889
|
},
|
|
6835
6890
|
"hasDynamicHelp": false,
|
|
6836
6891
|
"hiddenAliases": [],
|
|
6837
|
-
"id": "
|
|
6892
|
+
"id": "script-sync:push",
|
|
6838
6893
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6839
6894
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6840
6895
|
"pluginType": "core",
|
|
@@ -6844,26 +6899,26 @@
|
|
|
6844
6899
|
"relativePath": [
|
|
6845
6900
|
"dist",
|
|
6846
6901
|
"commands",
|
|
6847
|
-
"
|
|
6848
|
-
"
|
|
6902
|
+
"script-sync",
|
|
6903
|
+
"push.js"
|
|
6849
6904
|
]
|
|
6850
6905
|
},
|
|
6851
|
-
"script-sync:
|
|
6906
|
+
"script-sync:sync": {
|
|
6852
6907
|
"aliases": [],
|
|
6853
6908
|
"args": {},
|
|
6854
|
-
"description": "
|
|
6909
|
+
"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",
|
|
6855
6910
|
"examples": [
|
|
6856
6911
|
{
|
|
6857
|
-
"description": "
|
|
6858
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6912
|
+
"description": "Sync all scripts in a directory",
|
|
6913
|
+
"command": "<%= config.bin %> <%= command.id %> --directory ./scripts --auth dev-instance"
|
|
6859
6914
|
},
|
|
6860
6915
|
{
|
|
6861
|
-
"description": "
|
|
6862
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6916
|
+
"description": "Sync only Script Includes and Business Rules",
|
|
6917
|
+
"command": "<%= config.bin %> <%= command.id %> --directory ./scripts --types sys_script_include --types sys_script --auth dev-instance"
|
|
6863
6918
|
},
|
|
6864
6919
|
{
|
|
6865
|
-
"description": "
|
|
6866
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
6920
|
+
"description": "Sync with JSON output for CI/CD",
|
|
6921
|
+
"command": "<%= config.bin %> <%= command.id %> -d ./scripts --json --auth dev-instance"
|
|
6867
6922
|
}
|
|
6868
6923
|
],
|
|
6869
6924
|
"flags": {
|
|
@@ -6948,22 +7003,22 @@
|
|
|
6948
7003
|
"allowNo": false,
|
|
6949
7004
|
"type": "boolean"
|
|
6950
7005
|
},
|
|
6951
|
-
"
|
|
6952
|
-
"char": "
|
|
6953
|
-
"description": "
|
|
6954
|
-
"name": "
|
|
7006
|
+
"directory": {
|
|
7007
|
+
"char": "d",
|
|
7008
|
+
"description": "Directory containing script files to synchronize",
|
|
7009
|
+
"name": "directory",
|
|
6955
7010
|
"required": true,
|
|
6956
7011
|
"hasDynamicHelp": false,
|
|
6957
7012
|
"multiple": false,
|
|
6958
7013
|
"type": "option"
|
|
6959
7014
|
},
|
|
6960
|
-
"
|
|
7015
|
+
"types": {
|
|
6961
7016
|
"char": "t",
|
|
6962
|
-
"description": "
|
|
6963
|
-
"name": "
|
|
6964
|
-
"required":
|
|
7017
|
+
"description": "Script types to synchronize. Can be specified multiple times to include multiple types.",
|
|
7018
|
+
"name": "types",
|
|
7019
|
+
"required": false,
|
|
6965
7020
|
"hasDynamicHelp": false,
|
|
6966
|
-
"multiple":
|
|
7021
|
+
"multiple": true,
|
|
6967
7022
|
"options": [
|
|
6968
7023
|
"sys_script_include",
|
|
6969
7024
|
"sys_script",
|
|
@@ -6972,20 +7027,11 @@
|
|
|
6972
7027
|
"sys_script_client"
|
|
6973
7028
|
],
|
|
6974
7029
|
"type": "option"
|
|
6975
|
-
},
|
|
6976
|
-
"output": {
|
|
6977
|
-
"char": "o",
|
|
6978
|
-
"description": "Output file path. If not specified, a file name is auto-generated.",
|
|
6979
|
-
"name": "output",
|
|
6980
|
-
"required": false,
|
|
6981
|
-
"hasDynamicHelp": false,
|
|
6982
|
-
"multiple": false,
|
|
6983
|
-
"type": "option"
|
|
6984
7030
|
}
|
|
6985
7031
|
},
|
|
6986
7032
|
"hasDynamicHelp": false,
|
|
6987
7033
|
"hiddenAliases": [],
|
|
6988
|
-
"id": "script-sync:
|
|
7034
|
+
"id": "script-sync:sync",
|
|
6989
7035
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
6990
7036
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
6991
7037
|
"pluginType": "core",
|
|
@@ -6996,25 +7042,25 @@
|
|
|
6996
7042
|
"dist",
|
|
6997
7043
|
"commands",
|
|
6998
7044
|
"script-sync",
|
|
6999
|
-
"
|
|
7045
|
+
"sync.js"
|
|
7000
7046
|
]
|
|
7001
7047
|
},
|
|
7002
|
-
"
|
|
7048
|
+
"scope": {
|
|
7003
7049
|
"aliases": [],
|
|
7004
7050
|
"args": {},
|
|
7005
|
-
"description": "
|
|
7051
|
+
"description": "Get the current application scope or list available applications.",
|
|
7006
7052
|
"examples": [
|
|
7007
7053
|
{
|
|
7008
|
-
"
|
|
7009
|
-
"
|
|
7054
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev",
|
|
7055
|
+
"description": "Get the current application scope"
|
|
7010
7056
|
},
|
|
7011
7057
|
{
|
|
7012
|
-
"
|
|
7013
|
-
"
|
|
7058
|
+
"command": "<%= config.bin %> <%= command.id %> --list --auth dev",
|
|
7059
|
+
"description": "List all available applications"
|
|
7014
7060
|
},
|
|
7015
7061
|
{
|
|
7016
|
-
"
|
|
7017
|
-
"
|
|
7062
|
+
"command": "<%= config.bin %> <%= command.id %> -l --json --auth dev",
|
|
7063
|
+
"description": "List applications as JSON"
|
|
7018
7064
|
}
|
|
7019
7065
|
],
|
|
7020
7066
|
"flags": {
|
|
@@ -7099,35 +7145,131 @@
|
|
|
7099
7145
|
"allowNo": false,
|
|
7100
7146
|
"type": "boolean"
|
|
7101
7147
|
},
|
|
7102
|
-
"
|
|
7103
|
-
"char": "
|
|
7104
|
-
"description": "
|
|
7105
|
-
"name": "
|
|
7106
|
-
"required":
|
|
7148
|
+
"list": {
|
|
7149
|
+
"char": "l",
|
|
7150
|
+
"description": "List all available applications",
|
|
7151
|
+
"name": "list",
|
|
7152
|
+
"required": false,
|
|
7153
|
+
"allowNo": false,
|
|
7154
|
+
"type": "boolean"
|
|
7155
|
+
}
|
|
7156
|
+
},
|
|
7157
|
+
"hasDynamicHelp": false,
|
|
7158
|
+
"hiddenAliases": [],
|
|
7159
|
+
"id": "scope",
|
|
7160
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7161
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7162
|
+
"pluginType": "core",
|
|
7163
|
+
"strict": true,
|
|
7164
|
+
"enableJsonFlag": true,
|
|
7165
|
+
"isESM": true,
|
|
7166
|
+
"relativePath": [
|
|
7167
|
+
"dist",
|
|
7168
|
+
"commands",
|
|
7169
|
+
"scope",
|
|
7170
|
+
"index.js"
|
|
7171
|
+
]
|
|
7172
|
+
},
|
|
7173
|
+
"scope:set": {
|
|
7174
|
+
"aliases": [],
|
|
7175
|
+
"args": {},
|
|
7176
|
+
"description": "Set the current application scope on a ServiceNow instance.",
|
|
7177
|
+
"examples": [
|
|
7178
|
+
{
|
|
7179
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123def456ghi789jkl012mno345pq --auth dev",
|
|
7180
|
+
"description": "Set application scope by sys_id"
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
"command": "<%= config.bin %> <%= command.id %> -a abc123def456ghi789jkl012mno345pq --json --auth dev",
|
|
7184
|
+
"description": "Set application scope and output as JSON"
|
|
7185
|
+
}
|
|
7186
|
+
],
|
|
7187
|
+
"flags": {
|
|
7188
|
+
"json": {
|
|
7189
|
+
"description": "Format output as json.",
|
|
7190
|
+
"helpGroup": "GLOBAL",
|
|
7191
|
+
"name": "json",
|
|
7192
|
+
"allowNo": false,
|
|
7193
|
+
"type": "boolean"
|
|
7194
|
+
},
|
|
7195
|
+
"auth": {
|
|
7196
|
+
"char": "a",
|
|
7197
|
+
"description": "Auth alias to use.",
|
|
7198
|
+
"name": "auth",
|
|
7199
|
+
"required": false,
|
|
7107
7200
|
"hasDynamicHelp": false,
|
|
7108
7201
|
"multiple": false,
|
|
7109
7202
|
"type": "option"
|
|
7110
7203
|
},
|
|
7111
|
-
"
|
|
7112
|
-
"
|
|
7113
|
-
"
|
|
7114
|
-
"name": "
|
|
7115
|
-
"required":
|
|
7204
|
+
"cred-store": {
|
|
7205
|
+
"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.",
|
|
7206
|
+
"helpGroup": "GLOBAL",
|
|
7207
|
+
"name": "cred-store",
|
|
7208
|
+
"required": false,
|
|
7209
|
+
"allowNo": false,
|
|
7210
|
+
"type": "boolean"
|
|
7211
|
+
},
|
|
7212
|
+
"deny-execute": {
|
|
7213
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
7214
|
+
"helpGroup": "GLOBAL",
|
|
7215
|
+
"name": "deny-execute",
|
|
7216
|
+
"required": false,
|
|
7217
|
+
"allowNo": false,
|
|
7218
|
+
"type": "boolean"
|
|
7219
|
+
},
|
|
7220
|
+
"deny-write": {
|
|
7221
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
7222
|
+
"helpGroup": "GLOBAL",
|
|
7223
|
+
"name": "deny-write",
|
|
7224
|
+
"required": false,
|
|
7225
|
+
"allowNo": false,
|
|
7226
|
+
"type": "boolean"
|
|
7227
|
+
},
|
|
7228
|
+
"log-dir": {
|
|
7229
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
7230
|
+
"helpGroup": "GLOBAL",
|
|
7231
|
+
"name": "log-dir",
|
|
7232
|
+
"required": false,
|
|
7233
|
+
"hasDynamicHelp": false,
|
|
7234
|
+
"multiple": false,
|
|
7235
|
+
"type": "option"
|
|
7236
|
+
},
|
|
7237
|
+
"log-file": {
|
|
7238
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
7239
|
+
"helpGroup": "GLOBAL",
|
|
7240
|
+
"name": "log-file",
|
|
7241
|
+
"required": false,
|
|
7242
|
+
"allowNo": false,
|
|
7243
|
+
"type": "boolean"
|
|
7244
|
+
},
|
|
7245
|
+
"log-level": {
|
|
7246
|
+
"helpGroup": "GLOBAL",
|
|
7247
|
+
"name": "log-level",
|
|
7248
|
+
"summary": "Specify level for logging.",
|
|
7249
|
+
"default": "info",
|
|
7116
7250
|
"hasDynamicHelp": false,
|
|
7117
7251
|
"multiple": false,
|
|
7118
7252
|
"options": [
|
|
7119
|
-
"
|
|
7120
|
-
"
|
|
7121
|
-
"
|
|
7122
|
-
"
|
|
7123
|
-
"
|
|
7253
|
+
"debug",
|
|
7254
|
+
"warn",
|
|
7255
|
+
"error",
|
|
7256
|
+
"info",
|
|
7257
|
+
"trace"
|
|
7124
7258
|
],
|
|
7125
7259
|
"type": "option"
|
|
7126
7260
|
},
|
|
7127
|
-
"
|
|
7128
|
-
"
|
|
7129
|
-
"
|
|
7130
|
-
"name": "
|
|
7261
|
+
"read-only": {
|
|
7262
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
7263
|
+
"helpGroup": "GLOBAL",
|
|
7264
|
+
"name": "read-only",
|
|
7265
|
+
"required": false,
|
|
7266
|
+
"allowNo": false,
|
|
7267
|
+
"type": "boolean"
|
|
7268
|
+
},
|
|
7269
|
+
"app-id": {
|
|
7270
|
+
"char": "a",
|
|
7271
|
+
"description": "32-char sys_id of application",
|
|
7272
|
+
"name": "app-id",
|
|
7131
7273
|
"required": true,
|
|
7132
7274
|
"hasDynamicHelp": false,
|
|
7133
7275
|
"multiple": false,
|
|
@@ -7136,7 +7278,7 @@
|
|
|
7136
7278
|
},
|
|
7137
7279
|
"hasDynamicHelp": false,
|
|
7138
7280
|
"hiddenAliases": [],
|
|
7139
|
-
"id": "
|
|
7281
|
+
"id": "scope:set",
|
|
7140
7282
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7141
7283
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7142
7284
|
"pluginType": "core",
|
|
@@ -7146,26 +7288,26 @@
|
|
|
7146
7288
|
"relativePath": [
|
|
7147
7289
|
"dist",
|
|
7148
7290
|
"commands",
|
|
7149
|
-
"
|
|
7150
|
-
"
|
|
7291
|
+
"scope",
|
|
7292
|
+
"set.js"
|
|
7151
7293
|
]
|
|
7152
7294
|
},
|
|
7153
|
-
"
|
|
7295
|
+
"search:add-table": {
|
|
7154
7296
|
"aliases": [],
|
|
7155
7297
|
"args": {},
|
|
7156
|
-
"description": "
|
|
7298
|
+
"description": "Add a table to a code search group on a ServiceNow instance.\n\nThis command registers a new table and its searchable fields with a search group, making the table's records discoverable through code search. This is useful when you need to include custom tables in code search results.\n\nFeatures:\n • Add custom tables to search groups\n • Specify which fields should be indexed\n • JSON output for scripting and automation",
|
|
7157
7299
|
"examples": [
|
|
7158
7300
|
{
|
|
7159
|
-
"
|
|
7160
|
-
"
|
|
7301
|
+
"command": "<%= config.bin %> <%= command.id %> --table sys_script_include --search-fields script --search-group \"Script Includes\" --auth dev-instance",
|
|
7302
|
+
"description": "Add a table to a search group"
|
|
7161
7303
|
},
|
|
7162
7304
|
{
|
|
7163
|
-
"
|
|
7164
|
-
"
|
|
7305
|
+
"command": "<%= config.bin %> <%= command.id %> --table sys_ui_page --search-fields \"html,client_script,processing_script\" --search-group \"UI Pages\" --auth dev-instance",
|
|
7306
|
+
"description": "Add a table with multiple search fields"
|
|
7165
7307
|
},
|
|
7166
7308
|
{
|
|
7167
|
-
"
|
|
7168
|
-
"
|
|
7309
|
+
"command": "<%= config.bin %> <%= command.id %> --table u_custom_script --search-fields script --search-group \"Custom\" --json --auth dev-instance",
|
|
7310
|
+
"description": "Add a table with JSON output"
|
|
7169
7311
|
}
|
|
7170
7312
|
],
|
|
7171
7313
|
"flags": {
|
|
@@ -7250,35 +7392,150 @@
|
|
|
7250
7392
|
"allowNo": false,
|
|
7251
7393
|
"type": "boolean"
|
|
7252
7394
|
},
|
|
7253
|
-
"
|
|
7254
|
-
"char": "
|
|
7255
|
-
"description": "
|
|
7256
|
-
"name": "
|
|
7395
|
+
"search-fields": {
|
|
7396
|
+
"char": "f",
|
|
7397
|
+
"description": "Comma-separated list of fields to index for search",
|
|
7398
|
+
"name": "search-fields",
|
|
7257
7399
|
"required": true,
|
|
7258
7400
|
"hasDynamicHelp": false,
|
|
7259
7401
|
"multiple": false,
|
|
7260
7402
|
"type": "option"
|
|
7261
7403
|
},
|
|
7262
|
-
"
|
|
7404
|
+
"search-group": {
|
|
7405
|
+
"char": "g",
|
|
7406
|
+
"description": "Search group to add the table to",
|
|
7407
|
+
"name": "search-group",
|
|
7408
|
+
"required": true,
|
|
7409
|
+
"hasDynamicHelp": false,
|
|
7410
|
+
"multiple": false,
|
|
7411
|
+
"type": "option"
|
|
7412
|
+
},
|
|
7413
|
+
"table": {
|
|
7263
7414
|
"char": "t",
|
|
7264
|
-
"description": "
|
|
7265
|
-
"name": "
|
|
7415
|
+
"description": "Table name to add to the search group",
|
|
7416
|
+
"name": "table",
|
|
7417
|
+
"required": true,
|
|
7418
|
+
"hasDynamicHelp": false,
|
|
7419
|
+
"multiple": false,
|
|
7420
|
+
"type": "option"
|
|
7421
|
+
}
|
|
7422
|
+
},
|
|
7423
|
+
"hasDynamicHelp": false,
|
|
7424
|
+
"hiddenAliases": [],
|
|
7425
|
+
"id": "search:add-table",
|
|
7426
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7427
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7428
|
+
"pluginType": "core",
|
|
7429
|
+
"strict": true,
|
|
7430
|
+
"enableJsonFlag": true,
|
|
7431
|
+
"isESM": true,
|
|
7432
|
+
"relativePath": [
|
|
7433
|
+
"dist",
|
|
7434
|
+
"commands",
|
|
7435
|
+
"search",
|
|
7436
|
+
"add-table.js"
|
|
7437
|
+
]
|
|
7438
|
+
},
|
|
7439
|
+
"search:groups": {
|
|
7440
|
+
"aliases": [],
|
|
7441
|
+
"args": {},
|
|
7442
|
+
"description": "List all available code search groups on a ServiceNow instance.\n\nSearch groups organize searchable tables into logical categories. Use this command to discover which search groups are configured, then use the group names with other search commands to narrow your search scope.\n\nFeatures:\n • List all configured search groups\n • JSON output for scripting and automation",
|
|
7443
|
+
"examples": [
|
|
7444
|
+
{
|
|
7445
|
+
"command": "<%= config.bin %> <%= command.id %> --auth dev-instance",
|
|
7446
|
+
"description": "List all search groups"
|
|
7447
|
+
},
|
|
7448
|
+
{
|
|
7449
|
+
"command": "<%= config.bin %> <%= command.id %> --json --auth dev-instance",
|
|
7450
|
+
"description": "List search groups with JSON output"
|
|
7451
|
+
}
|
|
7452
|
+
],
|
|
7453
|
+
"flags": {
|
|
7454
|
+
"json": {
|
|
7455
|
+
"description": "Format output as json.",
|
|
7456
|
+
"helpGroup": "GLOBAL",
|
|
7457
|
+
"name": "json",
|
|
7458
|
+
"allowNo": false,
|
|
7459
|
+
"type": "boolean"
|
|
7460
|
+
},
|
|
7461
|
+
"auth": {
|
|
7462
|
+
"char": "a",
|
|
7463
|
+
"description": "Auth alias to use.",
|
|
7464
|
+
"name": "auth",
|
|
7266
7465
|
"required": false,
|
|
7267
7466
|
"hasDynamicHelp": false,
|
|
7268
|
-
"multiple":
|
|
7467
|
+
"multiple": false,
|
|
7468
|
+
"type": "option"
|
|
7469
|
+
},
|
|
7470
|
+
"cred-store": {
|
|
7471
|
+
"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.",
|
|
7472
|
+
"helpGroup": "GLOBAL",
|
|
7473
|
+
"name": "cred-store",
|
|
7474
|
+
"required": false,
|
|
7475
|
+
"allowNo": false,
|
|
7476
|
+
"type": "boolean"
|
|
7477
|
+
},
|
|
7478
|
+
"deny-execute": {
|
|
7479
|
+
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
7480
|
+
"helpGroup": "GLOBAL",
|
|
7481
|
+
"name": "deny-execute",
|
|
7482
|
+
"required": false,
|
|
7483
|
+
"allowNo": false,
|
|
7484
|
+
"type": "boolean"
|
|
7485
|
+
},
|
|
7486
|
+
"deny-write": {
|
|
7487
|
+
"description": "Refuse any change to instance data for this invocation.",
|
|
7488
|
+
"helpGroup": "GLOBAL",
|
|
7489
|
+
"name": "deny-write",
|
|
7490
|
+
"required": false,
|
|
7491
|
+
"allowNo": false,
|
|
7492
|
+
"type": "boolean"
|
|
7493
|
+
},
|
|
7494
|
+
"log-dir": {
|
|
7495
|
+
"description": "Directory to write log files to. Implies --log-file.",
|
|
7496
|
+
"helpGroup": "GLOBAL",
|
|
7497
|
+
"name": "log-dir",
|
|
7498
|
+
"required": false,
|
|
7499
|
+
"hasDynamicHelp": false,
|
|
7500
|
+
"multiple": false,
|
|
7501
|
+
"type": "option"
|
|
7502
|
+
},
|
|
7503
|
+
"log-file": {
|
|
7504
|
+
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
7505
|
+
"helpGroup": "GLOBAL",
|
|
7506
|
+
"name": "log-file",
|
|
7507
|
+
"required": false,
|
|
7508
|
+
"allowNo": false,
|
|
7509
|
+
"type": "boolean"
|
|
7510
|
+
},
|
|
7511
|
+
"log-level": {
|
|
7512
|
+
"helpGroup": "GLOBAL",
|
|
7513
|
+
"name": "log-level",
|
|
7514
|
+
"summary": "Specify level for logging.",
|
|
7515
|
+
"default": "info",
|
|
7516
|
+
"hasDynamicHelp": false,
|
|
7517
|
+
"multiple": false,
|
|
7269
7518
|
"options": [
|
|
7270
|
-
"
|
|
7271
|
-
"
|
|
7272
|
-
"
|
|
7273
|
-
"
|
|
7274
|
-
"
|
|
7519
|
+
"debug",
|
|
7520
|
+
"warn",
|
|
7521
|
+
"error",
|
|
7522
|
+
"info",
|
|
7523
|
+
"trace"
|
|
7275
7524
|
],
|
|
7276
7525
|
"type": "option"
|
|
7526
|
+
},
|
|
7527
|
+
"read-only": {
|
|
7528
|
+
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
7529
|
+
"helpGroup": "GLOBAL",
|
|
7530
|
+
"name": "read-only",
|
|
7531
|
+
"required": false,
|
|
7532
|
+
"allowNo": false,
|
|
7533
|
+
"type": "boolean"
|
|
7277
7534
|
}
|
|
7278
7535
|
},
|
|
7279
7536
|
"hasDynamicHelp": false,
|
|
7280
7537
|
"hiddenAliases": [],
|
|
7281
|
-
"id": "
|
|
7538
|
+
"id": "search:groups",
|
|
7282
7539
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7283
7540
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7284
7541
|
"pluginType": "core",
|
|
@@ -7288,26 +7545,30 @@
|
|
|
7288
7545
|
"relativePath": [
|
|
7289
7546
|
"dist",
|
|
7290
7547
|
"commands",
|
|
7291
|
-
"
|
|
7292
|
-
"
|
|
7548
|
+
"search",
|
|
7549
|
+
"groups.js"
|
|
7293
7550
|
]
|
|
7294
7551
|
},
|
|
7295
|
-
"search
|
|
7552
|
+
"search": {
|
|
7296
7553
|
"aliases": [],
|
|
7297
7554
|
"args": {},
|
|
7298
|
-
"description": "
|
|
7555
|
+
"description": "Search platform code across a ServiceNow instance.\n\nThis command allows you to search through code stored on the platform, including scripts, business rules, UI pages, and other scriptable records. You can search globally, within a specific application scope, or within a specific table and search group.\n\nFeatures:\n • Full-text code search across the platform\n • Scope-specific search within application boundaries\n • Table-specific search within a search group\n • JSON output for CI/CD integration\n • Configurable result limits",
|
|
7299
7556
|
"examples": [
|
|
7300
7557
|
{
|
|
7301
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7302
|
-
"description": "
|
|
7558
|
+
"command": "<%= config.bin %> <%= command.id %> --term \"GlideRecord\" --auth dev-instance",
|
|
7559
|
+
"description": "Search for a term across the entire instance"
|
|
7303
7560
|
},
|
|
7304
7561
|
{
|
|
7305
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7306
|
-
"description": "
|
|
7562
|
+
"command": "<%= config.bin %> <%= command.id %> --term \"getValue\" --scope x_my_app --auth dev-instance",
|
|
7563
|
+
"description": "Search within a specific application scope"
|
|
7307
7564
|
},
|
|
7308
7565
|
{
|
|
7309
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7310
|
-
"description": "
|
|
7566
|
+
"command": "<%= config.bin %> <%= command.id %> --term \"initialize\" --search-group \"Script Includes\" --table sys_script_include --auth dev-instance",
|
|
7567
|
+
"description": "Search within a specific table and search group"
|
|
7568
|
+
},
|
|
7569
|
+
{
|
|
7570
|
+
"command": "<%= config.bin %> <%= command.id %> --term \"GlideRecord\" --limit 10 --json --auth dev-instance",
|
|
7571
|
+
"description": "Search with a result limit and JSON output"
|
|
7311
7572
|
}
|
|
7312
7573
|
],
|
|
7313
7574
|
"flags": {
|
|
@@ -7392,28 +7653,45 @@
|
|
|
7392
7653
|
"allowNo": false,
|
|
7393
7654
|
"type": "boolean"
|
|
7394
7655
|
},
|
|
7395
|
-
"
|
|
7396
|
-
"char": "
|
|
7397
|
-
"description": "
|
|
7398
|
-
"name": "
|
|
7399
|
-
"required":
|
|
7656
|
+
"limit": {
|
|
7657
|
+
"char": "l",
|
|
7658
|
+
"description": "Maximum number of results to return",
|
|
7659
|
+
"name": "limit",
|
|
7660
|
+
"required": false,
|
|
7661
|
+
"hasDynamicHelp": false,
|
|
7662
|
+
"multiple": false,
|
|
7663
|
+
"type": "option"
|
|
7664
|
+
},
|
|
7665
|
+
"scope": {
|
|
7666
|
+
"char": "s",
|
|
7667
|
+
"description": "Application scope to search within",
|
|
7668
|
+
"name": "scope",
|
|
7669
|
+
"required": false,
|
|
7400
7670
|
"hasDynamicHelp": false,
|
|
7401
7671
|
"multiple": false,
|
|
7402
7672
|
"type": "option"
|
|
7403
7673
|
},
|
|
7404
7674
|
"search-group": {
|
|
7405
7675
|
"char": "g",
|
|
7406
|
-
"description": "Search group to
|
|
7676
|
+
"description": "Search group to search within (required when using --table)",
|
|
7407
7677
|
"name": "search-group",
|
|
7408
|
-
"required":
|
|
7678
|
+
"required": false,
|
|
7409
7679
|
"hasDynamicHelp": false,
|
|
7410
7680
|
"multiple": false,
|
|
7411
7681
|
"type": "option"
|
|
7412
7682
|
},
|
|
7413
7683
|
"table": {
|
|
7414
|
-
"
|
|
7415
|
-
"description": "Table name to add to the search group",
|
|
7684
|
+
"description": "Table name to search within (requires --search-group)",
|
|
7416
7685
|
"name": "table",
|
|
7686
|
+
"required": false,
|
|
7687
|
+
"hasDynamicHelp": false,
|
|
7688
|
+
"multiple": false,
|
|
7689
|
+
"type": "option"
|
|
7690
|
+
},
|
|
7691
|
+
"term": {
|
|
7692
|
+
"char": "t",
|
|
7693
|
+
"description": "Search term to look for in platform code",
|
|
7694
|
+
"name": "term",
|
|
7417
7695
|
"required": true,
|
|
7418
7696
|
"hasDynamicHelp": false,
|
|
7419
7697
|
"multiple": false,
|
|
@@ -7422,7 +7700,7 @@
|
|
|
7422
7700
|
},
|
|
7423
7701
|
"hasDynamicHelp": false,
|
|
7424
7702
|
"hiddenAliases": [],
|
|
7425
|
-
"id": "search
|
|
7703
|
+
"id": "search",
|
|
7426
7704
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7427
7705
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7428
7706
|
"pluginType": "core",
|
|
@@ -7433,21 +7711,21 @@
|
|
|
7433
7711
|
"dist",
|
|
7434
7712
|
"commands",
|
|
7435
7713
|
"search",
|
|
7436
|
-
"
|
|
7714
|
+
"index.js"
|
|
7437
7715
|
]
|
|
7438
7716
|
},
|
|
7439
|
-
"search:
|
|
7717
|
+
"search:tables": {
|
|
7440
7718
|
"aliases": [],
|
|
7441
7719
|
"args": {},
|
|
7442
|
-
"description": "List
|
|
7720
|
+
"description": "List tables configured for a specific code search group.\n\nEach search group contains one or more tables that are indexed for code search. Use this command to discover which tables belong to a search group, including the fields that are searchable on each table.\n\nFeatures:\n • List all tables in a search group\n • View searchable fields per table\n • JSON output for scripting and automation",
|
|
7443
7721
|
"examples": [
|
|
7444
7722
|
{
|
|
7445
|
-
"command": "<%= config.bin %> <%= command.id %> --auth dev-instance",
|
|
7446
|
-
"description": "List
|
|
7723
|
+
"command": "<%= config.bin %> <%= command.id %> --search-group \"Script Includes\" --auth dev-instance",
|
|
7724
|
+
"description": "List tables in a search group"
|
|
7447
7725
|
},
|
|
7448
7726
|
{
|
|
7449
|
-
"command": "<%= config.bin %> <%= command.id %> --json --auth dev-instance",
|
|
7450
|
-
"description": "List
|
|
7727
|
+
"command": "<%= config.bin %> <%= command.id %> --search-group \"Business Rules\" --json --auth dev-instance",
|
|
7728
|
+
"description": "List tables with JSON output"
|
|
7451
7729
|
}
|
|
7452
7730
|
],
|
|
7453
7731
|
"flags": {
|
|
@@ -7531,11 +7809,20 @@
|
|
|
7531
7809
|
"required": false,
|
|
7532
7810
|
"allowNo": false,
|
|
7533
7811
|
"type": "boolean"
|
|
7812
|
+
},
|
|
7813
|
+
"search-group": {
|
|
7814
|
+
"char": "g",
|
|
7815
|
+
"description": "Search group name to list tables for",
|
|
7816
|
+
"name": "search-group",
|
|
7817
|
+
"required": true,
|
|
7818
|
+
"hasDynamicHelp": false,
|
|
7819
|
+
"multiple": false,
|
|
7820
|
+
"type": "option"
|
|
7534
7821
|
}
|
|
7535
7822
|
},
|
|
7536
7823
|
"hasDynamicHelp": false,
|
|
7537
7824
|
"hiddenAliases": [],
|
|
7538
|
-
"id": "search:
|
|
7825
|
+
"id": "search:tables",
|
|
7539
7826
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7540
7827
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7541
7828
|
"pluginType": "core",
|
|
@@ -7546,29 +7833,25 @@
|
|
|
7546
7833
|
"dist",
|
|
7547
7834
|
"commands",
|
|
7548
7835
|
"search",
|
|
7549
|
-
"
|
|
7836
|
+
"tables.js"
|
|
7550
7837
|
]
|
|
7551
7838
|
},
|
|
7552
|
-
"
|
|
7839
|
+
"store:install": {
|
|
7553
7840
|
"aliases": [],
|
|
7554
7841
|
"args": {},
|
|
7555
|
-
"description": "
|
|
7842
|
+
"description": "Install an application from the ServiceNow Store.",
|
|
7556
7843
|
"examples": [
|
|
7557
7844
|
{
|
|
7558
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7559
|
-
"description": "
|
|
7560
|
-
},
|
|
7561
|
-
{
|
|
7562
|
-
"command": "<%= config.bin %> <%= command.id %> --term \"getValue\" --scope x_my_app --auth dev-instance",
|
|
7563
|
-
"description": "Search within a specific application scope"
|
|
7845
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version 1.0.0 --auth dev",
|
|
7846
|
+
"description": "Install a store application and wait for completion"
|
|
7564
7847
|
},
|
|
7565
7848
|
{
|
|
7566
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7567
|
-
"description": "
|
|
7849
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version 1.0.0 --no-wait --auth dev",
|
|
7850
|
+
"description": "Install without waiting for completion"
|
|
7568
7851
|
},
|
|
7569
7852
|
{
|
|
7570
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7571
|
-
"description": "
|
|
7853
|
+
"command": "<%= config.bin %> <%= command.id %> -a abc123 -v 1.0.0 --demo-data --auth dev",
|
|
7854
|
+
"description": "Install with demo data"
|
|
7572
7855
|
}
|
|
7573
7856
|
],
|
|
7574
7857
|
"flags": {
|
|
@@ -7653,45 +7936,51 @@
|
|
|
7653
7936
|
"allowNo": false,
|
|
7654
7937
|
"type": "boolean"
|
|
7655
7938
|
},
|
|
7656
|
-
"
|
|
7657
|
-
"char": "
|
|
7658
|
-
"description": "
|
|
7659
|
-
"name": "
|
|
7660
|
-
"required":
|
|
7939
|
+
"app-id": {
|
|
7940
|
+
"char": "a",
|
|
7941
|
+
"description": "Store application sys_id",
|
|
7942
|
+
"name": "app-id",
|
|
7943
|
+
"required": true,
|
|
7661
7944
|
"hasDynamicHelp": false,
|
|
7662
7945
|
"multiple": false,
|
|
7663
7946
|
"type": "option"
|
|
7664
7947
|
},
|
|
7665
|
-
"
|
|
7666
|
-
"
|
|
7667
|
-
"
|
|
7668
|
-
"name": "scope",
|
|
7948
|
+
"demo-data": {
|
|
7949
|
+
"description": "Load demo data during installation",
|
|
7950
|
+
"name": "demo-data",
|
|
7669
7951
|
"required": false,
|
|
7670
|
-
"
|
|
7671
|
-
"
|
|
7672
|
-
"type": "option"
|
|
7952
|
+
"allowNo": false,
|
|
7953
|
+
"type": "boolean"
|
|
7673
7954
|
},
|
|
7674
|
-
"
|
|
7675
|
-
"
|
|
7676
|
-
"
|
|
7677
|
-
"
|
|
7955
|
+
"no-wait": {
|
|
7956
|
+
"description": "Do not wait for installation to complete",
|
|
7957
|
+
"name": "no-wait",
|
|
7958
|
+
"required": false,
|
|
7959
|
+
"allowNo": false,
|
|
7960
|
+
"type": "boolean"
|
|
7961
|
+
},
|
|
7962
|
+
"poll-interval": {
|
|
7963
|
+
"description": "Polling interval in milliseconds",
|
|
7964
|
+
"name": "poll-interval",
|
|
7678
7965
|
"required": false,
|
|
7966
|
+
"default": 5000,
|
|
7679
7967
|
"hasDynamicHelp": false,
|
|
7680
7968
|
"multiple": false,
|
|
7681
7969
|
"type": "option"
|
|
7682
7970
|
},
|
|
7683
|
-
"
|
|
7684
|
-
"description": "
|
|
7685
|
-
"name": "
|
|
7971
|
+
"timeout": {
|
|
7972
|
+
"description": "Installation timeout in milliseconds",
|
|
7973
|
+
"name": "timeout",
|
|
7686
7974
|
"required": false,
|
|
7975
|
+
"default": 1800000,
|
|
7687
7976
|
"hasDynamicHelp": false,
|
|
7688
7977
|
"multiple": false,
|
|
7689
7978
|
"type": "option"
|
|
7690
7979
|
},
|
|
7691
|
-
"
|
|
7692
|
-
"char": "
|
|
7693
|
-
"description": "
|
|
7694
|
-
"name": "
|
|
7980
|
+
"version": {
|
|
7981
|
+
"char": "v",
|
|
7982
|
+
"description": "Application version to install",
|
|
7983
|
+
"name": "version",
|
|
7695
7984
|
"required": true,
|
|
7696
7985
|
"hasDynamicHelp": false,
|
|
7697
7986
|
"multiple": false,
|
|
@@ -7700,7 +7989,7 @@
|
|
|
7700
7989
|
},
|
|
7701
7990
|
"hasDynamicHelp": false,
|
|
7702
7991
|
"hiddenAliases": [],
|
|
7703
|
-
"id": "
|
|
7992
|
+
"id": "store:install",
|
|
7704
7993
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7705
7994
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7706
7995
|
"pluginType": "core",
|
|
@@ -7710,22 +7999,26 @@
|
|
|
7710
7999
|
"relativePath": [
|
|
7711
8000
|
"dist",
|
|
7712
8001
|
"commands",
|
|
7713
|
-
"
|
|
7714
|
-
"
|
|
8002
|
+
"store",
|
|
8003
|
+
"install.js"
|
|
7715
8004
|
]
|
|
7716
8005
|
},
|
|
7717
|
-
"search
|
|
8006
|
+
"store:search": {
|
|
7718
8007
|
"aliases": [],
|
|
7719
8008
|
"args": {},
|
|
7720
|
-
"description": "
|
|
8009
|
+
"description": "Search for applications in the ServiceNow Store.",
|
|
7721
8010
|
"examples": [
|
|
7722
8011
|
{
|
|
7723
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7724
|
-
"description": "
|
|
8012
|
+
"command": "<%= config.bin %> <%= command.id %> --term \"ITSM\" --auth dev",
|
|
8013
|
+
"description": "Search for applications matching a term"
|
|
7725
8014
|
},
|
|
7726
8015
|
{
|
|
7727
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
7728
|
-
"description": "List
|
|
8016
|
+
"command": "<%= config.bin %> <%= command.id %> --tab installed --auth dev",
|
|
8017
|
+
"description": "List installed applications"
|
|
8018
|
+
},
|
|
8019
|
+
{
|
|
8020
|
+
"command": "<%= config.bin %> <%= command.id %> --tab updates --limit 10 --auth dev",
|
|
8021
|
+
"description": "List applications with available updates"
|
|
7729
8022
|
}
|
|
7730
8023
|
],
|
|
7731
8024
|
"flags": {
|
|
@@ -7810,11 +8103,34 @@
|
|
|
7810
8103
|
"allowNo": false,
|
|
7811
8104
|
"type": "boolean"
|
|
7812
8105
|
},
|
|
7813
|
-
"
|
|
7814
|
-
"
|
|
7815
|
-
"
|
|
7816
|
-
"
|
|
7817
|
-
"
|
|
8106
|
+
"limit": {
|
|
8107
|
+
"description": "Maximum number of results to return",
|
|
8108
|
+
"name": "limit",
|
|
8109
|
+
"required": false,
|
|
8110
|
+
"default": 20,
|
|
8111
|
+
"hasDynamicHelp": false,
|
|
8112
|
+
"multiple": false,
|
|
8113
|
+
"type": "option"
|
|
8114
|
+
},
|
|
8115
|
+
"tab": {
|
|
8116
|
+
"description": "Store tab context to search",
|
|
8117
|
+
"name": "tab",
|
|
8118
|
+
"required": false,
|
|
8119
|
+
"default": "available_for_you",
|
|
8120
|
+
"hasDynamicHelp": false,
|
|
8121
|
+
"multiple": false,
|
|
8122
|
+
"options": [
|
|
8123
|
+
"available_for_you",
|
|
8124
|
+
"installed",
|
|
8125
|
+
"updates"
|
|
8126
|
+
],
|
|
8127
|
+
"type": "option"
|
|
8128
|
+
},
|
|
8129
|
+
"term": {
|
|
8130
|
+
"char": "t",
|
|
8131
|
+
"description": "Search term",
|
|
8132
|
+
"name": "term",
|
|
8133
|
+
"required": false,
|
|
7818
8134
|
"hasDynamicHelp": false,
|
|
7819
8135
|
"multiple": false,
|
|
7820
8136
|
"type": "option"
|
|
@@ -7822,7 +8138,7 @@
|
|
|
7822
8138
|
},
|
|
7823
8139
|
"hasDynamicHelp": false,
|
|
7824
8140
|
"hiddenAliases": [],
|
|
7825
|
-
"id": "search
|
|
8141
|
+
"id": "store:search",
|
|
7826
8142
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7827
8143
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7828
8144
|
"pluginType": "core",
|
|
@@ -7832,26 +8148,26 @@
|
|
|
7832
8148
|
"relativePath": [
|
|
7833
8149
|
"dist",
|
|
7834
8150
|
"commands",
|
|
7835
|
-
"
|
|
7836
|
-
"
|
|
8151
|
+
"store",
|
|
8152
|
+
"search.js"
|
|
7837
8153
|
]
|
|
7838
8154
|
},
|
|
7839
|
-
"store:
|
|
8155
|
+
"store:update": {
|
|
7840
8156
|
"aliases": [],
|
|
7841
8157
|
"args": {},
|
|
7842
|
-
"description": "
|
|
8158
|
+
"description": "Update a ServiceNow Store application to a new version.",
|
|
7843
8159
|
"examples": [
|
|
7844
8160
|
{
|
|
7845
|
-
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version
|
|
7846
|
-
"description": "
|
|
8161
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version 2.0.0 --auth dev",
|
|
8162
|
+
"description": "Update a store application and wait for completion"
|
|
7847
8163
|
},
|
|
7848
8164
|
{
|
|
7849
|
-
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version
|
|
7850
|
-
"description": "
|
|
8165
|
+
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version 2.0.0 --no-wait --auth dev",
|
|
8166
|
+
"description": "Update without waiting for completion"
|
|
7851
8167
|
},
|
|
7852
8168
|
{
|
|
7853
|
-
"command": "<%= config.bin %> <%= command.id %> -a abc123 -v
|
|
7854
|
-
"description": "
|
|
8169
|
+
"command": "<%= config.bin %> <%= command.id %> -a abc123 -v 2.0.0 --timeout 3600000 --auth dev",
|
|
8170
|
+
"description": "Update with custom timeout (1 hour)"
|
|
7855
8171
|
}
|
|
7856
8172
|
],
|
|
7857
8173
|
"flags": {
|
|
@@ -7945,15 +8261,8 @@
|
|
|
7945
8261
|
"multiple": false,
|
|
7946
8262
|
"type": "option"
|
|
7947
8263
|
},
|
|
7948
|
-
"demo-data": {
|
|
7949
|
-
"description": "Load demo data during installation",
|
|
7950
|
-
"name": "demo-data",
|
|
7951
|
-
"required": false,
|
|
7952
|
-
"allowNo": false,
|
|
7953
|
-
"type": "boolean"
|
|
7954
|
-
},
|
|
7955
8264
|
"no-wait": {
|
|
7956
|
-
"description": "Do not wait for
|
|
8265
|
+
"description": "Do not wait for update to complete",
|
|
7957
8266
|
"name": "no-wait",
|
|
7958
8267
|
"required": false,
|
|
7959
8268
|
"allowNo": false,
|
|
@@ -7969,7 +8278,7 @@
|
|
|
7969
8278
|
"type": "option"
|
|
7970
8279
|
},
|
|
7971
8280
|
"timeout": {
|
|
7972
|
-
"description": "
|
|
8281
|
+
"description": "Update timeout in milliseconds",
|
|
7973
8282
|
"name": "timeout",
|
|
7974
8283
|
"required": false,
|
|
7975
8284
|
"default": 1800000,
|
|
@@ -7979,7 +8288,7 @@
|
|
|
7979
8288
|
},
|
|
7980
8289
|
"version": {
|
|
7981
8290
|
"char": "v",
|
|
7982
|
-
"description": "
|
|
8291
|
+
"description": "Target application version",
|
|
7983
8292
|
"name": "version",
|
|
7984
8293
|
"required": true,
|
|
7985
8294
|
"hasDynamicHelp": false,
|
|
@@ -7989,7 +8298,7 @@
|
|
|
7989
8298
|
},
|
|
7990
8299
|
"hasDynamicHelp": false,
|
|
7991
8300
|
"hiddenAliases": [],
|
|
7992
|
-
"id": "store:
|
|
8301
|
+
"id": "store:update",
|
|
7993
8302
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
7994
8303
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
7995
8304
|
"pluginType": "core",
|
|
@@ -8000,25 +8309,17 @@
|
|
|
8000
8309
|
"dist",
|
|
8001
8310
|
"commands",
|
|
8002
8311
|
"store",
|
|
8003
|
-
"
|
|
8312
|
+
"update.js"
|
|
8004
8313
|
]
|
|
8005
8314
|
},
|
|
8006
|
-
"store:
|
|
8315
|
+
"store:validate": {
|
|
8007
8316
|
"aliases": [],
|
|
8008
8317
|
"args": {},
|
|
8009
|
-
"description": "
|
|
8318
|
+
"description": "Validate a batch installation definition file.",
|
|
8010
8319
|
"examples": [
|
|
8011
8320
|
{
|
|
8012
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
8013
|
-
"description": "
|
|
8014
|
-
},
|
|
8015
|
-
{
|
|
8016
|
-
"command": "<%= config.bin %> <%= command.id %> --tab installed --auth dev",
|
|
8017
|
-
"description": "List installed applications"
|
|
8018
|
-
},
|
|
8019
|
-
{
|
|
8020
|
-
"command": "<%= config.bin %> <%= command.id %> --tab updates --limit 10 --auth dev",
|
|
8021
|
-
"description": "List applications with available updates"
|
|
8321
|
+
"command": "<%= config.bin %> <%= command.id %> --file ./batch-definition.json --auth dev",
|
|
8322
|
+
"description": "Validate a batch definition file"
|
|
8022
8323
|
}
|
|
8023
8324
|
],
|
|
8024
8325
|
"flags": {
|
|
@@ -8103,34 +8404,11 @@
|
|
|
8103
8404
|
"allowNo": false,
|
|
8104
8405
|
"type": "boolean"
|
|
8105
8406
|
},
|
|
8106
|
-
"
|
|
8107
|
-
"
|
|
8108
|
-
"
|
|
8109
|
-
"
|
|
8110
|
-
"
|
|
8111
|
-
"hasDynamicHelp": false,
|
|
8112
|
-
"multiple": false,
|
|
8113
|
-
"type": "option"
|
|
8114
|
-
},
|
|
8115
|
-
"tab": {
|
|
8116
|
-
"description": "Store tab context to search",
|
|
8117
|
-
"name": "tab",
|
|
8118
|
-
"required": false,
|
|
8119
|
-
"default": "available_for_you",
|
|
8120
|
-
"hasDynamicHelp": false,
|
|
8121
|
-
"multiple": false,
|
|
8122
|
-
"options": [
|
|
8123
|
-
"available_for_you",
|
|
8124
|
-
"installed",
|
|
8125
|
-
"updates"
|
|
8126
|
-
],
|
|
8127
|
-
"type": "option"
|
|
8128
|
-
},
|
|
8129
|
-
"term": {
|
|
8130
|
-
"char": "t",
|
|
8131
|
-
"description": "Search term",
|
|
8132
|
-
"name": "term",
|
|
8133
|
-
"required": false,
|
|
8407
|
+
"file": {
|
|
8408
|
+
"char": "f",
|
|
8409
|
+
"description": "Path to batch definition JSON file",
|
|
8410
|
+
"name": "file",
|
|
8411
|
+
"required": true,
|
|
8134
8412
|
"hasDynamicHelp": false,
|
|
8135
8413
|
"multiple": false,
|
|
8136
8414
|
"type": "option"
|
|
@@ -8138,7 +8416,7 @@
|
|
|
8138
8416
|
},
|
|
8139
8417
|
"hasDynamicHelp": false,
|
|
8140
8418
|
"hiddenAliases": [],
|
|
8141
|
-
"id": "store:
|
|
8419
|
+
"id": "store:validate",
|
|
8142
8420
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8143
8421
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8144
8422
|
"pluginType": "core",
|
|
@@ -8149,26 +8427,16 @@
|
|
|
8149
8427
|
"dist",
|
|
8150
8428
|
"commands",
|
|
8151
8429
|
"store",
|
|
8152
|
-
"
|
|
8430
|
+
"validate.js"
|
|
8153
8431
|
]
|
|
8154
8432
|
},
|
|
8155
|
-
"
|
|
8433
|
+
"transaction:kill": {
|
|
8156
8434
|
"aliases": [],
|
|
8157
8435
|
"args": {},
|
|
8158
|
-
"description": "
|
|
8436
|
+
"description": "Submit a request to terminate one active transaction. Platform acceptance does not mean immediate removal.\n\nOnly pass an identifier you deliberately selected from `nex transaction list`. Killing another user's transaction aborts their work.",
|
|
8159
8437
|
"examples": [
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
"description": "Update a store application and wait for completion"
|
|
8163
|
-
},
|
|
8164
|
-
{
|
|
8165
|
-
"command": "<%= config.bin %> <%= command.id %> --app-id abc123 --version 2.0.0 --no-wait --auth dev",
|
|
8166
|
-
"description": "Update without waiting for completion"
|
|
8167
|
-
},
|
|
8168
|
-
{
|
|
8169
|
-
"command": "<%= config.bin %> <%= command.id %> -a abc123 -v 2.0.0 --timeout 3600000 --auth dev",
|
|
8170
|
-
"description": "Update with custom timeout (1 hour)"
|
|
8171
|
-
}
|
|
8438
|
+
"<%= config.bin %> <%= command.id %> --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm --auth dev",
|
|
8439
|
+
"<%= config.bin %> <%= command.id %> --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm --json --auth dev"
|
|
8172
8440
|
],
|
|
8173
8441
|
"flags": {
|
|
8174
8442
|
"json": {
|
|
@@ -8252,44 +8520,16 @@
|
|
|
8252
8520
|
"allowNo": false,
|
|
8253
8521
|
"type": "boolean"
|
|
8254
8522
|
},
|
|
8255
|
-
"
|
|
8256
|
-
"
|
|
8257
|
-
"
|
|
8258
|
-
"name": "app-id",
|
|
8259
|
-
"required": true,
|
|
8260
|
-
"hasDynamicHelp": false,
|
|
8261
|
-
"multiple": false,
|
|
8262
|
-
"type": "option"
|
|
8263
|
-
},
|
|
8264
|
-
"no-wait": {
|
|
8265
|
-
"description": "Do not wait for update to complete",
|
|
8266
|
-
"name": "no-wait",
|
|
8267
|
-
"required": false,
|
|
8523
|
+
"confirm": {
|
|
8524
|
+
"description": "Confirm submission of the kill request.",
|
|
8525
|
+
"name": "confirm",
|
|
8268
8526
|
"allowNo": false,
|
|
8269
8527
|
"type": "boolean"
|
|
8270
8528
|
},
|
|
8271
|
-
"
|
|
8272
|
-
"
|
|
8273
|
-
"
|
|
8274
|
-
"
|
|
8275
|
-
"default": 5000,
|
|
8276
|
-
"hasDynamicHelp": false,
|
|
8277
|
-
"multiple": false,
|
|
8278
|
-
"type": "option"
|
|
8279
|
-
},
|
|
8280
|
-
"timeout": {
|
|
8281
|
-
"description": "Update timeout in milliseconds",
|
|
8282
|
-
"name": "timeout",
|
|
8283
|
-
"required": false,
|
|
8284
|
-
"default": 1800000,
|
|
8285
|
-
"hasDynamicHelp": false,
|
|
8286
|
-
"multiple": false,
|
|
8287
|
-
"type": "option"
|
|
8288
|
-
},
|
|
8289
|
-
"version": {
|
|
8290
|
-
"char": "v",
|
|
8291
|
-
"description": "Target application version",
|
|
8292
|
-
"name": "version",
|
|
8529
|
+
"transaction-id": {
|
|
8530
|
+
"char": "t",
|
|
8531
|
+
"description": "Exact 32-character hexadecimal sys_id from `nex transaction list`.",
|
|
8532
|
+
"name": "transaction-id",
|
|
8293
8533
|
"required": true,
|
|
8294
8534
|
"hasDynamicHelp": false,
|
|
8295
8535
|
"multiple": false,
|
|
@@ -8298,7 +8538,7 @@
|
|
|
8298
8538
|
},
|
|
8299
8539
|
"hasDynamicHelp": false,
|
|
8300
8540
|
"hiddenAliases": [],
|
|
8301
|
-
"id": "
|
|
8541
|
+
"id": "transaction:kill",
|
|
8302
8542
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8303
8543
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8304
8544
|
"pluginType": "core",
|
|
@@ -8308,19 +8548,19 @@
|
|
|
8308
8548
|
"relativePath": [
|
|
8309
8549
|
"dist",
|
|
8310
8550
|
"commands",
|
|
8311
|
-
"
|
|
8312
|
-
"
|
|
8551
|
+
"transaction",
|
|
8552
|
+
"kill.js"
|
|
8313
8553
|
]
|
|
8314
8554
|
},
|
|
8315
|
-
"
|
|
8555
|
+
"transaction:list": {
|
|
8316
8556
|
"aliases": [],
|
|
8317
8557
|
"args": {},
|
|
8318
|
-
"description": "
|
|
8558
|
+
"description": "List active transactions from all responding ServiceNow cluster nodes.",
|
|
8319
8559
|
"examples": [
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8560
|
+
"<%= config.bin %> <%= command.id %> --auth dev",
|
|
8561
|
+
"<%= config.bin %> <%= command.id %> --json --auth dev",
|
|
8562
|
+
"<%= config.bin %> <%= command.id %> --query \"user=admin\" --limit 50 --auth dev",
|
|
8563
|
+
"<%= config.bin %> <%= command.id %> --timeout-ms 120000 --poll-interval-ms 2000 --auth dev"
|
|
8324
8564
|
],
|
|
8325
8565
|
"flags": {
|
|
8326
8566
|
"json": {
|
|
@@ -8404,11 +8644,32 @@
|
|
|
8404
8644
|
"allowNo": false,
|
|
8405
8645
|
"type": "boolean"
|
|
8406
8646
|
},
|
|
8407
|
-
"
|
|
8408
|
-
"char": "
|
|
8409
|
-
"description": "
|
|
8410
|
-
"name": "
|
|
8411
|
-
"
|
|
8647
|
+
"limit": {
|
|
8648
|
+
"char": "l",
|
|
8649
|
+
"description": "Maximum transactions to return. Core default: 1000.",
|
|
8650
|
+
"name": "limit",
|
|
8651
|
+
"hasDynamicHelp": false,
|
|
8652
|
+
"multiple": false,
|
|
8653
|
+
"type": "option"
|
|
8654
|
+
},
|
|
8655
|
+
"poll-interval-ms": {
|
|
8656
|
+
"description": "Interval between collection status polls. Core default: 1000.",
|
|
8657
|
+
"name": "poll-interval-ms",
|
|
8658
|
+
"hasDynamicHelp": false,
|
|
8659
|
+
"multiple": false,
|
|
8660
|
+
"type": "option"
|
|
8661
|
+
},
|
|
8662
|
+
"query": {
|
|
8663
|
+
"char": "q",
|
|
8664
|
+
"description": "Encoded query used to filter transactions. Core default: none.",
|
|
8665
|
+
"name": "query",
|
|
8666
|
+
"hasDynamicHelp": false,
|
|
8667
|
+
"multiple": false,
|
|
8668
|
+
"type": "option"
|
|
8669
|
+
},
|
|
8670
|
+
"timeout-ms": {
|
|
8671
|
+
"description": "Collection timeout in milliseconds. Core default: 60000.",
|
|
8672
|
+
"name": "timeout-ms",
|
|
8412
8673
|
"hasDynamicHelp": false,
|
|
8413
8674
|
"multiple": false,
|
|
8414
8675
|
"type": "option"
|
|
@@ -8416,7 +8677,7 @@
|
|
|
8416
8677
|
},
|
|
8417
8678
|
"hasDynamicHelp": false,
|
|
8418
8679
|
"hiddenAliases": [],
|
|
8419
|
-
"id": "
|
|
8680
|
+
"id": "transaction:list",
|
|
8420
8681
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
8421
8682
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
8422
8683
|
"pluginType": "core",
|
|
@@ -8426,8 +8687,8 @@
|
|
|
8426
8687
|
"relativePath": [
|
|
8427
8688
|
"dist",
|
|
8428
8689
|
"commands",
|
|
8429
|
-
"
|
|
8430
|
-
"
|
|
8690
|
+
"transaction",
|
|
8691
|
+
"list.js"
|
|
8431
8692
|
]
|
|
8432
8693
|
},
|
|
8433
8694
|
"task:approve": {
|
|
@@ -9276,13 +9537,19 @@
|
|
|
9276
9537
|
"resolve.js"
|
|
9277
9538
|
]
|
|
9278
9539
|
},
|
|
9279
|
-
"
|
|
9540
|
+
"workflow:create": {
|
|
9280
9541
|
"aliases": [],
|
|
9281
9542
|
"args": {},
|
|
9282
|
-
"description": "
|
|
9543
|
+
"description": "Create a complete workflow from a JSON specification file.",
|
|
9283
9544
|
"examples": [
|
|
9284
|
-
|
|
9285
|
-
|
|
9545
|
+
{
|
|
9546
|
+
"command": "<%= config.bin %> <%= command.id %> --spec ./workflow.json --auth dev",
|
|
9547
|
+
"description": "Create a workflow from a JSON spec file"
|
|
9548
|
+
},
|
|
9549
|
+
{
|
|
9550
|
+
"command": "<%= config.bin %> <%= command.id %> -s ./workflow.json --json --auth dev",
|
|
9551
|
+
"description": "Create a workflow and output result as JSON"
|
|
9552
|
+
}
|
|
9286
9553
|
],
|
|
9287
9554
|
"flags": {
|
|
9288
9555
|
"json": {
|
|
@@ -9366,16 +9633,10 @@
|
|
|
9366
9633
|
"allowNo": false,
|
|
9367
9634
|
"type": "boolean"
|
|
9368
9635
|
},
|
|
9369
|
-
"
|
|
9370
|
-
"
|
|
9371
|
-
"
|
|
9372
|
-
"
|
|
9373
|
-
"type": "boolean"
|
|
9374
|
-
},
|
|
9375
|
-
"transaction-id": {
|
|
9376
|
-
"char": "t",
|
|
9377
|
-
"description": "Exact 32-character hexadecimal sys_id from `nex transaction list`.",
|
|
9378
|
-
"name": "transaction-id",
|
|
9636
|
+
"spec": {
|
|
9637
|
+
"char": "s",
|
|
9638
|
+
"description": "Path to workflow JSON specification file",
|
|
9639
|
+
"name": "spec",
|
|
9379
9640
|
"required": true,
|
|
9380
9641
|
"hasDynamicHelp": false,
|
|
9381
9642
|
"multiple": false,
|
|
@@ -9384,7 +9645,7 @@
|
|
|
9384
9645
|
},
|
|
9385
9646
|
"hasDynamicHelp": false,
|
|
9386
9647
|
"hiddenAliases": [],
|
|
9387
|
-
"id": "
|
|
9648
|
+
"id": "workflow:create",
|
|
9388
9649
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
9389
9650
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
9390
9651
|
"pluginType": "core",
|
|
@@ -9394,19 +9655,23 @@
|
|
|
9394
9655
|
"relativePath": [
|
|
9395
9656
|
"dist",
|
|
9396
9657
|
"commands",
|
|
9397
|
-
"
|
|
9398
|
-
"
|
|
9658
|
+
"workflow",
|
|
9659
|
+
"create.js"
|
|
9399
9660
|
]
|
|
9400
9661
|
},
|
|
9401
|
-
"
|
|
9662
|
+
"workflow:publish": {
|
|
9402
9663
|
"aliases": [],
|
|
9403
9664
|
"args": {},
|
|
9404
|
-
"description": "
|
|
9665
|
+
"description": "Publish a workflow version.",
|
|
9405
9666
|
"examples": [
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9667
|
+
{
|
|
9668
|
+
"command": "<%= config.bin %> <%= command.id %> --version-id wfv-001 --start-activity act-001 --auth dev",
|
|
9669
|
+
"description": "Publish a workflow version"
|
|
9670
|
+
},
|
|
9671
|
+
{
|
|
9672
|
+
"command": "<%= config.bin %> <%= command.id %> -v wfv-001 -s act-001 --json --auth dev",
|
|
9673
|
+
"description": "Publish a workflow version and output as JSON"
|
|
9674
|
+
}
|
|
9410
9675
|
],
|
|
9411
9676
|
"flags": {
|
|
9412
9677
|
"json": {
|
|
@@ -9490,32 +9755,20 @@
|
|
|
9490
9755
|
"allowNo": false,
|
|
9491
9756
|
"type": "boolean"
|
|
9492
9757
|
},
|
|
9493
|
-
"
|
|
9494
|
-
"char": "
|
|
9495
|
-
"description": "
|
|
9496
|
-
"name": "
|
|
9497
|
-
"
|
|
9498
|
-
"multiple": false,
|
|
9499
|
-
"type": "option"
|
|
9500
|
-
},
|
|
9501
|
-
"poll-interval-ms": {
|
|
9502
|
-
"description": "Interval between collection status polls. Core default: 1000.",
|
|
9503
|
-
"name": "poll-interval-ms",
|
|
9504
|
-
"hasDynamicHelp": false,
|
|
9505
|
-
"multiple": false,
|
|
9506
|
-
"type": "option"
|
|
9507
|
-
},
|
|
9508
|
-
"query": {
|
|
9509
|
-
"char": "q",
|
|
9510
|
-
"description": "Encoded query used to filter transactions. Core default: none.",
|
|
9511
|
-
"name": "query",
|
|
9758
|
+
"start-activity": {
|
|
9759
|
+
"char": "s",
|
|
9760
|
+
"description": "Sys ID of the start activity",
|
|
9761
|
+
"name": "start-activity",
|
|
9762
|
+
"required": true,
|
|
9512
9763
|
"hasDynamicHelp": false,
|
|
9513
9764
|
"multiple": false,
|
|
9514
9765
|
"type": "option"
|
|
9515
9766
|
},
|
|
9516
|
-
"
|
|
9517
|
-
"
|
|
9518
|
-
"
|
|
9767
|
+
"version-id": {
|
|
9768
|
+
"char": "v",
|
|
9769
|
+
"description": "Sys ID of the workflow version to publish",
|
|
9770
|
+
"name": "version-id",
|
|
9771
|
+
"required": true,
|
|
9519
9772
|
"hasDynamicHelp": false,
|
|
9520
9773
|
"multiple": false,
|
|
9521
9774
|
"type": "option"
|
|
@@ -9523,7 +9776,7 @@
|
|
|
9523
9776
|
},
|
|
9524
9777
|
"hasDynamicHelp": false,
|
|
9525
9778
|
"hiddenAliases": [],
|
|
9526
|
-
"id": "
|
|
9779
|
+
"id": "workflow:publish",
|
|
9527
9780
|
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
9528
9781
|
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
9529
9782
|
"pluginType": "core",
|
|
@@ -9532,9 +9785,9 @@
|
|
|
9532
9785
|
"isESM": true,
|
|
9533
9786
|
"relativePath": [
|
|
9534
9787
|
"dist",
|
|
9535
|
-
"commands",
|
|
9536
|
-
"
|
|
9537
|
-
"
|
|
9788
|
+
"commands",
|
|
9789
|
+
"workflow",
|
|
9790
|
+
"publish.js"
|
|
9538
9791
|
]
|
|
9539
9792
|
},
|
|
9540
9793
|
"update-set:clone": {
|
|
@@ -10335,259 +10588,6 @@
|
|
|
10335
10588
|
"move.js"
|
|
10336
10589
|
]
|
|
10337
10590
|
},
|
|
10338
|
-
"workflow:create": {
|
|
10339
|
-
"aliases": [],
|
|
10340
|
-
"args": {},
|
|
10341
|
-
"description": "Create a complete workflow from a JSON specification file.",
|
|
10342
|
-
"examples": [
|
|
10343
|
-
{
|
|
10344
|
-
"command": "<%= config.bin %> <%= command.id %> --spec ./workflow.json --auth dev",
|
|
10345
|
-
"description": "Create a workflow from a JSON spec file"
|
|
10346
|
-
},
|
|
10347
|
-
{
|
|
10348
|
-
"command": "<%= config.bin %> <%= command.id %> -s ./workflow.json --json --auth dev",
|
|
10349
|
-
"description": "Create a workflow and output result as JSON"
|
|
10350
|
-
}
|
|
10351
|
-
],
|
|
10352
|
-
"flags": {
|
|
10353
|
-
"json": {
|
|
10354
|
-
"description": "Format output as json.",
|
|
10355
|
-
"helpGroup": "GLOBAL",
|
|
10356
|
-
"name": "json",
|
|
10357
|
-
"allowNo": false,
|
|
10358
|
-
"type": "boolean"
|
|
10359
|
-
},
|
|
10360
|
-
"auth": {
|
|
10361
|
-
"char": "a",
|
|
10362
|
-
"description": "Auth alias to use.",
|
|
10363
|
-
"name": "auth",
|
|
10364
|
-
"required": false,
|
|
10365
|
-
"hasDynamicHelp": false,
|
|
10366
|
-
"multiple": false,
|
|
10367
|
-
"type": "option"
|
|
10368
|
-
},
|
|
10369
|
-
"cred-store": {
|
|
10370
|
-
"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.",
|
|
10371
|
-
"helpGroup": "GLOBAL",
|
|
10372
|
-
"name": "cred-store",
|
|
10373
|
-
"required": false,
|
|
10374
|
-
"allowNo": false,
|
|
10375
|
-
"type": "boolean"
|
|
10376
|
-
},
|
|
10377
|
-
"deny-execute": {
|
|
10378
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
10379
|
-
"helpGroup": "GLOBAL",
|
|
10380
|
-
"name": "deny-execute",
|
|
10381
|
-
"required": false,
|
|
10382
|
-
"allowNo": false,
|
|
10383
|
-
"type": "boolean"
|
|
10384
|
-
},
|
|
10385
|
-
"deny-write": {
|
|
10386
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
10387
|
-
"helpGroup": "GLOBAL",
|
|
10388
|
-
"name": "deny-write",
|
|
10389
|
-
"required": false,
|
|
10390
|
-
"allowNo": false,
|
|
10391
|
-
"type": "boolean"
|
|
10392
|
-
},
|
|
10393
|
-
"log-dir": {
|
|
10394
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
10395
|
-
"helpGroup": "GLOBAL",
|
|
10396
|
-
"name": "log-dir",
|
|
10397
|
-
"required": false,
|
|
10398
|
-
"hasDynamicHelp": false,
|
|
10399
|
-
"multiple": false,
|
|
10400
|
-
"type": "option"
|
|
10401
|
-
},
|
|
10402
|
-
"log-file": {
|
|
10403
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
10404
|
-
"helpGroup": "GLOBAL",
|
|
10405
|
-
"name": "log-file",
|
|
10406
|
-
"required": false,
|
|
10407
|
-
"allowNo": false,
|
|
10408
|
-
"type": "boolean"
|
|
10409
|
-
},
|
|
10410
|
-
"log-level": {
|
|
10411
|
-
"helpGroup": "GLOBAL",
|
|
10412
|
-
"name": "log-level",
|
|
10413
|
-
"summary": "Specify level for logging.",
|
|
10414
|
-
"default": "info",
|
|
10415
|
-
"hasDynamicHelp": false,
|
|
10416
|
-
"multiple": false,
|
|
10417
|
-
"options": [
|
|
10418
|
-
"debug",
|
|
10419
|
-
"warn",
|
|
10420
|
-
"error",
|
|
10421
|
-
"info",
|
|
10422
|
-
"trace"
|
|
10423
|
-
],
|
|
10424
|
-
"type": "option"
|
|
10425
|
-
},
|
|
10426
|
-
"read-only": {
|
|
10427
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
10428
|
-
"helpGroup": "GLOBAL",
|
|
10429
|
-
"name": "read-only",
|
|
10430
|
-
"required": false,
|
|
10431
|
-
"allowNo": false,
|
|
10432
|
-
"type": "boolean"
|
|
10433
|
-
},
|
|
10434
|
-
"spec": {
|
|
10435
|
-
"char": "s",
|
|
10436
|
-
"description": "Path to workflow JSON specification file",
|
|
10437
|
-
"name": "spec",
|
|
10438
|
-
"required": true,
|
|
10439
|
-
"hasDynamicHelp": false,
|
|
10440
|
-
"multiple": false,
|
|
10441
|
-
"type": "option"
|
|
10442
|
-
}
|
|
10443
|
-
},
|
|
10444
|
-
"hasDynamicHelp": false,
|
|
10445
|
-
"hiddenAliases": [],
|
|
10446
|
-
"id": "workflow:create",
|
|
10447
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
10448
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
10449
|
-
"pluginType": "core",
|
|
10450
|
-
"strict": true,
|
|
10451
|
-
"enableJsonFlag": true,
|
|
10452
|
-
"isESM": true,
|
|
10453
|
-
"relativePath": [
|
|
10454
|
-
"dist",
|
|
10455
|
-
"commands",
|
|
10456
|
-
"workflow",
|
|
10457
|
-
"create.js"
|
|
10458
|
-
]
|
|
10459
|
-
},
|
|
10460
|
-
"workflow:publish": {
|
|
10461
|
-
"aliases": [],
|
|
10462
|
-
"args": {},
|
|
10463
|
-
"description": "Publish a workflow version.",
|
|
10464
|
-
"examples": [
|
|
10465
|
-
{
|
|
10466
|
-
"command": "<%= config.bin %> <%= command.id %> --version-id wfv-001 --start-activity act-001 --auth dev",
|
|
10467
|
-
"description": "Publish a workflow version"
|
|
10468
|
-
},
|
|
10469
|
-
{
|
|
10470
|
-
"command": "<%= config.bin %> <%= command.id %> -v wfv-001 -s act-001 --json --auth dev",
|
|
10471
|
-
"description": "Publish a workflow version and output as JSON"
|
|
10472
|
-
}
|
|
10473
|
-
],
|
|
10474
|
-
"flags": {
|
|
10475
|
-
"json": {
|
|
10476
|
-
"description": "Format output as json.",
|
|
10477
|
-
"helpGroup": "GLOBAL",
|
|
10478
|
-
"name": "json",
|
|
10479
|
-
"allowNo": false,
|
|
10480
|
-
"type": "boolean"
|
|
10481
|
-
},
|
|
10482
|
-
"auth": {
|
|
10483
|
-
"char": "a",
|
|
10484
|
-
"description": "Auth alias to use.",
|
|
10485
|
-
"name": "auth",
|
|
10486
|
-
"required": false,
|
|
10487
|
-
"hasDynamicHelp": false,
|
|
10488
|
-
"multiple": false,
|
|
10489
|
-
"type": "option"
|
|
10490
|
-
},
|
|
10491
|
-
"cred-store": {
|
|
10492
|
-
"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.",
|
|
10493
|
-
"helpGroup": "GLOBAL",
|
|
10494
|
-
"name": "cred-store",
|
|
10495
|
-
"required": false,
|
|
10496
|
-
"allowNo": false,
|
|
10497
|
-
"type": "boolean"
|
|
10498
|
-
},
|
|
10499
|
-
"deny-execute": {
|
|
10500
|
-
"description": "Refuse background scripts, flow runs and ATF runs for this invocation.",
|
|
10501
|
-
"helpGroup": "GLOBAL",
|
|
10502
|
-
"name": "deny-execute",
|
|
10503
|
-
"required": false,
|
|
10504
|
-
"allowNo": false,
|
|
10505
|
-
"type": "boolean"
|
|
10506
|
-
},
|
|
10507
|
-
"deny-write": {
|
|
10508
|
-
"description": "Refuse any change to instance data for this invocation.",
|
|
10509
|
-
"helpGroup": "GLOBAL",
|
|
10510
|
-
"name": "deny-write",
|
|
10511
|
-
"required": false,
|
|
10512
|
-
"allowNo": false,
|
|
10513
|
-
"type": "boolean"
|
|
10514
|
-
},
|
|
10515
|
-
"log-dir": {
|
|
10516
|
-
"description": "Directory to write log files to. Implies --log-file.",
|
|
10517
|
-
"helpGroup": "GLOBAL",
|
|
10518
|
-
"name": "log-dir",
|
|
10519
|
-
"required": false,
|
|
10520
|
-
"hasDynamicHelp": false,
|
|
10521
|
-
"multiple": false,
|
|
10522
|
-
"type": "option"
|
|
10523
|
-
},
|
|
10524
|
-
"log-file": {
|
|
10525
|
-
"description": "Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs (~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to stderr only.",
|
|
10526
|
-
"helpGroup": "GLOBAL",
|
|
10527
|
-
"name": "log-file",
|
|
10528
|
-
"required": false,
|
|
10529
|
-
"allowNo": false,
|
|
10530
|
-
"type": "boolean"
|
|
10531
|
-
},
|
|
10532
|
-
"log-level": {
|
|
10533
|
-
"helpGroup": "GLOBAL",
|
|
10534
|
-
"name": "log-level",
|
|
10535
|
-
"summary": "Specify level for logging.",
|
|
10536
|
-
"default": "info",
|
|
10537
|
-
"hasDynamicHelp": false,
|
|
10538
|
-
"multiple": false,
|
|
10539
|
-
"options": [
|
|
10540
|
-
"debug",
|
|
10541
|
-
"warn",
|
|
10542
|
-
"error",
|
|
10543
|
-
"info",
|
|
10544
|
-
"trace"
|
|
10545
|
-
],
|
|
10546
|
-
"type": "option"
|
|
10547
|
-
},
|
|
10548
|
-
"read-only": {
|
|
10549
|
-
"description": "Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are unaffected.",
|
|
10550
|
-
"helpGroup": "GLOBAL",
|
|
10551
|
-
"name": "read-only",
|
|
10552
|
-
"required": false,
|
|
10553
|
-
"allowNo": false,
|
|
10554
|
-
"type": "boolean"
|
|
10555
|
-
},
|
|
10556
|
-
"start-activity": {
|
|
10557
|
-
"char": "s",
|
|
10558
|
-
"description": "Sys ID of the start activity",
|
|
10559
|
-
"name": "start-activity",
|
|
10560
|
-
"required": true,
|
|
10561
|
-
"hasDynamicHelp": false,
|
|
10562
|
-
"multiple": false,
|
|
10563
|
-
"type": "option"
|
|
10564
|
-
},
|
|
10565
|
-
"version-id": {
|
|
10566
|
-
"char": "v",
|
|
10567
|
-
"description": "Sys ID of the workflow version to publish",
|
|
10568
|
-
"name": "version-id",
|
|
10569
|
-
"required": true,
|
|
10570
|
-
"hasDynamicHelp": false,
|
|
10571
|
-
"multiple": false,
|
|
10572
|
-
"type": "option"
|
|
10573
|
-
}
|
|
10574
|
-
},
|
|
10575
|
-
"hasDynamicHelp": false,
|
|
10576
|
-
"hiddenAliases": [],
|
|
10577
|
-
"id": "workflow:publish",
|
|
10578
|
-
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
10579
|
-
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
10580
|
-
"pluginType": "core",
|
|
10581
|
-
"strict": true,
|
|
10582
|
-
"enableJsonFlag": true,
|
|
10583
|
-
"isESM": true,
|
|
10584
|
-
"relativePath": [
|
|
10585
|
-
"dist",
|
|
10586
|
-
"commands",
|
|
10587
|
-
"workflow",
|
|
10588
|
-
"publish.js"
|
|
10589
|
-
]
|
|
10590
|
-
},
|
|
10591
10591
|
"xml:export": {
|
|
10592
10592
|
"aliases": [],
|
|
10593
10593
|
"args": {},
|
|
@@ -10866,5 +10866,5 @@
|
|
|
10866
10866
|
]
|
|
10867
10867
|
}
|
|
10868
10868
|
},
|
|
10869
|
-
"version": "5.7.
|
|
10869
|
+
"version": "5.7.2"
|
|
10870
10870
|
}
|