@sonisoft/now-sdk-ext-cli 2.0.1 → 2.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 +282 -68
- package/dist/commands/flow/copy.d.ts +17 -0
- package/dist/commands/flow/copy.d.ts.map +1 -0
- package/dist/commands/flow/copy.js +79 -0
- package/dist/commands/flow/copy.js.map +1 -0
- package/dist/commands/flow/details.d.ts +17 -0
- package/dist/commands/flow/details.d.ts.map +1 -0
- package/dist/commands/flow/details.js +75 -0
- package/dist/commands/flow/details.js.map +1 -0
- package/dist/commands/flow/logs.d.ts +17 -0
- package/dist/commands/flow/logs.d.ts.map +1 -0
- package/dist/commands/flow/logs.js +79 -0
- package/dist/commands/flow/logs.js.map +1 -0
- package/dist/commands/flow/run.d.ts.map +1 -1
- package/dist/commands/flow/run.js +3 -1
- package/dist/commands/flow/run.js.map +1 -1
- package/dist/commands/flow/subflow.d.ts.map +1 -1
- package/dist/commands/flow/subflow.js +3 -1
- package/dist/commands/flow/subflow.js.map +1 -1
- package/dist/commands/flow/test.d.ts +18 -0
- package/dist/commands/flow/test.d.ts.map +1 -0
- package/dist/commands/flow/test.js +91 -0
- package/dist/commands/flow/test.js.map +1 -0
- package/dist/services/flow-display.service.d.ts +20 -0
- package/dist/services/flow-display.service.d.ts.map +1 -1
- package/dist/services/flow-display.service.js +188 -0
- package/dist/services/flow-display.service.js.map +1 -1
- package/oclif.manifest.json +397 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -639,7 +639,7 @@ $ npm install -g @sonisoft/now-sdk-ext-cli
|
|
|
639
639
|
$ nex COMMAND
|
|
640
640
|
running command...
|
|
641
641
|
$ nex (--version)
|
|
642
|
-
@sonisoft/now-sdk-ext-cli/2.0
|
|
642
|
+
@sonisoft/now-sdk-ext-cli/2.3.0 linux-x64 node-v22.22.0
|
|
643
643
|
$ nex --help [COMMAND]
|
|
644
644
|
USAGE
|
|
645
645
|
$ nex COMMAND
|
|
@@ -669,12 +669,16 @@ USAGE
|
|
|
669
669
|
* [`nex exec SCOPE [FILE]`](#nex-exec-scope-file)
|
|
670
670
|
* [`nex flow action`](#nex-flow-action)
|
|
671
671
|
* [`nex flow cancel`](#nex-flow-cancel)
|
|
672
|
+
* [`nex flow copy`](#nex-flow-copy)
|
|
673
|
+
* [`nex flow details`](#nex-flow-details)
|
|
672
674
|
* [`nex flow error`](#nex-flow-error)
|
|
675
|
+
* [`nex flow logs`](#nex-flow-logs)
|
|
673
676
|
* [`nex flow message`](#nex-flow-message)
|
|
674
677
|
* [`nex flow outputs`](#nex-flow-outputs)
|
|
675
678
|
* [`nex flow run`](#nex-flow-run)
|
|
676
679
|
* [`nex flow status`](#nex-flow-status)
|
|
677
680
|
* [`nex flow subflow`](#nex-flow-subflow)
|
|
681
|
+
* [`nex flow test`](#nex-flow-test)
|
|
678
682
|
* [`nex health check`](#nex-health-check)
|
|
679
683
|
* [`nex help [COMMAND]`](#nex-help-command)
|
|
680
684
|
* [`nex log`](#nex-log)
|
|
@@ -767,7 +771,7 @@ EXAMPLES
|
|
|
767
771
|
$ nex aggregate count --table incident --query "active=true" --json --auth dev
|
|
768
772
|
```
|
|
769
773
|
|
|
770
|
-
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
774
|
+
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/aggregate/count.ts)_
|
|
771
775
|
|
|
772
776
|
## `nex aggregate group`
|
|
773
777
|
|
|
@@ -824,7 +828,7 @@ EXAMPLES
|
|
|
824
828
|
$ nex aggregate group --table incident --group-by priority --count --having "count>10" --auth dev
|
|
825
829
|
```
|
|
826
830
|
|
|
827
|
-
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
831
|
+
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/aggregate/group.ts)_
|
|
828
832
|
|
|
829
833
|
## `nex aggregate query`
|
|
830
834
|
|
|
@@ -876,7 +880,7 @@ EXAMPLES
|
|
|
876
880
|
$ nex aggregate query --table incident --sum reassignment_count --json --auth dev
|
|
877
881
|
```
|
|
878
882
|
|
|
879
|
-
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
883
|
+
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/aggregate/query.ts)_
|
|
880
884
|
|
|
881
885
|
## `nex app`
|
|
882
886
|
|
|
@@ -928,7 +932,7 @@ EXAMPLES
|
|
|
928
932
|
$ nex app -u -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
929
933
|
```
|
|
930
934
|
|
|
931
|
-
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
935
|
+
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/app/index.ts)_
|
|
932
936
|
|
|
933
937
|
## `nex app install`
|
|
934
938
|
|
|
@@ -985,7 +989,7 @@ EXAMPLES
|
|
|
985
989
|
$ nex app install -b -d ./apps.json -a dev-instance --log-level debug
|
|
986
990
|
```
|
|
987
991
|
|
|
988
|
-
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
992
|
+
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/app/install.ts)_
|
|
989
993
|
|
|
990
994
|
## `nex app repo-install`
|
|
991
995
|
|
|
@@ -1059,7 +1063,7 @@ EXAMPLES
|
|
|
1059
1063
|
$ nex app repo-install -s x_my_app -a dev-instance --log-level debug
|
|
1060
1064
|
```
|
|
1061
1065
|
|
|
1062
|
-
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1066
|
+
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/app/repo-install.ts)_
|
|
1063
1067
|
|
|
1064
1068
|
## `nex app repo-list`
|
|
1065
1069
|
|
|
@@ -1123,7 +1127,7 @@ EXAMPLES
|
|
|
1123
1127
|
$ nex app repo-list -a dev-instance
|
|
1124
1128
|
```
|
|
1125
1129
|
|
|
1126
|
-
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1130
|
+
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/app/repo-list.ts)_
|
|
1127
1131
|
|
|
1128
1132
|
## `nex app uninstall`
|
|
1129
1133
|
|
|
@@ -1174,7 +1178,7 @@ EXAMPLES
|
|
|
1174
1178
|
$ nex app uninstall -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
1175
1179
|
```
|
|
1176
1180
|
|
|
1177
|
-
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1181
|
+
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/app/uninstall.ts)_
|
|
1178
1182
|
|
|
1179
1183
|
## `nex atf`
|
|
1180
1184
|
|
|
@@ -1246,7 +1250,7 @@ EXAMPLES
|
|
|
1246
1250
|
$ nex atf --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance
|
|
1247
1251
|
```
|
|
1248
1252
|
|
|
1249
|
-
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1253
|
+
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/atf/index.ts)_
|
|
1250
1254
|
|
|
1251
1255
|
## `nex attachment get`
|
|
1252
1256
|
|
|
@@ -1278,7 +1282,7 @@ EXAMPLES
|
|
|
1278
1282
|
$ nex attachment get -s att123 --json --auth dev
|
|
1279
1283
|
```
|
|
1280
1284
|
|
|
1281
|
-
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1285
|
+
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/attachment/get.ts)_
|
|
1282
1286
|
|
|
1283
1287
|
## `nex attachment list`
|
|
1284
1288
|
|
|
@@ -1313,7 +1317,7 @@ EXAMPLES
|
|
|
1313
1317
|
$ nex attachment list -t incident -r abc123 --limit 50 --json --auth dev
|
|
1314
1318
|
```
|
|
1315
1319
|
|
|
1316
|
-
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1320
|
+
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/attachment/list.ts)_
|
|
1317
1321
|
|
|
1318
1322
|
## `nex attachment upload`
|
|
1319
1323
|
|
|
@@ -1349,7 +1353,7 @@ EXAMPLES
|
|
|
1349
1353
|
$ nex attachment upload -t incident -r abc123 -f ./data.csv --content-type text/csv --auth dev
|
|
1350
1354
|
```
|
|
1351
1355
|
|
|
1352
|
-
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1356
|
+
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/attachment/upload.ts)_
|
|
1353
1357
|
|
|
1354
1358
|
## `nex autocomplete [SHELL]`
|
|
1355
1359
|
|
|
@@ -1413,7 +1417,7 @@ EXAMPLES
|
|
|
1413
1417
|
$ nex batch create --file ./records.json --no-transaction --auth dev
|
|
1414
1418
|
```
|
|
1415
1419
|
|
|
1416
|
-
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1420
|
+
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/batch/create.ts)_
|
|
1417
1421
|
|
|
1418
1422
|
## `nex batch update`
|
|
1419
1423
|
|
|
@@ -1446,7 +1450,7 @@ EXAMPLES
|
|
|
1446
1450
|
$ nex batch update --file ./updates.json --stop-on-error --auth dev
|
|
1447
1451
|
```
|
|
1448
1452
|
|
|
1449
|
-
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1453
|
+
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/batch/update.ts)_
|
|
1450
1454
|
|
|
1451
1455
|
## `nex bulk delete`
|
|
1452
1456
|
|
|
@@ -1500,7 +1504,7 @@ EXAMPLES
|
|
|
1500
1504
|
$ nex bulk delete --table u_staging --query "processed=true" --confirm --json --auth dev
|
|
1501
1505
|
```
|
|
1502
1506
|
|
|
1503
|
-
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1507
|
+
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/bulk/delete.ts)_
|
|
1504
1508
|
|
|
1505
1509
|
## `nex bulk update`
|
|
1506
1510
|
|
|
@@ -1558,7 +1562,7 @@ EXAMPLES
|
|
|
1558
1562
|
$ nex bulk update --table incident --query "active=true" --data '{"state":"6"}' --confirm --json --auth dev
|
|
1559
1563
|
```
|
|
1560
1564
|
|
|
1561
|
-
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1565
|
+
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/bulk/update.ts)_
|
|
1562
1566
|
|
|
1563
1567
|
## `nex exec SCOPE [FILE]`
|
|
1564
1568
|
|
|
@@ -1677,7 +1681,7 @@ EXAMPLES
|
|
|
1677
1681
|
$ nex exec global ./script.js --auth dev-instance --params '{"token":"abc123","env":"dev"}'
|
|
1678
1682
|
```
|
|
1679
1683
|
|
|
1680
|
-
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1684
|
+
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/exec/index.ts)_
|
|
1681
1685
|
|
|
1682
1686
|
## `nex flow action`
|
|
1683
1687
|
|
|
@@ -1720,7 +1724,7 @@ EXAMPLES
|
|
|
1720
1724
|
'{"table":"incident","values":{"short_description":"Test"}}' --auth dev
|
|
1721
1725
|
```
|
|
1722
1726
|
|
|
1723
|
-
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1727
|
+
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/action.ts)_
|
|
1724
1728
|
|
|
1725
1729
|
## `nex flow cancel`
|
|
1726
1730
|
|
|
@@ -1757,7 +1761,111 @@ EXAMPLES
|
|
|
1757
1761
|
$ nex flow cancel --context-id abc123def456 --reason "No longer needed" --auth dev
|
|
1758
1762
|
```
|
|
1759
1763
|
|
|
1760
|
-
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1764
|
+
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/cancel.ts)_
|
|
1765
|
+
|
|
1766
|
+
## `nex flow copy`
|
|
1767
|
+
|
|
1768
|
+
Copy an existing flow into a target scoped application.
|
|
1769
|
+
|
|
1770
|
+
```
|
|
1771
|
+
USAGE
|
|
1772
|
+
$ nex flow copy -s <value> -n <value> -t <value> [-j] [-a <value>] [--log-level debug|warn|error|info|trace]
|
|
1773
|
+
|
|
1774
|
+
FLAGS
|
|
1775
|
+
-a, --auth=<value> Auth alias to use.
|
|
1776
|
+
-j, --json Output results as JSON
|
|
1777
|
+
-n, --name=<value> (required) Display name for the new copied flow
|
|
1778
|
+
-s, --source-flow-id=<value> (required) Source flow sys_id or scoped name (e.g. global.change__standard)
|
|
1779
|
+
-t, --target-scope=<value> (required) Scope sys_id of the target application (use `nex scope` to find scope
|
|
1780
|
+
sys_ids)
|
|
1781
|
+
|
|
1782
|
+
GLOBAL FLAGS
|
|
1783
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
1784
|
+
<options: debug|warn|error|info|trace>
|
|
1785
|
+
|
|
1786
|
+
DESCRIPTION
|
|
1787
|
+
Copy an existing flow into a target scoped application.
|
|
1788
|
+
|
|
1789
|
+
This is the ServiceNow best practice before modifying any flow — OOB and shared flows must never be modified directly;
|
|
1790
|
+
always copy first. The copied flow lands in draft/unpublished state in the target scope.
|
|
1791
|
+
|
|
1792
|
+
Enables the full CLI-driven flow development lifecycle:
|
|
1793
|
+
copy → pull (now-sdk transform) → modify → push → test → publish
|
|
1794
|
+
|
|
1795
|
+
Features:
|
|
1796
|
+
• Copy flows by sys_id or scoped name
|
|
1797
|
+
• Specify a display name for the new copy
|
|
1798
|
+
• Target any scoped application by sys_id
|
|
1799
|
+
• Returns the new flow sys_id for use in subsequent commands
|
|
1800
|
+
|
|
1801
|
+
EXAMPLES
|
|
1802
|
+
Copy an OOB flow into your app scope
|
|
1803
|
+
|
|
1804
|
+
$ nex flow copy --source-flow-id e89e3ade731310108ef62d2b04f6a744 --name "Copy of Change - Standard" \
|
|
1805
|
+
--target-scope 4a5a6115402946939ee48e3fe80f60f8 --auth dev
|
|
1806
|
+
|
|
1807
|
+
Copy by scoped name
|
|
1808
|
+
|
|
1809
|
+
$ nex flow copy -s global.change__standard -n "My Custom Change Flow" -t 4a5a6115402946939ee48e3fe80f60f8 --auth \
|
|
1810
|
+
dev
|
|
1811
|
+
|
|
1812
|
+
Copy with JSON output for scripting
|
|
1813
|
+
|
|
1814
|
+
$ nex flow copy -s e89e3ade731310108ef62d2b04f6a744 -n "Copy" -t 4a5a6115402946939ee48e3fe80f60f8 --json --auth \
|
|
1815
|
+
dev
|
|
1816
|
+
```
|
|
1817
|
+
|
|
1818
|
+
_See code: [src/commands/flow/copy.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/copy.ts)_
|
|
1819
|
+
|
|
1820
|
+
## `nex flow details`
|
|
1821
|
+
|
|
1822
|
+
Get rich execution details for a flow context.
|
|
1823
|
+
|
|
1824
|
+
```
|
|
1825
|
+
USAGE
|
|
1826
|
+
$ nex flow details -c <value> [-j] [-a <value>] [--log-level debug|warn|error|info|trace] [--scope <value>] [-d]
|
|
1827
|
+
|
|
1828
|
+
FLAGS
|
|
1829
|
+
-a, --auth=<value> Auth alias to use.
|
|
1830
|
+
-c, --context-id=<value> (required) Flow context sys_id returned by flow test, flow run, flow subflow, or flow action
|
|
1831
|
+
-d, --include-definition Include the full flow definition snapshot in the response
|
|
1832
|
+
-j, --json Output results as JSON
|
|
1833
|
+
--scope=<value> Scope sys_id for the ProcessFlow API transaction scope parameter
|
|
1834
|
+
|
|
1835
|
+
GLOBAL FLAGS
|
|
1836
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
1837
|
+
<options: debug|warn|error|info|trace>
|
|
1838
|
+
|
|
1839
|
+
DESCRIPTION
|
|
1840
|
+
Get rich execution details for a flow context.
|
|
1841
|
+
|
|
1842
|
+
Returns per-action timing, inputs, outputs, and high-level metadata (state, runtime, who ran it, test vs production).
|
|
1843
|
+
This is the primary diagnostic command after flow test or flow run.
|
|
1844
|
+
|
|
1845
|
+
Uses the ProcessFlow operations API (GET /api/now/processflow/operations/flow/context/{id}), the same endpoint Flow
|
|
1846
|
+
Designer uses to display execution details.
|
|
1847
|
+
|
|
1848
|
+
NOTE: Requires flow operations logging to be enabled on the instance. If the execution report is unavailable, a notice
|
|
1849
|
+
will explain why.
|
|
1850
|
+
|
|
1851
|
+
Typical workflow:
|
|
1852
|
+
flow test → flow details → diagnose → modify flow → flow test again
|
|
1853
|
+
|
|
1854
|
+
EXAMPLES
|
|
1855
|
+
Get execution details after testing a flow
|
|
1856
|
+
|
|
1857
|
+
$ nex flow details --context-id d4e5f6789012345678abcdef01234567 --auth dev
|
|
1858
|
+
|
|
1859
|
+
Get details with explicit scope
|
|
1860
|
+
|
|
1861
|
+
$ nex flow details -c d4e5f6789012345678abcdef01234567 --scope x_myapp --auth dev
|
|
1862
|
+
|
|
1863
|
+
Get details with JSON output for scripting
|
|
1864
|
+
|
|
1865
|
+
$ nex flow details -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
1866
|
+
```
|
|
1867
|
+
|
|
1868
|
+
_See code: [src/commands/flow/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/details.ts)_
|
|
1761
1869
|
|
|
1762
1870
|
## `nex flow error`
|
|
1763
1871
|
|
|
@@ -1788,7 +1896,55 @@ EXAMPLES
|
|
|
1788
1896
|
$ nex flow error --context-id abc123def456 --auth dev
|
|
1789
1897
|
```
|
|
1790
1898
|
|
|
1791
|
-
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1899
|
+
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/error.ts)_
|
|
1900
|
+
|
|
1901
|
+
## `nex flow logs`
|
|
1902
|
+
|
|
1903
|
+
Retrieve flow execution log entries for a given context.
|
|
1904
|
+
|
|
1905
|
+
```
|
|
1906
|
+
USAGE
|
|
1907
|
+
$ nex flow logs -c <value> [-j] [-a <value>] [--log-level debug|warn|error|info|trace] [-l <value>] [-o
|
|
1908
|
+
asc|desc]
|
|
1909
|
+
|
|
1910
|
+
FLAGS
|
|
1911
|
+
-a, --auth=<value> Auth alias to use.
|
|
1912
|
+
-c, --context-id=<value> (required) Flow context sys_id returned by flow test, flow run, flow subflow, or flow action
|
|
1913
|
+
-j, --json Output results as JSON
|
|
1914
|
+
-l, --limit=<value> [default: 100] Maximum number of log entries to return
|
|
1915
|
+
-o, --order=<option> [default: asc] Order direction: asc (oldest first) or desc (newest first)
|
|
1916
|
+
<options: asc|desc>
|
|
1917
|
+
|
|
1918
|
+
GLOBAL FLAGS
|
|
1919
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
1920
|
+
<options: debug|warn|error|info|trace>
|
|
1921
|
+
|
|
1922
|
+
DESCRIPTION
|
|
1923
|
+
Retrieve flow execution log entries for a given context.
|
|
1924
|
+
|
|
1925
|
+
Log entries include error messages, step-level debug output, and cancellation reasons. Use this alongside flow details
|
|
1926
|
+
to get the full picture of what happened during an execution.
|
|
1927
|
+
|
|
1928
|
+
Queries sys_flow_log entries and maps numeric log levels to human-readable names (ERROR, WARN, INFO, DEBUG).
|
|
1929
|
+
|
|
1930
|
+
NOTE: Log entries may be empty for simple successful executions, or if the flow reporting level is set to NONE. Errors
|
|
1931
|
+
and warnings are always logged regardless of the reporting level setting.
|
|
1932
|
+
|
|
1933
|
+
EXAMPLES
|
|
1934
|
+
Get flow execution logs
|
|
1935
|
+
|
|
1936
|
+
$ nex flow logs --context-id d4e5f6789012345678abcdef01234567 --auth dev
|
|
1937
|
+
|
|
1938
|
+
Get latest 10 log entries in reverse order
|
|
1939
|
+
|
|
1940
|
+
$ nex flow logs -c d4e5f6789012345678abcdef01234567 --limit 10 --order desc --auth dev
|
|
1941
|
+
|
|
1942
|
+
Get logs with JSON output for scripting
|
|
1943
|
+
|
|
1944
|
+
$ nex flow logs -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
1945
|
+
```
|
|
1946
|
+
|
|
1947
|
+
_See code: [src/commands/flow/logs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/logs.ts)_
|
|
1792
1948
|
|
|
1793
1949
|
## `nex flow message`
|
|
1794
1950
|
|
|
@@ -1827,7 +1983,7 @@ EXAMPLES
|
|
|
1827
1983
|
$ nex flow message --context-id abc123def456 --message "data_ready" --payload '{"status":"ok"}' --auth dev
|
|
1828
1984
|
```
|
|
1829
1985
|
|
|
1830
|
-
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
1986
|
+
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/message.ts)_
|
|
1831
1987
|
|
|
1832
1988
|
## `nex flow outputs`
|
|
1833
1989
|
|
|
@@ -1862,11 +2018,11 @@ EXAMPLES
|
|
|
1862
2018
|
$ nex flow outputs --context-id abc123def456 --json --auth dev
|
|
1863
2019
|
```
|
|
1864
2020
|
|
|
1865
|
-
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2021
|
+
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/outputs.ts)_
|
|
1866
2022
|
|
|
1867
2023
|
## `nex flow run`
|
|
1868
2024
|
|
|
1869
|
-
Execute a Flow Designer flow by scoped name.
|
|
2025
|
+
Execute a published Flow Designer flow by scoped name.
|
|
1870
2026
|
|
|
1871
2027
|
```
|
|
1872
2028
|
USAGE
|
|
@@ -1888,11 +2044,14 @@ GLOBAL FLAGS
|
|
|
1888
2044
|
<options: debug|warn|error|info|trace>
|
|
1889
2045
|
|
|
1890
2046
|
DESCRIPTION
|
|
1891
|
-
Execute a Flow Designer flow by scoped name.
|
|
2047
|
+
Execute a published Flow Designer flow by scoped name.
|
|
1892
2048
|
|
|
1893
2049
|
Runs a flow using the sn_fd.FlowAPI ScriptableFlowRunner. Supports foreground (synchronous) and background
|
|
1894
2050
|
(asynchronous) execution modes.
|
|
1895
2051
|
|
|
2052
|
+
Note: This command requires the flow to be published. For testing flows that are not yet published (draft/saved
|
|
2053
|
+
state), use `flow test` instead.
|
|
2054
|
+
|
|
1896
2055
|
Features:
|
|
1897
2056
|
• Execute flows by scoped name (e.g. global.my_flow)
|
|
1898
2057
|
• Pass input values as JSON
|
|
@@ -1914,7 +2073,7 @@ EXAMPLES
|
|
|
1914
2073
|
$ nex flow run --name global.my_flow --mode background --auth dev
|
|
1915
2074
|
```
|
|
1916
2075
|
|
|
1917
|
-
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2076
|
+
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/run.ts)_
|
|
1918
2077
|
|
|
1919
2078
|
## `nex flow status`
|
|
1920
2079
|
|
|
@@ -1947,11 +2106,11 @@ EXAMPLES
|
|
|
1947
2106
|
$ nex flow status --context-id abc123def456 --auth dev
|
|
1948
2107
|
```
|
|
1949
2108
|
|
|
1950
|
-
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2109
|
+
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/status.ts)_
|
|
1951
2110
|
|
|
1952
2111
|
## `nex flow subflow`
|
|
1953
2112
|
|
|
1954
|
-
Execute a Flow Designer subflow by scoped name.
|
|
2113
|
+
Execute a published Flow Designer subflow by scoped name.
|
|
1955
2114
|
|
|
1956
2115
|
```
|
|
1957
2116
|
USAGE
|
|
@@ -1973,10 +2132,13 @@ GLOBAL FLAGS
|
|
|
1973
2132
|
<options: debug|warn|error|info|trace>
|
|
1974
2133
|
|
|
1975
2134
|
DESCRIPTION
|
|
1976
|
-
Execute a Flow Designer subflow by scoped name.
|
|
2135
|
+
Execute a published Flow Designer subflow by scoped name.
|
|
1977
2136
|
|
|
1978
2137
|
Runs a subflow using the sn_fd.FlowAPI ScriptableFlowRunner.
|
|
1979
2138
|
|
|
2139
|
+
Note: This command requires the subflow to be published. For testing flows that are not yet published (draft/saved
|
|
2140
|
+
state), use `flow test` instead.
|
|
2141
|
+
|
|
1980
2142
|
Features:
|
|
1981
2143
|
• Execute subflows by scoped name
|
|
1982
2144
|
• Pass input values as JSON
|
|
@@ -1993,7 +2155,59 @@ EXAMPLES
|
|
|
1993
2155
|
$ nex flow subflow --name x_myapp.process_record --inputs '{"table":"incident","sys_id":"abc123"}' --auth dev
|
|
1994
2156
|
```
|
|
1995
2157
|
|
|
1996
|
-
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2158
|
+
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/subflow.ts)_
|
|
2159
|
+
|
|
2160
|
+
## `nex flow test`
|
|
2161
|
+
|
|
2162
|
+
Test a Flow Designer flow without requiring it to be published.
|
|
2163
|
+
|
|
2164
|
+
```
|
|
2165
|
+
USAGE
|
|
2166
|
+
$ nex flow test -f <value> -o <value> [-j] [-a <value>] [--log-level debug|warn|error|info|trace] [--scope
|
|
2167
|
+
<value>] [--synchronous]
|
|
2168
|
+
|
|
2169
|
+
FLAGS
|
|
2170
|
+
-a, --auth=<value> Auth alias to use.
|
|
2171
|
+
-f, --flow-id=<value> (required) Flow sys_id or scoped name (e.g. x_myapp.my_flow)
|
|
2172
|
+
-j, --json Output results as JSON
|
|
2173
|
+
-o, --output-map=<value> (required) JSON mapping of trigger output variable names to test values (e.g.
|
|
2174
|
+
'{"current":"<sys_id>","table_name":"change_request"}')
|
|
2175
|
+
--scope=<value> Scope sys_id for transaction scope (auto-resolved from flow definition if omitted)
|
|
2176
|
+
--[no-]synchronous Run test synchronously (default: true)
|
|
2177
|
+
|
|
2178
|
+
GLOBAL FLAGS
|
|
2179
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
2180
|
+
<options: debug|warn|error|info|trace>
|
|
2181
|
+
|
|
2182
|
+
DESCRIPTION
|
|
2183
|
+
Test a Flow Designer flow without requiring it to be published.
|
|
2184
|
+
|
|
2185
|
+
Invokes the same API as the "Test" button in Flow Designer, running the flow in its current saved (draft) state.
|
|
2186
|
+
Unlike `flow run` which requires a published flow and uses sn_fd.FlowAPI, `flow test` works on unpublished drafts via
|
|
2187
|
+
the ProcessFlow REST API.
|
|
2188
|
+
|
|
2189
|
+
Features:
|
|
2190
|
+
• Test flows by sys_id or scoped name
|
|
2191
|
+
• Pass trigger output values as JSON via --output-map
|
|
2192
|
+
• Auto-resolves scope from flow definition if not provided
|
|
2193
|
+
• Synchronous or asynchronous execution
|
|
2194
|
+
|
|
2195
|
+
EXAMPLES
|
|
2196
|
+
Test a flow by sys_id
|
|
2197
|
+
|
|
2198
|
+
$ nex flow test --flow-id 887dda5583237210fdb8f7b6feaad32c --output-map \
|
|
2199
|
+
'{"current":"0ecd7552db252200a6a2b31be0b8f5e6","table_name":"change_request"}' --auth dev
|
|
2200
|
+
|
|
2201
|
+
Test a flow by scoped name with explicit scope
|
|
2202
|
+
|
|
2203
|
+
$ nex flow test -f x_myapp.my_flow -o '{"current":"abc123","table_name":"incident"}' --scope x_myapp --auth dev
|
|
2204
|
+
|
|
2205
|
+
Test with JSON output
|
|
2206
|
+
|
|
2207
|
+
$ nex flow test -f 887dda5583237210fdb8f7b6feaad32c -o '{"current":"abc123"}' --json --auth dev
|
|
2208
|
+
```
|
|
2209
|
+
|
|
2210
|
+
_See code: [src/commands/flow/test.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/flow/test.ts)_
|
|
1997
2211
|
|
|
1998
2212
|
## `nex health check`
|
|
1999
2213
|
|
|
@@ -2053,7 +2267,7 @@ EXAMPLES
|
|
|
2053
2267
|
$ nex health check --json --auth dev
|
|
2054
2268
|
```
|
|
2055
2269
|
|
|
2056
|
-
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2270
|
+
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/health/check.ts)_
|
|
2057
2271
|
|
|
2058
2272
|
## `nex help [COMMAND]`
|
|
2059
2273
|
|
|
@@ -2178,7 +2392,7 @@ EXAMPLES
|
|
|
2178
2392
|
$ nex log --no-color --auth dev-instance
|
|
2179
2393
|
```
|
|
2180
2394
|
|
|
2181
|
-
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2395
|
+
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/log/index.ts)_
|
|
2182
2396
|
|
|
2183
2397
|
## `nex plugins`
|
|
2184
2398
|
|
|
@@ -2520,7 +2734,7 @@ EXAMPLES
|
|
|
2520
2734
|
$ nex query --table sys_user --query "active=true" --limit 5 --json --auth dev
|
|
2521
2735
|
```
|
|
2522
2736
|
|
|
2523
|
-
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2737
|
+
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/query/index.ts)_
|
|
2524
2738
|
|
|
2525
2739
|
## `nex query app`
|
|
2526
2740
|
|
|
@@ -2562,7 +2776,7 @@ EXAMPLES
|
|
|
2562
2776
|
$ nex query app --search "HR" --active --auth dev
|
|
2563
2777
|
```
|
|
2564
2778
|
|
|
2565
|
-
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2779
|
+
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/query/app.ts)_
|
|
2566
2780
|
|
|
2567
2781
|
## `nex query columns`
|
|
2568
2782
|
|
|
@@ -2606,7 +2820,7 @@ EXAMPLES
|
|
|
2606
2820
|
$ nex query columns --table incident --json --auth dev
|
|
2607
2821
|
```
|
|
2608
2822
|
|
|
2609
|
-
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2823
|
+
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/query/columns.ts)_
|
|
2610
2824
|
|
|
2611
2825
|
## `nex query syslog`
|
|
2612
2826
|
|
|
@@ -2652,7 +2866,7 @@ EXAMPLES
|
|
|
2652
2866
|
$ nex query syslog --query "sourceLIKEincident" --json --auth dev
|
|
2653
2867
|
```
|
|
2654
2868
|
|
|
2655
|
-
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2869
|
+
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/query/syslog.ts)_
|
|
2656
2870
|
|
|
2657
2871
|
## `nex schema`
|
|
2658
2872
|
|
|
@@ -2700,7 +2914,7 @@ EXAMPLES
|
|
|
2700
2914
|
$ nex schema --table incident --include-choices --include-relationships --auth dev
|
|
2701
2915
|
```
|
|
2702
2916
|
|
|
2703
|
-
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2917
|
+
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/schema/index.ts)_
|
|
2704
2918
|
|
|
2705
2919
|
## `nex schema field`
|
|
2706
2920
|
|
|
@@ -2736,7 +2950,7 @@ EXAMPLES
|
|
|
2736
2950
|
$ nex schema field --table incident --field priority --json --auth dev
|
|
2737
2951
|
```
|
|
2738
2952
|
|
|
2739
|
-
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2953
|
+
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/schema/field.ts)_
|
|
2740
2954
|
|
|
2741
2955
|
## `nex schema validate-catalog`
|
|
2742
2956
|
|
|
@@ -2771,7 +2985,7 @@ EXAMPLES
|
|
|
2771
2985
|
$ nex schema validate-catalog --sys-id a1b2c3d4e5f6 --json --auth dev
|
|
2772
2986
|
```
|
|
2773
2987
|
|
|
2774
|
-
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
2988
|
+
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/schema/validate-catalog.ts)_
|
|
2775
2989
|
|
|
2776
2990
|
## `nex scope`
|
|
2777
2991
|
|
|
@@ -2807,7 +3021,7 @@ EXAMPLES
|
|
|
2807
3021
|
$ nex scope -l --json --auth dev
|
|
2808
3022
|
```
|
|
2809
3023
|
|
|
2810
|
-
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3024
|
+
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/scope/index.ts)_
|
|
2811
3025
|
|
|
2812
3026
|
## `nex scope set`
|
|
2813
3027
|
|
|
@@ -2839,7 +3053,7 @@ EXAMPLES
|
|
|
2839
3053
|
$ nex scope set -a abc123def456ghi789jkl012mno345pq --json --auth dev
|
|
2840
3054
|
```
|
|
2841
3055
|
|
|
2842
|
-
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3056
|
+
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/scope/set.ts)_
|
|
2843
3057
|
|
|
2844
3058
|
## `nex script-sync pull`
|
|
2845
3059
|
|
|
@@ -2888,7 +3102,7 @@ EXAMPLES
|
|
|
2888
3102
|
$ nex script-sync pull -n MyClientScript -t sys_script_client --json --auth dev-instance
|
|
2889
3103
|
```
|
|
2890
3104
|
|
|
2891
|
-
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3105
|
+
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/script-sync/pull.ts)_
|
|
2892
3106
|
|
|
2893
3107
|
## `nex script-sync push`
|
|
2894
3108
|
|
|
@@ -2938,7 +3152,7 @@ EXAMPLES
|
|
|
2938
3152
|
$ nex script-sync push -n MyUIScript -t sys_ui_script -f ./scripts/ui-script.js --json --auth dev-instance
|
|
2939
3153
|
```
|
|
2940
3154
|
|
|
2941
|
-
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3155
|
+
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/script-sync/push.ts)_
|
|
2942
3156
|
|
|
2943
3157
|
## `nex script-sync sync`
|
|
2944
3158
|
|
|
@@ -2986,7 +3200,7 @@ EXAMPLES
|
|
|
2986
3200
|
$ nex script-sync sync -d ./scripts --json --auth dev-instance
|
|
2987
3201
|
```
|
|
2988
3202
|
|
|
2989
|
-
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3203
|
+
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/script-sync/sync.ts)_
|
|
2990
3204
|
|
|
2991
3205
|
## `nex search`
|
|
2992
3206
|
|
|
@@ -3042,7 +3256,7 @@ EXAMPLES
|
|
|
3042
3256
|
$ nex search --term "GlideRecord" --limit 10 --json --auth dev-instance
|
|
3043
3257
|
```
|
|
3044
3258
|
|
|
3045
|
-
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3259
|
+
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/search/index.ts)_
|
|
3046
3260
|
|
|
3047
3261
|
## `nex search add-table`
|
|
3048
3262
|
|
|
@@ -3092,7 +3306,7 @@ EXAMPLES
|
|
|
3092
3306
|
dev-instance
|
|
3093
3307
|
```
|
|
3094
3308
|
|
|
3095
|
-
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3309
|
+
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/search/add-table.ts)_
|
|
3096
3310
|
|
|
3097
3311
|
## `nex search groups`
|
|
3098
3312
|
|
|
@@ -3130,7 +3344,7 @@ EXAMPLES
|
|
|
3130
3344
|
$ nex search groups --json --auth dev-instance
|
|
3131
3345
|
```
|
|
3132
3346
|
|
|
3133
|
-
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3347
|
+
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/search/groups.ts)_
|
|
3134
3348
|
|
|
3135
3349
|
## `nex search tables`
|
|
3136
3350
|
|
|
@@ -3170,7 +3384,7 @@ EXAMPLES
|
|
|
3170
3384
|
$ nex search tables --search-group "Business Rules" --json --auth dev-instance
|
|
3171
3385
|
```
|
|
3172
3386
|
|
|
3173
|
-
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3387
|
+
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/search/tables.ts)_
|
|
3174
3388
|
|
|
3175
3389
|
## `nex store install`
|
|
3176
3390
|
|
|
@@ -3212,7 +3426,7 @@ EXAMPLES
|
|
|
3212
3426
|
$ nex store install -a abc123 -v 1.0.0 --demo-data --auth dev
|
|
3213
3427
|
```
|
|
3214
3428
|
|
|
3215
|
-
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3429
|
+
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/store/install.ts)_
|
|
3216
3430
|
|
|
3217
3431
|
## `nex store search`
|
|
3218
3432
|
|
|
@@ -3252,7 +3466,7 @@ EXAMPLES
|
|
|
3252
3466
|
$ nex store search --tab updates --limit 10 --auth dev
|
|
3253
3467
|
```
|
|
3254
3468
|
|
|
3255
|
-
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3469
|
+
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/store/search.ts)_
|
|
3256
3470
|
|
|
3257
3471
|
## `nex store update`
|
|
3258
3472
|
|
|
@@ -3293,7 +3507,7 @@ EXAMPLES
|
|
|
3293
3507
|
$ nex store update -a abc123 -v 2.0.0 --timeout 3600000 --auth dev
|
|
3294
3508
|
```
|
|
3295
3509
|
|
|
3296
|
-
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3510
|
+
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/store/update.ts)_
|
|
3297
3511
|
|
|
3298
3512
|
## `nex store validate`
|
|
3299
3513
|
|
|
@@ -3321,7 +3535,7 @@ EXAMPLES
|
|
|
3321
3535
|
$ nex store validate --file ./batch-definition.json --auth dev
|
|
3322
3536
|
```
|
|
3323
3537
|
|
|
3324
|
-
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3538
|
+
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/store/validate.ts)_
|
|
3325
3539
|
|
|
3326
3540
|
## `nex task approve`
|
|
3327
3541
|
|
|
@@ -3361,7 +3575,7 @@ EXAMPLES
|
|
|
3361
3575
|
$ nex task approve -n CHG0010001 -c "Looks good, approved" --auth dev
|
|
3362
3576
|
```
|
|
3363
3577
|
|
|
3364
|
-
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3578
|
+
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/approve.ts)_
|
|
3365
3579
|
|
|
3366
3580
|
## `nex task assign`
|
|
3367
3581
|
|
|
@@ -3411,7 +3625,7 @@ EXAMPLES
|
|
|
3411
3625
|
$ nex task assign --number CHG0010001 --table change_request --user admin --auth dev
|
|
3412
3626
|
```
|
|
3413
3627
|
|
|
3414
|
-
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3628
|
+
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/assign.ts)_
|
|
3415
3629
|
|
|
3416
3630
|
## `nex task close`
|
|
3417
3631
|
|
|
@@ -3454,7 +3668,7 @@ EXAMPLES
|
|
|
3454
3668
|
$ nex task close -n INC0010001 --notes "Closed" --close-code "Solved (Permanently)" --auth dev
|
|
3455
3669
|
```
|
|
3456
3670
|
|
|
3457
|
-
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3671
|
+
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/close.ts)_
|
|
3458
3672
|
|
|
3459
3673
|
## `nex task comment`
|
|
3460
3674
|
|
|
@@ -3503,7 +3717,7 @@ EXAMPLES
|
|
|
3503
3717
|
$ nex task comment --number CHG0010001 --table change_request --comment "Approved" --auth dev
|
|
3504
3718
|
```
|
|
3505
3719
|
|
|
3506
|
-
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3720
|
+
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/comment.ts)_
|
|
3507
3721
|
|
|
3508
3722
|
## `nex task find`
|
|
3509
3723
|
|
|
@@ -3548,7 +3762,7 @@ EXAMPLES
|
|
|
3548
3762
|
$ nex task find -n INC0010001 --json --auth dev
|
|
3549
3763
|
```
|
|
3550
3764
|
|
|
3551
|
-
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3765
|
+
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/find.ts)_
|
|
3552
3766
|
|
|
3553
3767
|
## `nex task resolve`
|
|
3554
3768
|
|
|
@@ -3591,7 +3805,7 @@ EXAMPLES
|
|
|
3591
3805
|
$ nex task resolve -n INC0010001 --notes "Fixed" --close-code "Solved (Permanently)" --auth dev
|
|
3592
3806
|
```
|
|
3593
3807
|
|
|
3594
|
-
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3808
|
+
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/task/resolve.ts)_
|
|
3595
3809
|
|
|
3596
3810
|
## `nex update-set`
|
|
3597
3811
|
|
|
@@ -3628,7 +3842,7 @@ EXAMPLES
|
|
|
3628
3842
|
$ nex update-set --json --auth dev-instance
|
|
3629
3843
|
```
|
|
3630
3844
|
|
|
3631
|
-
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3845
|
+
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/index.ts)_
|
|
3632
3846
|
|
|
3633
3847
|
## `nex update-set clone`
|
|
3634
3848
|
|
|
@@ -3661,7 +3875,7 @@ EXAMPLES
|
|
|
3661
3875
|
$ nex update-set clone --source us-001 --name "Cloned Set" --json --auth dev-instance
|
|
3662
3876
|
```
|
|
3663
3877
|
|
|
3664
|
-
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3878
|
+
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/clone.ts)_
|
|
3665
3879
|
|
|
3666
3880
|
## `nex update-set create`
|
|
3667
3881
|
|
|
@@ -3700,7 +3914,7 @@ EXAMPLES
|
|
|
3700
3914
|
$ nex update-set create --name "My Feature Set" --application x_my_app --auth dev-instance
|
|
3701
3915
|
```
|
|
3702
3916
|
|
|
3703
|
-
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3917
|
+
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/create.ts)_
|
|
3704
3918
|
|
|
3705
3919
|
## `nex update-set current`
|
|
3706
3920
|
|
|
@@ -3736,7 +3950,7 @@ EXAMPLES
|
|
|
3736
3950
|
$ nex update-set current --json --auth dev-instance
|
|
3737
3951
|
```
|
|
3738
3952
|
|
|
3739
|
-
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3953
|
+
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/current.ts)_
|
|
3740
3954
|
|
|
3741
3955
|
## `nex update-set inspect`
|
|
3742
3956
|
|
|
@@ -3768,7 +3982,7 @@ EXAMPLES
|
|
|
3768
3982
|
$ nex update-set inspect --sys-id us-001 --json --auth dev-instance
|
|
3769
3983
|
```
|
|
3770
3984
|
|
|
3771
|
-
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
3985
|
+
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/inspect.ts)_
|
|
3772
3986
|
|
|
3773
3987
|
## `nex update-set move`
|
|
3774
3988
|
|
|
@@ -3807,7 +4021,7 @@ EXAMPLES
|
|
|
3807
4021
|
$ nex update-set move --target us-002 --source us-001 --json --auth dev-instance
|
|
3808
4022
|
```
|
|
3809
4023
|
|
|
3810
|
-
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
4024
|
+
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/update-set/move.ts)_
|
|
3811
4025
|
|
|
3812
4026
|
## `nex workflow create`
|
|
3813
4027
|
|
|
@@ -3839,7 +4053,7 @@ EXAMPLES
|
|
|
3839
4053
|
$ nex workflow create -s ./workflow.json --json --auth dev
|
|
3840
4054
|
```
|
|
3841
4055
|
|
|
3842
|
-
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
4056
|
+
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/workflow/create.ts)_
|
|
3843
4057
|
|
|
3844
4058
|
## `nex workflow publish`
|
|
3845
4059
|
|
|
@@ -3872,7 +4086,7 @@ EXAMPLES
|
|
|
3872
4086
|
$ nex workflow publish -v wfv-001 -s act-001 --json --auth dev
|
|
3873
4087
|
```
|
|
3874
4088
|
|
|
3875
|
-
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
4089
|
+
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/workflow/publish.ts)_
|
|
3876
4090
|
|
|
3877
4091
|
## `nex xml export`
|
|
3878
4092
|
|
|
@@ -3919,7 +4133,7 @@ EXAMPLES
|
|
|
3919
4133
|
$ nex xml export --table sys_script --sys-id abc123 --json --auth dev
|
|
3920
4134
|
```
|
|
3921
4135
|
|
|
3922
|
-
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
4136
|
+
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/xml/export.ts)_
|
|
3923
4137
|
|
|
3924
4138
|
## `nex xml import`
|
|
3925
4139
|
|
|
@@ -3960,7 +4174,7 @@ EXAMPLES
|
|
|
3960
4174
|
$ nex xml import --file ./records.xml --table incident --json --auth dev
|
|
3961
4175
|
```
|
|
3962
4176
|
|
|
3963
|
-
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.0
|
|
4177
|
+
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v2.3.0/src/commands/xml/import.ts)_
|
|
3964
4178
|
<!-- commandsstop -->
|
|
3965
4179
|
|
|
3966
4180
|
---
|