@sonisoft/now-sdk-ext-cli 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +166 -73
- package/dist/commands/flow/definition.d.ts +31 -0
- package/dist/commands/flow/definition.d.ts.map +1 -0
- package/dist/commands/flow/definition.js +166 -0
- package/dist/commands/flow/definition.js.map +1 -0
- package/dist/services/flow-display.service.d.ts +30 -1
- package/dist/services/flow-display.service.d.ts.map +1 -1
- package/dist/services/flow-display.service.js +134 -0
- package/dist/services/flow-display.service.js.map +1 -1
- package/oclif.manifest.json +954 -796
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -505,6 +505,19 @@ nex flow cancel --context-id ctx-abc123 --reason "No longer needed" --auth dev
|
|
|
505
505
|
|
|
506
506
|
# Send a message to a waiting flow (e.g., approval)
|
|
507
507
|
nex flow message --context-id ctx-abc123 --message approved --payload '{"approver":"admin"}' --auth dev
|
|
508
|
+
|
|
509
|
+
# Read a flow's design-time definition (nothing is executed; no context is created)
|
|
510
|
+
nex flow definition --sys-id 887dda5583237210fdb8f7b6feaad32c --auth dev
|
|
511
|
+
|
|
512
|
+
# Read a subflow definition
|
|
513
|
+
nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type subflow --auth dev
|
|
514
|
+
|
|
515
|
+
# Read a custom action definition with its ordered steps
|
|
516
|
+
nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type action --auth dev
|
|
517
|
+
|
|
518
|
+
# Redirect the full JSON definition to a file, or pipe it into another tool
|
|
519
|
+
nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --json --auth dev > flow.json
|
|
520
|
+
nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type action --json --auth dev | jq .summary.steps
|
|
508
521
|
```
|
|
509
522
|
|
|
510
523
|
**Features:**
|
|
@@ -512,6 +525,8 @@ nex flow message --context-id ctx-abc123 --message approved --payload '{"approve
|
|
|
512
525
|
- Foreground (wait) or background execution modes
|
|
513
526
|
- Query flow context status, outputs, and errors
|
|
514
527
|
- Cancel running flows and send messages to paused flows
|
|
528
|
+
- Read design-time definitions of flows, subflows, and actions — read-only, and
|
|
529
|
+
distinct from `flow details`, which reports on one past execution
|
|
515
530
|
- JSON output for automation and CI/CD
|
|
516
531
|
|
|
517
532
|
### Bulk Record Operations
|
|
@@ -591,6 +606,10 @@ nex bulk update --table incident --query "state=7" --data '{"active":"false"}' -
|
|
|
591
606
|
* [Check for errors](#check-for-errors)
|
|
592
607
|
* [Cancel a running flow](#cancel-a-running-flow)
|
|
593
608
|
* [Send a message to a waiting flow (e.g., approval)](#send-a-message-to-a-waiting-flow-eg-approval)
|
|
609
|
+
* [Read a flow's design-time definition (nothing is executed; no context is created)](#read-a-flows-design-time-definition-nothing-is-executed-no-context-is-created)
|
|
610
|
+
* [Read a subflow definition](#read-a-subflow-definition)
|
|
611
|
+
* [Read a custom action definition with its ordered steps](#read-a-custom-action-definition-with-its-ordered-steps)
|
|
612
|
+
* [Redirect the full JSON definition to a file, or pipe it into another tool](#redirect-the-full-json-definition-to-a-file-or-pipe-it-into-another-tool)
|
|
594
613
|
* [Dry-run: preview which records would be updated (safe default)](#dry-run-preview-which-records-would-be-updated-safe-default)
|
|
595
614
|
* [Confirm bulk update (actually modifies records)](#confirm-bulk-update-actually-modifies-records)
|
|
596
615
|
* [Dry-run: preview which records would be deleted](#dry-run-preview-which-records-would-be-deleted)
|
|
@@ -689,7 +708,7 @@ $ npm install -g @sonisoft/now-sdk-ext-cli
|
|
|
689
708
|
$ nex COMMAND
|
|
690
709
|
running command...
|
|
691
710
|
$ nex (--version)
|
|
692
|
-
@sonisoft/now-sdk-ext-cli/5.
|
|
711
|
+
@sonisoft/now-sdk-ext-cli/5.3.0 linux-x64 node-v26.5.0
|
|
693
712
|
$ nex --help [COMMAND]
|
|
694
713
|
USAGE
|
|
695
714
|
$ nex COMMAND
|
|
@@ -749,6 +768,7 @@ rather than silently denying nothing.
|
|
|
749
768
|
* [`nex flow action`](#nex-flow-action)
|
|
750
769
|
* [`nex flow cancel`](#nex-flow-cancel)
|
|
751
770
|
* [`nex flow copy`](#nex-flow-copy)
|
|
771
|
+
* [`nex flow definition`](#nex-flow-definition)
|
|
752
772
|
* [`nex flow details`](#nex-flow-details)
|
|
753
773
|
* [`nex flow error`](#nex-flow-error)
|
|
754
774
|
* [`nex flow logs`](#nex-flow-logs)
|
|
@@ -862,7 +882,7 @@ EXAMPLES
|
|
|
862
882
|
$ nex aggregate count --table incident --query "active=true" --json --auth dev
|
|
863
883
|
```
|
|
864
884
|
|
|
865
|
-
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
885
|
+
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/aggregate/count.ts)_
|
|
866
886
|
|
|
867
887
|
## `nex aggregate group`
|
|
868
888
|
|
|
@@ -930,7 +950,7 @@ EXAMPLES
|
|
|
930
950
|
$ nex aggregate group --table incident --group-by priority --count --having "count>10" --auth dev
|
|
931
951
|
```
|
|
932
952
|
|
|
933
|
-
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
953
|
+
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/aggregate/group.ts)_
|
|
934
954
|
|
|
935
955
|
## `nex aggregate query`
|
|
936
956
|
|
|
@@ -993,7 +1013,7 @@ EXAMPLES
|
|
|
993
1013
|
$ nex aggregate query --table incident --sum reassignment_count --json --auth dev
|
|
994
1014
|
```
|
|
995
1015
|
|
|
996
|
-
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1016
|
+
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/aggregate/query.ts)_
|
|
997
1017
|
|
|
998
1018
|
## `nex app`
|
|
999
1019
|
|
|
@@ -1056,7 +1076,7 @@ EXAMPLES
|
|
|
1056
1076
|
$ nex app -u -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
1057
1077
|
```
|
|
1058
1078
|
|
|
1059
|
-
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1079
|
+
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/app/index.ts)_
|
|
1060
1080
|
|
|
1061
1081
|
## `nex app install`
|
|
1062
1082
|
|
|
@@ -1124,7 +1144,7 @@ EXAMPLES
|
|
|
1124
1144
|
$ nex app install -b -d ./apps.json -a dev-instance --log-level debug
|
|
1125
1145
|
```
|
|
1126
1146
|
|
|
1127
|
-
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1147
|
+
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/app/install.ts)_
|
|
1128
1148
|
|
|
1129
1149
|
## `nex app repo-install`
|
|
1130
1150
|
|
|
@@ -1209,7 +1229,7 @@ EXAMPLES
|
|
|
1209
1229
|
$ nex app repo-install -s x_my_app -a dev-instance --log-level debug
|
|
1210
1230
|
```
|
|
1211
1231
|
|
|
1212
|
-
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1232
|
+
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/app/repo-install.ts)_
|
|
1213
1233
|
|
|
1214
1234
|
## `nex app repo-list`
|
|
1215
1235
|
|
|
@@ -1284,7 +1304,7 @@ EXAMPLES
|
|
|
1284
1304
|
$ nex app repo-list -a dev-instance
|
|
1285
1305
|
```
|
|
1286
1306
|
|
|
1287
|
-
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1307
|
+
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/app/repo-list.ts)_
|
|
1288
1308
|
|
|
1289
1309
|
## `nex app uninstall`
|
|
1290
1310
|
|
|
@@ -1346,7 +1366,7 @@ EXAMPLES
|
|
|
1346
1366
|
$ nex app uninstall -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
1347
1367
|
```
|
|
1348
1368
|
|
|
1349
|
-
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1369
|
+
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/app/uninstall.ts)_
|
|
1350
1370
|
|
|
1351
1371
|
## `nex atf`
|
|
1352
1372
|
|
|
@@ -1429,7 +1449,7 @@ EXAMPLES
|
|
|
1429
1449
|
$ nex atf --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance
|
|
1430
1450
|
```
|
|
1431
1451
|
|
|
1432
|
-
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1452
|
+
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/atf/index.ts)_
|
|
1433
1453
|
|
|
1434
1454
|
## `nex attachment get`
|
|
1435
1455
|
|
|
@@ -1472,7 +1492,7 @@ EXAMPLES
|
|
|
1472
1492
|
$ nex attachment get -s att123 --json --auth dev
|
|
1473
1493
|
```
|
|
1474
1494
|
|
|
1475
|
-
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1495
|
+
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/attachment/get.ts)_
|
|
1476
1496
|
|
|
1477
1497
|
## `nex attachment list`
|
|
1478
1498
|
|
|
@@ -1517,7 +1537,7 @@ EXAMPLES
|
|
|
1517
1537
|
$ nex attachment list -t incident -r abc123 --limit 50 --json --auth dev
|
|
1518
1538
|
```
|
|
1519
1539
|
|
|
1520
|
-
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1540
|
+
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/attachment/list.ts)_
|
|
1521
1541
|
|
|
1522
1542
|
## `nex attachment upload`
|
|
1523
1543
|
|
|
@@ -1564,7 +1584,7 @@ EXAMPLES
|
|
|
1564
1584
|
$ nex attachment upload -t incident -r abc123 -f ./data.csv --content-type text/csv --auth dev
|
|
1565
1585
|
```
|
|
1566
1586
|
|
|
1567
|
-
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1587
|
+
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/attachment/upload.ts)_
|
|
1568
1588
|
|
|
1569
1589
|
## `nex auth delete [ALIAS]`
|
|
1570
1590
|
|
|
@@ -1599,7 +1619,7 @@ EXAMPLES
|
|
|
1599
1619
|
$ nex auth delete --all
|
|
1600
1620
|
```
|
|
1601
1621
|
|
|
1602
|
-
_See code: [src/commands/auth/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1622
|
+
_See code: [src/commands/auth/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/auth/delete.ts)_
|
|
1603
1623
|
|
|
1604
1624
|
## `nex auth doctor`
|
|
1605
1625
|
|
|
@@ -1627,7 +1647,7 @@ EXAMPLES
|
|
|
1627
1647
|
$ nex auth doctor --json
|
|
1628
1648
|
```
|
|
1629
1649
|
|
|
1630
|
-
_See code: [src/commands/auth/doctor.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1650
|
+
_See code: [src/commands/auth/doctor.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/auth/doctor.ts)_
|
|
1631
1651
|
|
|
1632
1652
|
## `nex auth list`
|
|
1633
1653
|
|
|
@@ -1660,7 +1680,7 @@ EXAMPLES
|
|
|
1660
1680
|
$ nex auth list --json
|
|
1661
1681
|
```
|
|
1662
1682
|
|
|
1663
|
-
_See code: [src/commands/auth/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1683
|
+
_See code: [src/commands/auth/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/auth/list.ts)_
|
|
1664
1684
|
|
|
1665
1685
|
## `nex auth use ALIAS`
|
|
1666
1686
|
|
|
@@ -1688,7 +1708,7 @@ EXAMPLES
|
|
|
1688
1708
|
$ nex auth use dev206299
|
|
1689
1709
|
```
|
|
1690
1710
|
|
|
1691
|
-
_See code: [src/commands/auth/use.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1711
|
+
_See code: [src/commands/auth/use.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/auth/use.ts)_
|
|
1692
1712
|
|
|
1693
1713
|
## `nex autocomplete [SHELL]`
|
|
1694
1714
|
|
|
@@ -1763,7 +1783,7 @@ EXAMPLES
|
|
|
1763
1783
|
$ nex batch create --file ./records.json --no-transaction --auth dev
|
|
1764
1784
|
```
|
|
1765
1785
|
|
|
1766
|
-
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1786
|
+
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/batch/create.ts)_
|
|
1767
1787
|
|
|
1768
1788
|
## `nex batch update`
|
|
1769
1789
|
|
|
@@ -1807,7 +1827,7 @@ EXAMPLES
|
|
|
1807
1827
|
$ nex batch update --file ./updates.json --stop-on-error --auth dev
|
|
1808
1828
|
```
|
|
1809
1829
|
|
|
1810
|
-
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1830
|
+
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/batch/update.ts)_
|
|
1811
1831
|
|
|
1812
1832
|
## `nex bulk delete`
|
|
1813
1833
|
|
|
@@ -1871,7 +1891,7 @@ EXAMPLES
|
|
|
1871
1891
|
$ nex bulk delete --table u_staging --query "processed=true" --confirm --json --auth dev
|
|
1872
1892
|
```
|
|
1873
1893
|
|
|
1874
|
-
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1894
|
+
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/bulk/delete.ts)_
|
|
1875
1895
|
|
|
1876
1896
|
## `nex bulk update`
|
|
1877
1897
|
|
|
@@ -1940,7 +1960,7 @@ EXAMPLES
|
|
|
1940
1960
|
$ nex bulk update --table incident --query "active=true" --data '{"state":"6"}' --confirm --json --auth dev
|
|
1941
1961
|
```
|
|
1942
1962
|
|
|
1943
|
-
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1963
|
+
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/bulk/update.ts)_
|
|
1944
1964
|
|
|
1945
1965
|
## `nex exec SCOPE [FILE]`
|
|
1946
1966
|
|
|
@@ -2070,7 +2090,7 @@ EXAMPLES
|
|
|
2070
2090
|
$ nex exec global ./script.js --auth dev-instance --params '{"token":"abc123","env":"dev"}'
|
|
2071
2091
|
```
|
|
2072
2092
|
|
|
2073
|
-
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2093
|
+
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/exec/index.ts)_
|
|
2074
2094
|
|
|
2075
2095
|
## `nex flow action`
|
|
2076
2096
|
|
|
@@ -2124,7 +2144,7 @@ EXAMPLES
|
|
|
2124
2144
|
'{"table":"incident","values":{"short_description":"Test"}}' --auth dev
|
|
2125
2145
|
```
|
|
2126
2146
|
|
|
2127
|
-
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2147
|
+
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/action.ts)_
|
|
2128
2148
|
|
|
2129
2149
|
## `nex flow cancel`
|
|
2130
2150
|
|
|
@@ -2171,7 +2191,7 @@ EXAMPLES
|
|
|
2171
2191
|
$ nex flow cancel --context-id abc123def456 --reason "No longer needed" --auth dev
|
|
2172
2192
|
```
|
|
2173
2193
|
|
|
2174
|
-
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2194
|
+
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/cancel.ts)_
|
|
2175
2195
|
|
|
2176
2196
|
## `nex flow copy`
|
|
2177
2197
|
|
|
@@ -2236,7 +2256,80 @@ EXAMPLES
|
|
|
2236
2256
|
dev
|
|
2237
2257
|
```
|
|
2238
2258
|
|
|
2239
|
-
_See code: [src/commands/flow/copy.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2259
|
+
_See code: [src/commands/flow/copy.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/copy.ts)_
|
|
2260
|
+
|
|
2261
|
+
## `nex flow definition`
|
|
2262
|
+
|
|
2263
|
+
Retrieve the read-only design-time definition of a flow, subflow, or action.
|
|
2264
|
+
|
|
2265
|
+
```
|
|
2266
|
+
USAGE
|
|
2267
|
+
$ nex flow definition -i <value> [-j] [-a <value>] [--cred-store] [--deny-execute] [--deny-write] [--log-dir
|
|
2268
|
+
<value>] [--log-file] [--log-level debug|warn|error|info|trace] [--read-only] [-t flow|subflow|action] [--scope
|
|
2269
|
+
<value>]
|
|
2270
|
+
|
|
2271
|
+
FLAGS
|
|
2272
|
+
-a, --auth=<value> Auth alias to use.
|
|
2273
|
+
-i, --sys-id=<value> (required) sys_id of the flow, subflow, or action to retrieve
|
|
2274
|
+
-j, --json Output the complete typed result as JSON
|
|
2275
|
+
-t, --type=<option> [default: flow] Artifact type to retrieve. Must match what the sys_id actually is.
|
|
2276
|
+
<options: flow|subflow|action>
|
|
2277
|
+
--scope=<value> Scope sys_id or name for the transaction scope parameter. Optional — ServiceNow resolves the
|
|
2278
|
+
artifact's own scope when omitted.
|
|
2279
|
+
|
|
2280
|
+
GLOBAL FLAGS
|
|
2281
|
+
--cred-store Read credentials from @sonisoft/sn-credstore instead of the OS keyring. Use this in headless
|
|
2282
|
+
sessions (SSH, systemd, CI, agents) where the keyring cannot be unlocked.
|
|
2283
|
+
--deny-execute Refuse background scripts, flow runs and ATF runs for this invocation.
|
|
2284
|
+
--deny-write Refuse any change to instance data for this invocation.
|
|
2285
|
+
--log-dir=<value> Directory to write log files to. Implies --log-file.
|
|
2286
|
+
--log-file Write logs to a file. Defaults to $XDG_STATE_HOME/now-sdk-ext/logs
|
|
2287
|
+
(~/.local/state/now-sdk-ext/logs). Off by default; without this, nex logs warnings and errors to
|
|
2288
|
+
stderr only.
|
|
2289
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
2290
|
+
<options: debug|warn|error|info|trace>
|
|
2291
|
+
--read-only Refuse every change to the instance — equivalent to --deny-write --deny-execute. Reads are
|
|
2292
|
+
unaffected.
|
|
2293
|
+
|
|
2294
|
+
DESCRIPTION
|
|
2295
|
+
Retrieve the read-only design-time definition of a flow, subflow, or action.
|
|
2296
|
+
|
|
2297
|
+
Returns what the artifact IS, not what a run of it did: triggers, actions, nested subflows, flow logic, inputs and
|
|
2298
|
+
outputs as Workflow Studio stores them. Nothing is executed, published or modified, and no flow context is created or
|
|
2299
|
+
required.
|
|
2300
|
+
|
|
2301
|
+
This is the design-time counterpart to `flow details`, which describes one past execution and needs a context sys_id.
|
|
2302
|
+
|
|
2303
|
+
The type is never inferred from the sys_id: --type selects the artifact that is asked for, and a sys_id of a different
|
|
2304
|
+
type fails with a type_mismatch rather than being relabelled.
|
|
2305
|
+
|
|
2306
|
+
With --json, stdout carries exactly one JSON document — the complete typed result including the untouched ServiceNow
|
|
2307
|
+
payload — so it can be piped or redirected. Without it, a short summary is printed; definition bodies, step scripts
|
|
2308
|
+
and input values are never printed or logged.
|
|
2309
|
+
|
|
2310
|
+
EXAMPLES
|
|
2311
|
+
Summarise a flow definition
|
|
2312
|
+
|
|
2313
|
+
$ nex flow definition --sys-id 887dda5583237210fdb8f7b6feaad32c --auth dev
|
|
2314
|
+
|
|
2315
|
+
Retrieve a subflow definition
|
|
2316
|
+
|
|
2317
|
+
$ nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type subflow --auth dev
|
|
2318
|
+
|
|
2319
|
+
Retrieve a custom action definition with its ordered steps
|
|
2320
|
+
|
|
2321
|
+
$ nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type action --auth dev
|
|
2322
|
+
|
|
2323
|
+
Redirect the full JSON definition to a file
|
|
2324
|
+
|
|
2325
|
+
$ nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --json --auth dev > flow.json
|
|
2326
|
+
|
|
2327
|
+
Pipe the JSON definition into another tool
|
|
2328
|
+
|
|
2329
|
+
$ nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type action --json --auth dev | jq .summary.steps
|
|
2330
|
+
```
|
|
2331
|
+
|
|
2332
|
+
_See code: [src/commands/flow/definition.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/definition.ts)_
|
|
2240
2333
|
|
|
2241
2334
|
## `nex flow details`
|
|
2242
2335
|
|
|
@@ -2297,7 +2390,7 @@ EXAMPLES
|
|
|
2297
2390
|
$ nex flow details -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
2298
2391
|
```
|
|
2299
2392
|
|
|
2300
|
-
_See code: [src/commands/flow/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2393
|
+
_See code: [src/commands/flow/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/details.ts)_
|
|
2301
2394
|
|
|
2302
2395
|
## `nex flow error`
|
|
2303
2396
|
|
|
@@ -2339,7 +2432,7 @@ EXAMPLES
|
|
|
2339
2432
|
$ nex flow error --context-id abc123def456 --auth dev
|
|
2340
2433
|
```
|
|
2341
2434
|
|
|
2342
|
-
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2435
|
+
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/error.ts)_
|
|
2343
2436
|
|
|
2344
2437
|
## `nex flow logs`
|
|
2345
2438
|
|
|
@@ -2397,7 +2490,7 @@ EXAMPLES
|
|
|
2397
2490
|
$ nex flow logs -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
2398
2491
|
```
|
|
2399
2492
|
|
|
2400
|
-
_See code: [src/commands/flow/logs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2493
|
+
_See code: [src/commands/flow/logs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/logs.ts)_
|
|
2401
2494
|
|
|
2402
2495
|
## `nex flow message`
|
|
2403
2496
|
|
|
@@ -2447,7 +2540,7 @@ EXAMPLES
|
|
|
2447
2540
|
$ nex flow message --context-id abc123def456 --message "data_ready" --payload '{"status":"ok"}' --auth dev
|
|
2448
2541
|
```
|
|
2449
2542
|
|
|
2450
|
-
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2543
|
+
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/message.ts)_
|
|
2451
2544
|
|
|
2452
2545
|
## `nex flow outputs`
|
|
2453
2546
|
|
|
@@ -2493,7 +2586,7 @@ EXAMPLES
|
|
|
2493
2586
|
$ nex flow outputs --context-id abc123def456 --json --auth dev
|
|
2494
2587
|
```
|
|
2495
2588
|
|
|
2496
|
-
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2589
|
+
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/outputs.ts)_
|
|
2497
2590
|
|
|
2498
2591
|
## `nex flow run`
|
|
2499
2592
|
|
|
@@ -2559,7 +2652,7 @@ EXAMPLES
|
|
|
2559
2652
|
$ nex flow run --name global.my_flow --mode background --auth dev
|
|
2560
2653
|
```
|
|
2561
2654
|
|
|
2562
|
-
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2655
|
+
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/run.ts)_
|
|
2563
2656
|
|
|
2564
2657
|
## `nex flow status`
|
|
2565
2658
|
|
|
@@ -2603,7 +2696,7 @@ EXAMPLES
|
|
|
2603
2696
|
$ nex flow status --context-id abc123def456 --auth dev
|
|
2604
2697
|
```
|
|
2605
2698
|
|
|
2606
|
-
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2699
|
+
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/status.ts)_
|
|
2607
2700
|
|
|
2608
2701
|
## `nex flow subflow`
|
|
2609
2702
|
|
|
@@ -2663,7 +2756,7 @@ EXAMPLES
|
|
|
2663
2756
|
$ nex flow subflow --name x_myapp.process_record --inputs '{"table":"incident","sys_id":"abc123"}' --auth dev
|
|
2664
2757
|
```
|
|
2665
2758
|
|
|
2666
|
-
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2759
|
+
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/subflow.ts)_
|
|
2667
2760
|
|
|
2668
2761
|
## `nex flow test`
|
|
2669
2762
|
|
|
@@ -2726,7 +2819,7 @@ EXAMPLES
|
|
|
2726
2819
|
$ nex flow test -f 887dda5583237210fdb8f7b6feaad32c -o '{"current":"abc123"}' --json --auth dev
|
|
2727
2820
|
```
|
|
2728
2821
|
|
|
2729
|
-
_See code: [src/commands/flow/test.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2822
|
+
_See code: [src/commands/flow/test.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/flow/test.ts)_
|
|
2730
2823
|
|
|
2731
2824
|
## `nex health check`
|
|
2732
2825
|
|
|
@@ -2796,7 +2889,7 @@ EXAMPLES
|
|
|
2796
2889
|
$ nex health check --json --auth dev
|
|
2797
2890
|
```
|
|
2798
2891
|
|
|
2799
|
-
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2892
|
+
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/health/check.ts)_
|
|
2800
2893
|
|
|
2801
2894
|
## `nex help [COMMAND]`
|
|
2802
2895
|
|
|
@@ -2932,7 +3025,7 @@ EXAMPLES
|
|
|
2932
3025
|
$ nex log --no-color --auth dev-instance
|
|
2933
3026
|
```
|
|
2934
3027
|
|
|
2935
|
-
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3028
|
+
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/log/index.ts)_
|
|
2936
3029
|
|
|
2937
3030
|
## `nex plugins`
|
|
2938
3031
|
|
|
@@ -3254,7 +3347,7 @@ EXAMPLES
|
|
|
3254
3347
|
NEX_POLICY_DENY=all nex policy status
|
|
3255
3348
|
```
|
|
3256
3349
|
|
|
3257
|
-
_See code: [src/commands/policy/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3350
|
+
_See code: [src/commands/policy/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/policy/status.ts)_
|
|
3258
3351
|
|
|
3259
3352
|
## `nex query`
|
|
3260
3353
|
|
|
@@ -3317,7 +3410,7 @@ EXAMPLES
|
|
|
3317
3410
|
$ nex query --table sys_user --query "active=true" --limit 5 --json --auth dev
|
|
3318
3411
|
```
|
|
3319
3412
|
|
|
3320
|
-
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3413
|
+
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/query/index.ts)_
|
|
3321
3414
|
|
|
3322
3415
|
## `nex query app`
|
|
3323
3416
|
|
|
@@ -3370,7 +3463,7 @@ EXAMPLES
|
|
|
3370
3463
|
$ nex query app --search "HR" --active --auth dev
|
|
3371
3464
|
```
|
|
3372
3465
|
|
|
3373
|
-
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3466
|
+
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/query/app.ts)_
|
|
3374
3467
|
|
|
3375
3468
|
## `nex query columns`
|
|
3376
3469
|
|
|
@@ -3425,7 +3518,7 @@ EXAMPLES
|
|
|
3425
3518
|
$ nex query columns --table incident --json --auth dev
|
|
3426
3519
|
```
|
|
3427
3520
|
|
|
3428
|
-
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3521
|
+
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/query/columns.ts)_
|
|
3429
3522
|
|
|
3430
3523
|
## `nex query syslog`
|
|
3431
3524
|
|
|
@@ -3482,7 +3575,7 @@ EXAMPLES
|
|
|
3482
3575
|
$ nex query syslog --query "sourceLIKEincident" --json --auth dev
|
|
3483
3576
|
```
|
|
3484
3577
|
|
|
3485
|
-
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3578
|
+
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/query/syslog.ts)_
|
|
3486
3579
|
|
|
3487
3580
|
## `nex schema`
|
|
3488
3581
|
|
|
@@ -3541,7 +3634,7 @@ EXAMPLES
|
|
|
3541
3634
|
$ nex schema --table incident --include-choices --include-relationships --auth dev
|
|
3542
3635
|
```
|
|
3543
3636
|
|
|
3544
|
-
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3637
|
+
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/schema/index.ts)_
|
|
3545
3638
|
|
|
3546
3639
|
## `nex schema field`
|
|
3547
3640
|
|
|
@@ -3588,7 +3681,7 @@ EXAMPLES
|
|
|
3588
3681
|
$ nex schema field --table incident --field priority --json --auth dev
|
|
3589
3682
|
```
|
|
3590
3683
|
|
|
3591
|
-
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3684
|
+
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/schema/field.ts)_
|
|
3592
3685
|
|
|
3593
3686
|
## `nex schema validate-catalog`
|
|
3594
3687
|
|
|
@@ -3634,7 +3727,7 @@ EXAMPLES
|
|
|
3634
3727
|
$ nex schema validate-catalog --sys-id a1b2c3d4e5f6 --json --auth dev
|
|
3635
3728
|
```
|
|
3636
3729
|
|
|
3637
|
-
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3730
|
+
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/schema/validate-catalog.ts)_
|
|
3638
3731
|
|
|
3639
3732
|
## `nex scope`
|
|
3640
3733
|
|
|
@@ -3681,7 +3774,7 @@ EXAMPLES
|
|
|
3681
3774
|
$ nex scope -l --json --auth dev
|
|
3682
3775
|
```
|
|
3683
3776
|
|
|
3684
|
-
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3777
|
+
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/scope/index.ts)_
|
|
3685
3778
|
|
|
3686
3779
|
## `nex scope set`
|
|
3687
3780
|
|
|
@@ -3724,7 +3817,7 @@ EXAMPLES
|
|
|
3724
3817
|
$ nex scope set -a abc123def456ghi789jkl012mno345pq --json --auth dev
|
|
3725
3818
|
```
|
|
3726
3819
|
|
|
3727
|
-
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3820
|
+
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/scope/set.ts)_
|
|
3728
3821
|
|
|
3729
3822
|
## `nex script-sync pull`
|
|
3730
3823
|
|
|
@@ -3784,7 +3877,7 @@ EXAMPLES
|
|
|
3784
3877
|
$ nex script-sync pull -n MyClientScript -t sys_script_client --json --auth dev-instance
|
|
3785
3878
|
```
|
|
3786
3879
|
|
|
3787
|
-
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3880
|
+
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/script-sync/pull.ts)_
|
|
3788
3881
|
|
|
3789
3882
|
## `nex script-sync push`
|
|
3790
3883
|
|
|
@@ -3845,7 +3938,7 @@ EXAMPLES
|
|
|
3845
3938
|
$ nex script-sync push -n MyUIScript -t sys_ui_script -f ./scripts/ui-script.js --json --auth dev-instance
|
|
3846
3939
|
```
|
|
3847
3940
|
|
|
3848
|
-
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3941
|
+
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/script-sync/push.ts)_
|
|
3849
3942
|
|
|
3850
3943
|
## `nex script-sync sync`
|
|
3851
3944
|
|
|
@@ -3904,7 +3997,7 @@ EXAMPLES
|
|
|
3904
3997
|
$ nex script-sync sync -d ./scripts --json --auth dev-instance
|
|
3905
3998
|
```
|
|
3906
3999
|
|
|
3907
|
-
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4000
|
+
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/script-sync/sync.ts)_
|
|
3908
4001
|
|
|
3909
4002
|
## `nex search`
|
|
3910
4003
|
|
|
@@ -3971,7 +4064,7 @@ EXAMPLES
|
|
|
3971
4064
|
$ nex search --term "GlideRecord" --limit 10 --json --auth dev-instance
|
|
3972
4065
|
```
|
|
3973
4066
|
|
|
3974
|
-
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4067
|
+
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/search/index.ts)_
|
|
3975
4068
|
|
|
3976
4069
|
## `nex search add-table`
|
|
3977
4070
|
|
|
@@ -4031,7 +4124,7 @@ EXAMPLES
|
|
|
4031
4124
|
dev-instance
|
|
4032
4125
|
```
|
|
4033
4126
|
|
|
4034
|
-
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4127
|
+
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/search/add-table.ts)_
|
|
4035
4128
|
|
|
4036
4129
|
## `nex search groups`
|
|
4037
4130
|
|
|
@@ -4080,7 +4173,7 @@ EXAMPLES
|
|
|
4080
4173
|
$ nex search groups --json --auth dev-instance
|
|
4081
4174
|
```
|
|
4082
4175
|
|
|
4083
|
-
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4176
|
+
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/search/groups.ts)_
|
|
4084
4177
|
|
|
4085
4178
|
## `nex search tables`
|
|
4086
4179
|
|
|
@@ -4131,7 +4224,7 @@ EXAMPLES
|
|
|
4131
4224
|
$ nex search tables --search-group "Business Rules" --json --auth dev-instance
|
|
4132
4225
|
```
|
|
4133
4226
|
|
|
4134
|
-
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4227
|
+
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/search/tables.ts)_
|
|
4135
4228
|
|
|
4136
4229
|
## `nex store install`
|
|
4137
4230
|
|
|
@@ -4184,7 +4277,7 @@ EXAMPLES
|
|
|
4184
4277
|
$ nex store install -a abc123 -v 1.0.0 --demo-data --auth dev
|
|
4185
4278
|
```
|
|
4186
4279
|
|
|
4187
|
-
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4280
|
+
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/store/install.ts)_
|
|
4188
4281
|
|
|
4189
4282
|
## `nex store search`
|
|
4190
4283
|
|
|
@@ -4235,7 +4328,7 @@ EXAMPLES
|
|
|
4235
4328
|
$ nex store search --tab updates --limit 10 --auth dev
|
|
4236
4329
|
```
|
|
4237
4330
|
|
|
4238
|
-
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4331
|
+
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/store/search.ts)_
|
|
4239
4332
|
|
|
4240
4333
|
## `nex store update`
|
|
4241
4334
|
|
|
@@ -4287,7 +4380,7 @@ EXAMPLES
|
|
|
4287
4380
|
$ nex store update -a abc123 -v 2.0.0 --timeout 3600000 --auth dev
|
|
4288
4381
|
```
|
|
4289
4382
|
|
|
4290
|
-
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4383
|
+
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/store/update.ts)_
|
|
4291
4384
|
|
|
4292
4385
|
## `nex store validate`
|
|
4293
4386
|
|
|
@@ -4326,7 +4419,7 @@ EXAMPLES
|
|
|
4326
4419
|
$ nex store validate --file ./batch-definition.json --auth dev
|
|
4327
4420
|
```
|
|
4328
4421
|
|
|
4329
|
-
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4422
|
+
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/store/validate.ts)_
|
|
4330
4423
|
|
|
4331
4424
|
## `nex task approve`
|
|
4332
4425
|
|
|
@@ -4377,7 +4470,7 @@ EXAMPLES
|
|
|
4377
4470
|
$ nex task approve -n CHG0010001 -c "Looks good, approved" --auth dev
|
|
4378
4471
|
```
|
|
4379
4472
|
|
|
4380
|
-
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4473
|
+
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/approve.ts)_
|
|
4381
4474
|
|
|
4382
4475
|
## `nex task assign`
|
|
4383
4476
|
|
|
@@ -4438,7 +4531,7 @@ EXAMPLES
|
|
|
4438
4531
|
$ nex task assign --number CHG0010001 --table change_request --user admin --auth dev
|
|
4439
4532
|
```
|
|
4440
4533
|
|
|
4441
|
-
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4534
|
+
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/assign.ts)_
|
|
4442
4535
|
|
|
4443
4536
|
## `nex task close`
|
|
4444
4537
|
|
|
@@ -4492,7 +4585,7 @@ EXAMPLES
|
|
|
4492
4585
|
$ nex task close -n INC0010001 --notes "Closed" --close-code "Solved (Permanently)" --auth dev
|
|
4493
4586
|
```
|
|
4494
4587
|
|
|
4495
|
-
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4588
|
+
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/close.ts)_
|
|
4496
4589
|
|
|
4497
4590
|
## `nex task comment`
|
|
4498
4591
|
|
|
@@ -4552,7 +4645,7 @@ EXAMPLES
|
|
|
4552
4645
|
$ nex task comment --number CHG0010001 --table change_request --comment "Approved" --auth dev
|
|
4553
4646
|
```
|
|
4554
4647
|
|
|
4555
|
-
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4648
|
+
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/comment.ts)_
|
|
4556
4649
|
|
|
4557
4650
|
## `nex task find`
|
|
4558
4651
|
|
|
@@ -4608,7 +4701,7 @@ EXAMPLES
|
|
|
4608
4701
|
$ nex task find -n INC0010001 --json --auth dev
|
|
4609
4702
|
```
|
|
4610
4703
|
|
|
4611
|
-
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4704
|
+
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/find.ts)_
|
|
4612
4705
|
|
|
4613
4706
|
## `nex task resolve`
|
|
4614
4707
|
|
|
@@ -4662,7 +4755,7 @@ EXAMPLES
|
|
|
4662
4755
|
$ nex task resolve -n INC0010001 --notes "Fixed" --close-code "Solved (Permanently)" --auth dev
|
|
4663
4756
|
```
|
|
4664
4757
|
|
|
4665
|
-
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4758
|
+
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/task/resolve.ts)_
|
|
4666
4759
|
|
|
4667
4760
|
## `nex update-set`
|
|
4668
4761
|
|
|
@@ -4710,7 +4803,7 @@ EXAMPLES
|
|
|
4710
4803
|
$ nex update-set --json --auth dev-instance
|
|
4711
4804
|
```
|
|
4712
4805
|
|
|
4713
|
-
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4806
|
+
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/index.ts)_
|
|
4714
4807
|
|
|
4715
4808
|
## `nex update-set clone`
|
|
4716
4809
|
|
|
@@ -4754,7 +4847,7 @@ EXAMPLES
|
|
|
4754
4847
|
$ nex update-set clone --source us-001 --name "Cloned Set" --json --auth dev-instance
|
|
4755
4848
|
```
|
|
4756
4849
|
|
|
4757
|
-
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4850
|
+
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/clone.ts)_
|
|
4758
4851
|
|
|
4759
4852
|
## `nex update-set create`
|
|
4760
4853
|
|
|
@@ -4803,7 +4896,7 @@ EXAMPLES
|
|
|
4803
4896
|
$ nex update-set create --name "My Feature Set" --application x_my_app --auth dev-instance
|
|
4804
4897
|
```
|
|
4805
4898
|
|
|
4806
|
-
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4899
|
+
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/create.ts)_
|
|
4807
4900
|
|
|
4808
4901
|
## `nex update-set current`
|
|
4809
4902
|
|
|
@@ -4850,7 +4943,7 @@ EXAMPLES
|
|
|
4850
4943
|
$ nex update-set current --json --auth dev-instance
|
|
4851
4944
|
```
|
|
4852
4945
|
|
|
4853
|
-
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4946
|
+
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/current.ts)_
|
|
4854
4947
|
|
|
4855
4948
|
## `nex update-set inspect`
|
|
4856
4949
|
|
|
@@ -4893,7 +4986,7 @@ EXAMPLES
|
|
|
4893
4986
|
$ nex update-set inspect --sys-id us-001 --json --auth dev-instance
|
|
4894
4987
|
```
|
|
4895
4988
|
|
|
4896
|
-
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4989
|
+
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/inspect.ts)_
|
|
4897
4990
|
|
|
4898
4991
|
## `nex update-set move`
|
|
4899
4992
|
|
|
@@ -4943,7 +5036,7 @@ EXAMPLES
|
|
|
4943
5036
|
$ nex update-set move --target us-002 --source us-001 --json --auth dev-instance
|
|
4944
5037
|
```
|
|
4945
5038
|
|
|
4946
|
-
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5039
|
+
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/update-set/move.ts)_
|
|
4947
5040
|
|
|
4948
5041
|
## `nex workflow create`
|
|
4949
5042
|
|
|
@@ -4986,7 +5079,7 @@ EXAMPLES
|
|
|
4986
5079
|
$ nex workflow create -s ./workflow.json --json --auth dev
|
|
4987
5080
|
```
|
|
4988
5081
|
|
|
4989
|
-
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5082
|
+
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/workflow/create.ts)_
|
|
4990
5083
|
|
|
4991
5084
|
## `nex workflow publish`
|
|
4992
5085
|
|
|
@@ -5030,7 +5123,7 @@ EXAMPLES
|
|
|
5030
5123
|
$ nex workflow publish -v wfv-001 -s act-001 --json --auth dev
|
|
5031
5124
|
```
|
|
5032
5125
|
|
|
5033
|
-
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5126
|
+
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/workflow/publish.ts)_
|
|
5034
5127
|
|
|
5035
5128
|
## `nex xml export`
|
|
5036
5129
|
|
|
@@ -5088,7 +5181,7 @@ EXAMPLES
|
|
|
5088
5181
|
$ nex xml export --table sys_script --sys-id abc123 --json --auth dev
|
|
5089
5182
|
```
|
|
5090
5183
|
|
|
5091
|
-
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5184
|
+
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/xml/export.ts)_
|
|
5092
5185
|
|
|
5093
5186
|
## `nex xml import`
|
|
5094
5187
|
|
|
@@ -5140,7 +5233,7 @@ EXAMPLES
|
|
|
5140
5233
|
$ nex xml import --file ./records.xml --table incident --json --auth dev
|
|
5141
5234
|
```
|
|
5142
5235
|
|
|
5143
|
-
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5236
|
+
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.3.0/src/commands/xml/import.ts)_
|
|
5144
5237
|
<!-- commandsstop -->
|
|
5145
5238
|
|
|
5146
5239
|
---
|