@sonisoft/now-sdk-ext-cli 5.5.0 → 5.7.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 +269 -232
- package/dist/commands/auth/browser-session.d.ts +13 -0
- package/dist/commands/auth/browser-session.d.ts.map +1 -0
- package/dist/commands/auth/browser-session.js +31 -0
- package/dist/commands/auth/browser-session.js.map +1 -0
- package/dist/commands/auth/open.d.ts +19 -0
- package/dist/commands/auth/open.d.ts.map +1 -0
- package/dist/commands/auth/open.js +88 -0
- package/dist/commands/auth/open.js.map +1 -0
- package/dist/common/authenticated-command.d.ts.map +1 -1
- package/dist/common/authenticated-command.js +4 -4
- package/dist/common/authenticated-command.js.map +1 -1
- package/dist/common/sdk-logger.d.ts +9 -0
- package/dist/common/sdk-logger.d.ts.map +1 -0
- package/dist/common/sdk-logger.js +21 -0
- package/dist/common/sdk-logger.js.map +1 -0
- package/dist/services/browser-session-writer.d.ts +4 -0
- package/dist/services/browser-session-writer.d.ts.map +1 -0
- package/dist/services/browser-session-writer.js +52 -0
- package/dist/services/browser-session-writer.js.map +1 -0
- package/dist/services/desktop-browser.service.d.ts +56 -0
- package/dist/services/desktop-browser.service.d.ts.map +1 -0
- package/dist/services/desktop-browser.service.js +283 -0
- package/dist/services/desktop-browser.service.js.map +1 -0
- package/oclif.manifest.json +1413 -1264
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -41,6 +41,9 @@ Execute individual ATF tests or entire test suites with detailed results, perfec
|
|
|
41
41
|
- **Syslog Reader**: Query system logs with filtering
|
|
42
42
|
- **Code Search**: Search scripts across the platform
|
|
43
43
|
|
|
44
|
+
#### Table Behavior
|
|
45
|
+
Discover business rules, UI actions, client scripts, UI/data policies, workflows, flow triggers and state models. Retrieve scripts, definitions and dependencies in the same call or in targeted batches. See [Table Behavior Discovery](#table-behavior-discovery).
|
|
46
|
+
|
|
44
47
|
#### 📊 Aggregate & Analytics
|
|
45
48
|
- **Record Counts**: Count records with optional filters
|
|
46
49
|
- **Aggregate Statistics**: Run AVG, MIN, MAX, SUM across table fields
|
|
@@ -94,6 +97,7 @@ Execute individual ATF tests or entire test suites with detailed results, perfec
|
|
|
94
97
|
- [Script Execution with REPL](#script-execution-with-repl)
|
|
95
98
|
- [Company Repository](#company-repository-integration)
|
|
96
99
|
- [Query & Search](#query--search)
|
|
100
|
+
- [Table Behavior Discovery](#table-behavior-discovery)
|
|
97
101
|
- [Aggregate & Analytics](#aggregate--analytics)
|
|
98
102
|
- [Instance Health Check](#instance-health-check)
|
|
99
103
|
- [Cluster Transactions](#cluster-transactions)
|
|
@@ -127,9 +131,7 @@ Execute individual ATF tests or entire test suites with detailed results, perfec
|
|
|
127
131
|
> npm install -g @servicenow/sdk@4.3.0
|
|
128
132
|
>
|
|
129
133
|
> # 2. Re-add each instance alias
|
|
130
|
-
>
|
|
131
|
-
> # — or —
|
|
132
|
-
> npx @servicenow/sdk auth --add <your-alias>
|
|
134
|
+
> npx @servicenow/sdk auth --add https://dev12345.service-now.com --alias dev --type oauth
|
|
133
135
|
>
|
|
134
136
|
> # 3. Verify your aliases work
|
|
135
137
|
> npx @servicenow/sdk auth --list
|
|
@@ -174,7 +176,7 @@ Verify installation:
|
|
|
174
176
|
now-sdk --version
|
|
175
177
|
```
|
|
176
178
|
|
|
177
|
-
|
|
179
|
+
Create credentials with the ServiceNow SDK (`now-sdk auth`). Use `nex auth` commands to inspect aliases, diagnose credential access, and select a default alias. This provides:
|
|
178
180
|
- Secure credential storage in your system's keychain
|
|
179
181
|
- Centralized authentication management across ServiceNow tools
|
|
180
182
|
- Support for multiple instance profiles
|
|
@@ -182,8 +184,7 @@ now-sdk --version
|
|
|
182
184
|
|
|
183
185
|
### Node.js
|
|
184
186
|
|
|
185
|
-
- **Minimum Version**: Node.js
|
|
186
|
-
- **Recommended**: Node.js 22.x (LTS) or later
|
|
187
|
+
- **Minimum Version**: Node.js 26.0.0 or higher
|
|
187
188
|
|
|
188
189
|
### ServiceNow Instance
|
|
189
190
|
|
|
@@ -493,6 +494,82 @@ nex transaction kill --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm
|
|
|
493
494
|
|
|
494
495
|
> **Warning:** A kill request aborts real work. Only pass an identifier you deliberately selected from a current `nex transaction list` result. Platform acceptance does not mean the transaction has cleared immediately; run a separate later list to confirm.
|
|
495
496
|
|
|
497
|
+
### Table Behavior Discovery
|
|
498
|
+
|
|
499
|
+
Available in **nex 5.5.0**, using core **6.4.1**. Use `nex schema` for table structure and `nex behavior` for configuration that can affect records. Both behavior commands are read-only.
|
|
500
|
+
|
|
501
|
+
```bash
|
|
502
|
+
nex behavior --table change_request --auth dev --read-only --json
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
| Category | Functional context |
|
|
506
|
+
| --- | --- |
|
|
507
|
+
| `business_rules` | Operation flags, before/after/async timing, order, conditions and script availability |
|
|
508
|
+
| `ui_actions` | Form/list/workspace placement, roles, visibility conditions and scripts |
|
|
509
|
+
| `client_scripts` | Client events, target fields, views and inherited applicability |
|
|
510
|
+
| `ui_policies` | Conditions and mandatory, visible or read-only field actions |
|
|
511
|
+
| `data_policies` | Server field requirements and enforcement settings |
|
|
512
|
+
| `workflows` | Legacy workflow versions, start conditions, activities and transitions |
|
|
513
|
+
| `flows` | Record triggers, conditions and optional current flow definitions |
|
|
514
|
+
| `state_models` | State fields, transition gates and required fields in supported generic layouts |
|
|
515
|
+
|
|
516
|
+
Defaults include active configuration and applicable ancestors, all eight categories, 50 items per category and a 64 KiB JSON response budget. Conditions and declarative field actions are included in summaries; script bodies and full definitions are opt-in.
|
|
517
|
+
|
|
518
|
+
Request the detail needed for an investigation immediately:
|
|
519
|
+
|
|
520
|
+
```bash
|
|
521
|
+
nex behavior --table change_request --category business_rules \
|
|
522
|
+
--details scripts --auth dev --read-only --json
|
|
523
|
+
|
|
524
|
+
nex behavior --table change_request --category flows \
|
|
525
|
+
--details definitions --details dependencies --dependency-depth 1 \
|
|
526
|
+
--max-bytes 262144 --auth dev --read-only --json
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
Retrieve 1–50 known artifacts without repeating table discovery. Repeat `--reference` with `kind:sourceTable:sysId` values from results. Replace these example IDs with real source IDs:
|
|
530
|
+
|
|
531
|
+
```bash
|
|
532
|
+
nex behavior details \
|
|
533
|
+
--reference flows:sys_hub_flow:0123456789abcdef0123456789abcdef \
|
|
534
|
+
--reference business_rules:sys_script:abcdef0123456789abcdef0123456789 \
|
|
535
|
+
--details scripts --details definitions --details dependencies \
|
|
536
|
+
--dependency-depth 1 --max-bytes 262144 --auth dev --read-only --json
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
Known subflows, actions, Script Includes and decision tables are also supported. Preserve references returned by discovery: a flow inventory reference can identify its trigger record. For a known flow ID, use `flows:sys_hub_flow:<sys_id>`.
|
|
540
|
+
|
|
541
|
+
| Control | Use |
|
|
542
|
+
| --- | --- |
|
|
543
|
+
| `--category` | Repeat to select categories; default all eight |
|
|
544
|
+
| `--include-inactive` | Include inactive/draft candidates where discoverable |
|
|
545
|
+
| `--no-include-inherited` | Restrict table associations to the requested table |
|
|
546
|
+
| `--name`, `--sys-id` | Filter metadata names or up to 50 source IDs; repeat `--sys-id` |
|
|
547
|
+
| `--limit` | Items per category, 1–200; default 50 |
|
|
548
|
+
| `--cursor` | Continue exactly one selected category with unchanged table and filters |
|
|
549
|
+
| `--details` | Repeat for `scripts`, `definitions`, or `dependencies`; available on both commands |
|
|
550
|
+
| `--dependency-depth` | 0 by default; 1 expands at most 50 unique dependency references and requires `--details dependencies` |
|
|
551
|
+
| `--max-bytes` | JSON budget, 4,096–1,048,576 bytes; default 65,536 |
|
|
552
|
+
| `--scope` | Transaction scope for flow definition reads |
|
|
553
|
+
|
|
554
|
+
Continue a category using its returned `nextCursor`, retaining the original filters and detail selection:
|
|
555
|
+
|
|
556
|
+
```bash
|
|
557
|
+
nex behavior --table change_request --category business_rules \
|
|
558
|
+
--auth dev --read-only --json
|
|
559
|
+
|
|
560
|
+
nex behavior --table change_request --category business_rules \
|
|
561
|
+
--cursor '<nextCursor from the previous response>' \
|
|
562
|
+
--auth dev --read-only --json
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
**Read completeness before drawing conclusions.** Each category has `status` (`complete`, `partial`, `unavailable`, or `failed`), `items`, `warnings`, and an optional `nextCursor`. Detail batches return `remainingReferences`; oversized details are omitted whole with `omittedDetails` and warnings, never cut mid-script. Increase `--max-bytes`, narrow the batch, or follow the cursor. Even an empty designer-scan page can require continuation. Visibility is limited to configuration accessible to the authenticated account.
|
|
566
|
+
|
|
567
|
+
For Change Management ATF planning, combine schema choices with behavior conditions, required fields, state transitions and dependent artifacts. Keep client UI requirements separate from server enforcement. Build assertions from that configuration, then validate execution with ATF results, logs and flow contexts. Discovery does not evaluate conditions or predict execution order; runtime trigger metadata and current design definitions have separate provenance and can differ.
|
|
568
|
+
|
|
569
|
+
`--json` prints one JSON document. SDK diagnostics pass through the shared redacting logger to stderr; core 6.4.1 waits for pending file-log writes during bounded shutdown flushing. Live behavior validation used an Australia instance; Zurich validation remains outstanding.
|
|
570
|
+
|
|
571
|
+
See the [behavior guide](docs/table-behavior.md) and [core API reference](https://github.com/sonisoft-cnanda/now-sdk-ext-core/blob/main/docs/TableBehaviorDiscovery.md) for source tables, dependency limits and recovery details.
|
|
572
|
+
|
|
496
573
|
### Flow Designer Operations
|
|
497
574
|
|
|
498
575
|
Execute and manage Flow Designer flows, subflows, and actions from the CLI.
|
|
@@ -577,152 +654,6 @@ nex bulk update --table incident --query "state=7" --data '{"active":"false"}' -
|
|
|
577
654
|
|
|
578
655
|
## 📖 Commands
|
|
579
656
|
|
|
580
|
-
<!-- toc -->
|
|
581
|
-
* [@sonisoft/now-sdk-ext-cli](#sonisoftnow-sdk-ext-cli)
|
|
582
|
-
* [Add credentials (interactive - will prompt for username/password)](#add-credentials-interactive---will-prompt-for-usernamepassword)
|
|
583
|
-
* [Set as default (optional)](#set-as-default-optional)
|
|
584
|
-
* [List configured authentication profiles](#list-configured-authentication-profiles)
|
|
585
|
-
* [One-time migration of existing keyring credentials.](#one-time-migration-of-existing-keyring-credentials)
|
|
586
|
-
* [Run this from a desktop session — the keyring will prompt to unlock.](#run-this-from-a-desktop-session--the-keyring-will-prompt-to-unlock)
|
|
587
|
-
* [Start interactive REPL](#start-interactive-repl)
|
|
588
|
-
* [Execute an ATF test](#execute-an-atf-test)
|
|
589
|
-
* [List repository applications](#list-repository-applications)
|
|
590
|
-
* [Install from repository](#install-from-repository)
|
|
591
|
-
* [Execute a single test](#execute-a-single-test)
|
|
592
|
-
* [Execute a test suite by ID](#execute-a-test-suite-by-id)
|
|
593
|
-
* [Execute by name with JSON output (perfect for CI/CD)](#execute-by-name-with-json-output-perfect-for-cicd)
|
|
594
|
-
* [Configure browser and performance settings](#configure-browser-and-performance-settings)
|
|
595
|
-
* [Install applications from batch definition](#install-applications-from-batch-definition)
|
|
596
|
-
* [Uninstall an application](#uninstall-an-application)
|
|
597
|
-
* [List repository applications (what's available to install)](#list-repository-applications-whats-available-to-install)
|
|
598
|
-
* [Install from company repository](#install-from-company-repository)
|
|
599
|
-
* [List installed repository apps](#list-installed-repository-apps)
|
|
600
|
-
* [Script with placeholders: {username}, {table}](#script-with-placeholders-username-table)
|
|
601
|
-
* [See what's available](#see-whats-available)
|
|
602
|
-
* [Filter for installable apps](#filter-for-installable-apps)
|
|
603
|
-
* [Install by scope (automatic lookup)](#install-by-scope-automatic-lookup)
|
|
604
|
-
* [Install specific version](#install-specific-version)
|
|
605
|
-
* [Background installation](#background-installation)
|
|
606
|
-
* [Query any table with encoded queries](#query-any-table-with-encoded-queries)
|
|
607
|
-
* [Search applications by name](#search-applications-by-name)
|
|
608
|
-
* [List columns for a table](#list-columns-for-a-table)
|
|
609
|
-
* [Query system logs](#query-system-logs)
|
|
610
|
-
* [Search platform code](#search-platform-code)
|
|
611
|
-
* [Count records](#count-records)
|
|
612
|
-
* [Run aggregate statistics (AVG, MIN, MAX, SUM)](#run-aggregate-statistics-avg-min-max-sum)
|
|
613
|
-
* [Grouped aggregation with display values](#grouped-aggregation-with-display-values)
|
|
614
|
-
* [Multiple group-by fields with HAVING clause](#multiple-group-by-fields-with-having-clause)
|
|
615
|
-
* [Full health check](#full-health-check)
|
|
616
|
-
* [Check only version and stuck jobs](#check-only-version-and-stuck-jobs)
|
|
617
|
-
* [Health check with custom stuck job threshold (60 minutes)](#health-check-with-custom-stuck-job-threshold-60-minutes)
|
|
618
|
-
* [JSON output for monitoring/alerting](#json-output-for-monitoringalerting)
|
|
619
|
-
* [List active transactions](#list-active-transactions)
|
|
620
|
-
* [Return complete, untruncated records as JSON](#return-complete-untruncated-records-as-json)
|
|
621
|
-
* [Submit a kill request for one deliberately selected transaction](#submit-a-kill-request-for-one-deliberately-selected-transaction)
|
|
622
|
-
* [Execute a flow in foreground (waits for completion)](#execute-a-flow-in-foreground-waits-for-completion)
|
|
623
|
-
* [Execute with inputs](#execute-with-inputs)
|
|
624
|
-
* [Execute a subflow](#execute-a-subflow)
|
|
625
|
-
* [Execute an action](#execute-an-action)
|
|
626
|
-
* [Check flow status](#check-flow-status)
|
|
627
|
-
* [Retrieve flow outputs](#retrieve-flow-outputs)
|
|
628
|
-
* [Check for errors](#check-for-errors)
|
|
629
|
-
* [Cancel a running flow](#cancel-a-running-flow)
|
|
630
|
-
* [Send a message to a waiting flow (e.g., approval)](#send-a-message-to-a-waiting-flow-eg-approval)
|
|
631
|
-
* [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)
|
|
632
|
-
* [Read a subflow definition](#read-a-subflow-definition)
|
|
633
|
-
* [Read a custom action definition with its ordered steps](#read-a-custom-action-definition-with-its-ordered-steps)
|
|
634
|
-
* [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)
|
|
635
|
-
* [Dry-run: preview which records would be updated (safe default)](#dry-run-preview-which-records-would-be-updated-safe-default)
|
|
636
|
-
* [Confirm bulk update (actually modifies records)](#confirm-bulk-update-actually-modifies-records)
|
|
637
|
-
* [Dry-run: preview which records would be deleted](#dry-run-preview-which-records-would-be-deleted)
|
|
638
|
-
* [Confirm bulk delete with limit](#confirm-bulk-delete-with-limit)
|
|
639
|
-
* [JSON output for scripting](#json-output-for-scripting)
|
|
640
|
-
* [Usage](#usage)
|
|
641
|
-
* [Commands](#commands)
|
|
642
|
-
* [Global scope](#global-scope)
|
|
643
|
-
* [Custom application scope](#custom-application-scope)
|
|
644
|
-
* [Development](#development)
|
|
645
|
-
* [Production](#production)
|
|
646
|
-
* [GitHub Actions](#github-actions)
|
|
647
|
-
* [1. Enable autocomplete](#1-enable-autocomplete)
|
|
648
|
-
* [2. Follow shell-specific instructions (bash/zsh/fish)](#2-follow-shell-specific-instructions-bashzshfish)
|
|
649
|
-
* [3. Reload shell](#3-reload-shell)
|
|
650
|
-
* [4. Start using it!](#4-start-using-it)
|
|
651
|
-
* [Autocomplete queries ServiceNow and shows:](#autocomplete-queries-servicenow-and-shows)
|
|
652
|
-
* [Ready to execute!](#ready-to-execute)
|
|
653
|
-
* [Add credentials interactively (will prompt for username/password)](#add-credentials-interactively-will-prompt-for-usernamepassword)
|
|
654
|
-
* [For OAuth authentication](#for-oauth-authentication)
|
|
655
|
-
* [List all configured authentication profiles](#list-all-configured-authentication-profiles)
|
|
656
|
-
* [Set default authentication profile (optional)](#set-default-authentication-profile-optional)
|
|
657
|
-
* [Delete an authentication profile](#delete-an-authentication-profile)
|
|
658
|
-
* [Use specific authentication profile via --auth flag](#use-specific-authentication-profile-via---auth-flag)
|
|
659
|
-
* [Use default profile (if set with --use)](#use-default-profile-if-set-with---use)
|
|
660
|
-
* [All commands support the --auth flag](#all-commands-support-the---auth-flag)
|
|
661
|
-
* [Set credentials in environment](#set-credentials-in-environment)
|
|
662
|
-
* [Add authentication profile (will use environment variables)](#add-authentication-profile-will-use-environment-variables)
|
|
663
|
-
* [1. List available repository apps](#1-list-available-repository-apps)
|
|
664
|
-
* [2. Install application from repository](#2-install-application-from-repository)
|
|
665
|
-
* [3. Configure using REPL](#3-configure-using-repl)
|
|
666
|
-
* [4. Run tests](#4-run-tests)
|
|
667
|
-
* [5. Deploy to production with parameterized script](#5-deploy-to-production-with-parameterized-script)
|
|
668
|
-
* [6. Verify deployment](#6-verify-deployment)
|
|
669
|
-
* [Execute a single test](#execute-a-single-test)
|
|
670
|
-
* [Execute a test suite and wait for results](#execute-a-test-suite-and-wait-for-results)
|
|
671
|
-
* [Execute by name (no need to look up sys_id)](#execute-by-name-no-need-to-look-up-sys_id)
|
|
672
|
-
* [Performance test with specific browser](#performance-test-with-specific-browser)
|
|
673
|
-
* [CI/CD integration with JSON output](#cicd-integration-with-json-output)
|
|
674
|
-
* [Custom polling for long tests](#custom-polling-for-long-tests)
|
|
675
|
-
* [Browse company repository](#browse-company-repository)
|
|
676
|
-
* [Install from repository](#install-from-repository)
|
|
677
|
-
* [Batch install multiple apps](#batch-install-multiple-apps)
|
|
678
|
-
* [Uninstall application](#uninstall-application)
|
|
679
|
-
* [Execute script file](#execute-script-file)
|
|
680
|
-
* [Execute in custom scope](#execute-in-custom-scope)
|
|
681
|
-
* [Pipe output](#pipe-output)
|
|
682
|
-
* [Start REPL](#start-repl)
|
|
683
|
-
* [Execute multi-line scripts interactively](#execute-multi-line-scripts-interactively)
|
|
684
|
-
* [Single parameter](#single-parameter)
|
|
685
|
-
* [Multiple parameters](#multiple-parameters)
|
|
686
|
-
* [From environment variables](#from-environment-variables)
|
|
687
|
-
* [daily-tests.sh](#daily-testssh)
|
|
688
|
-
* [setup-environment.sh](#setup-environmentsh)
|
|
689
|
-
* [Install required apps from repository](#install-required-apps-from-repository)
|
|
690
|
-
* [Configure via parameterized script](#configure-via-parameterized-script)
|
|
691
|
-
* [Validate with ATF](#validate-with-atf)
|
|
692
|
-
* [migrate-data.sh](#migrate-datash)
|
|
693
|
-
* [Export from source](#export-from-source)
|
|
694
|
-
* [Transform data](#transform-data)
|
|
695
|
-
* [Import to target with parameters](#import-to-target-with-parameters)
|
|
696
|
-
* [Validate](#validate)
|
|
697
|
-
* [List all configured authentication profiles](#list-all-configured-authentication-profiles)
|
|
698
|
-
* [Delete and re-add credentials if needed](#delete-and-re-add-credentials-if-needed)
|
|
699
|
-
* [Set as default](#set-as-default)
|
|
700
|
-
* [Verify installation](#verify-installation)
|
|
701
|
-
* [Reinstall if needed](#reinstall-if-needed)
|
|
702
|
-
* [Check PATH includes npm global binaries](#check-path-includes-npm-global-binaries)
|
|
703
|
-
* [Increase poll interval](#increase-poll-interval)
|
|
704
|
-
* [Check instance performance](#check-instance-performance)
|
|
705
|
-
* [Check test suite complexity](#check-test-suite-complexity)
|
|
706
|
-
* [Review ServiceNow logs](#review-servicenow-logs)
|
|
707
|
-
* [Verify user has required roles:](#verify-user-has-required-roles)
|
|
708
|
-
* [- atf_test_runner for ATF operations](#--atf_test_runner-for-atf-operations)
|
|
709
|
-
* [- admin for app management](#--admin-for-app-management)
|
|
710
|
-
* [- appropriate scope access for scripts](#--appropriate-scope-access-for-scripts)
|
|
711
|
-
* [General help](#general-help)
|
|
712
|
-
* [Command-specific help](#command-specific-help)
|
|
713
|
-
* [Command-specific help](#command-specific-help)
|
|
714
|
-
* [Enable autocomplete](#enable-autocomplete)
|
|
715
|
-
* [Clone the repository](#clone-the-repository)
|
|
716
|
-
* [Install dependencies](#install-dependencies)
|
|
717
|
-
* [Build](#build)
|
|
718
|
-
* [Run tests (960+ tests)](#run-tests-960-tests)
|
|
719
|
-
* [Run linter](#run-linter)
|
|
720
|
-
* [Test locally](#test-locally)
|
|
721
|
-
* [All tests](#all-tests)
|
|
722
|
-
* [Specific test file](#specific-test-file)
|
|
723
|
-
* [With coverage](#with-coverage)
|
|
724
|
-
<!-- tocstop -->
|
|
725
|
-
|
|
726
657
|
# Usage
|
|
727
658
|
<!-- usage -->
|
|
728
659
|
```sh-session
|
|
@@ -730,7 +661,7 @@ $ npm install -g @sonisoft/now-sdk-ext-cli
|
|
|
730
661
|
$ nex COMMAND
|
|
731
662
|
running command...
|
|
732
663
|
$ nex (--version)
|
|
733
|
-
@sonisoft/now-sdk-ext-cli/5.
|
|
664
|
+
@sonisoft/now-sdk-ext-cli/5.7.0 linux-x64 node-v26.5.0
|
|
734
665
|
$ nex --help [COMMAND]
|
|
735
666
|
USAGE
|
|
736
667
|
$ nex COMMAND
|
|
@@ -777,9 +708,11 @@ rather than silently denying nothing.
|
|
|
777
708
|
* [`nex attachment get`](#nex-attachment-get)
|
|
778
709
|
* [`nex attachment list`](#nex-attachment-list)
|
|
779
710
|
* [`nex attachment upload`](#nex-attachment-upload)
|
|
711
|
+
* [`nex auth browser-session`](#nex-auth-browser-session)
|
|
780
712
|
* [`nex auth delete [ALIAS]`](#nex-auth-delete-alias)
|
|
781
713
|
* [`nex auth doctor`](#nex-auth-doctor)
|
|
782
714
|
* [`nex auth list`](#nex-auth-list)
|
|
715
|
+
* [`nex auth open`](#nex-auth-open)
|
|
783
716
|
* [`nex auth use ALIAS`](#nex-auth-use-alias)
|
|
784
717
|
* [`nex autocomplete [SHELL]`](#nex-autocomplete-shell)
|
|
785
718
|
* [`nex batch create`](#nex-batch-create)
|
|
@@ -908,7 +841,7 @@ EXAMPLES
|
|
|
908
841
|
$ nex aggregate count --table incident --query "active=true" --json --auth dev
|
|
909
842
|
```
|
|
910
843
|
|
|
911
|
-
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
844
|
+
_See code: [src/commands/aggregate/count.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/aggregate/count.ts)_
|
|
912
845
|
|
|
913
846
|
## `nex aggregate group`
|
|
914
847
|
|
|
@@ -976,7 +909,7 @@ EXAMPLES
|
|
|
976
909
|
$ nex aggregate group --table incident --group-by priority --count --having "count>10" --auth dev
|
|
977
910
|
```
|
|
978
911
|
|
|
979
|
-
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
912
|
+
_See code: [src/commands/aggregate/group.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/aggregate/group.ts)_
|
|
980
913
|
|
|
981
914
|
## `nex aggregate query`
|
|
982
915
|
|
|
@@ -1039,7 +972,7 @@ EXAMPLES
|
|
|
1039
972
|
$ nex aggregate query --table incident --sum reassignment_count --json --auth dev
|
|
1040
973
|
```
|
|
1041
974
|
|
|
1042
|
-
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
975
|
+
_See code: [src/commands/aggregate/query.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/aggregate/query.ts)_
|
|
1043
976
|
|
|
1044
977
|
## `nex app`
|
|
1045
978
|
|
|
@@ -1102,7 +1035,7 @@ EXAMPLES
|
|
|
1102
1035
|
$ nex app -u -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
1103
1036
|
```
|
|
1104
1037
|
|
|
1105
|
-
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1038
|
+
_See code: [src/commands/app/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/app/index.ts)_
|
|
1106
1039
|
|
|
1107
1040
|
## `nex app install`
|
|
1108
1041
|
|
|
@@ -1170,7 +1103,7 @@ EXAMPLES
|
|
|
1170
1103
|
$ nex app install -b -d ./apps.json -a dev-instance --log-level debug
|
|
1171
1104
|
```
|
|
1172
1105
|
|
|
1173
|
-
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1106
|
+
_See code: [src/commands/app/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/app/install.ts)_
|
|
1174
1107
|
|
|
1175
1108
|
## `nex app repo-install`
|
|
1176
1109
|
|
|
@@ -1255,7 +1188,7 @@ EXAMPLES
|
|
|
1255
1188
|
$ nex app repo-install -s x_my_app -a dev-instance --log-level debug
|
|
1256
1189
|
```
|
|
1257
1190
|
|
|
1258
|
-
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1191
|
+
_See code: [src/commands/app/repo-install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/app/repo-install.ts)_
|
|
1259
1192
|
|
|
1260
1193
|
## `nex app repo-list`
|
|
1261
1194
|
|
|
@@ -1330,7 +1263,7 @@ EXAMPLES
|
|
|
1330
1263
|
$ nex app repo-list -a dev-instance
|
|
1331
1264
|
```
|
|
1332
1265
|
|
|
1333
|
-
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1266
|
+
_See code: [src/commands/app/repo-list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/app/repo-list.ts)_
|
|
1334
1267
|
|
|
1335
1268
|
## `nex app uninstall`
|
|
1336
1269
|
|
|
@@ -1392,7 +1325,7 @@ EXAMPLES
|
|
|
1392
1325
|
$ nex app uninstall -i a1b2c3d4e5f6 -s x_my_custom_app -a dev-instance
|
|
1393
1326
|
```
|
|
1394
1327
|
|
|
1395
|
-
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1328
|
+
_See code: [src/commands/app/uninstall.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/app/uninstall.ts)_
|
|
1396
1329
|
|
|
1397
1330
|
## `nex atf`
|
|
1398
1331
|
|
|
@@ -1475,7 +1408,7 @@ EXAMPLES
|
|
|
1475
1408
|
$ nex atf --suite-id e077e00b83103210621e78c6feaad383 --poll-interval 10000 --auth dev-instance
|
|
1476
1409
|
```
|
|
1477
1410
|
|
|
1478
|
-
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1411
|
+
_See code: [src/commands/atf/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/atf/index.ts)_
|
|
1479
1412
|
|
|
1480
1413
|
## `nex attachment get`
|
|
1481
1414
|
|
|
@@ -1518,7 +1451,7 @@ EXAMPLES
|
|
|
1518
1451
|
$ nex attachment get -s att123 --json --auth dev
|
|
1519
1452
|
```
|
|
1520
1453
|
|
|
1521
|
-
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1454
|
+
_See code: [src/commands/attachment/get.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/attachment/get.ts)_
|
|
1522
1455
|
|
|
1523
1456
|
## `nex attachment list`
|
|
1524
1457
|
|
|
@@ -1563,7 +1496,7 @@ EXAMPLES
|
|
|
1563
1496
|
$ nex attachment list -t incident -r abc123 --limit 50 --json --auth dev
|
|
1564
1497
|
```
|
|
1565
1498
|
|
|
1566
|
-
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1499
|
+
_See code: [src/commands/attachment/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/attachment/list.ts)_
|
|
1567
1500
|
|
|
1568
1501
|
## `nex attachment upload`
|
|
1569
1502
|
|
|
@@ -1610,7 +1543,30 @@ EXAMPLES
|
|
|
1610
1543
|
$ nex attachment upload -t incident -r abc123 -f ./data.csv --content-type text/csv --auth dev
|
|
1611
1544
|
```
|
|
1612
1545
|
|
|
1613
|
-
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1546
|
+
_See code: [src/commands/attachment/upload.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/attachment/upload.ts)_
|
|
1547
|
+
|
|
1548
|
+
## `nex auth browser-session`
|
|
1549
|
+
|
|
1550
|
+
Create a verified Playwright cookie session using a stored SDK alias.
|
|
1551
|
+
|
|
1552
|
+
```
|
|
1553
|
+
USAGE
|
|
1554
|
+
$ nex auth browser-session -a <value> --output <value> [--json] [--cred-store] [--force]
|
|
1555
|
+
|
|
1556
|
+
FLAGS
|
|
1557
|
+
-a, --auth=<value> (required) Stored SDK credential alias.
|
|
1558
|
+
--cred-store Use the headless credential store.
|
|
1559
|
+
--force Replace an existing regular output file.
|
|
1560
|
+
--output=<value> (required) Owner-only Playwright storage-state file.
|
|
1561
|
+
|
|
1562
|
+
GLOBAL FLAGS
|
|
1563
|
+
--json Format output as json.
|
|
1564
|
+
|
|
1565
|
+
DESCRIPTION
|
|
1566
|
+
Create a verified Playwright cookie session using a stored SDK alias.
|
|
1567
|
+
```
|
|
1568
|
+
|
|
1569
|
+
_See code: [src/commands/auth/browser-session.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/browser-session.ts)_
|
|
1614
1570
|
|
|
1615
1571
|
## `nex auth delete [ALIAS]`
|
|
1616
1572
|
|
|
@@ -1645,7 +1601,7 @@ EXAMPLES
|
|
|
1645
1601
|
$ nex auth delete --all
|
|
1646
1602
|
```
|
|
1647
1603
|
|
|
1648
|
-
_See code: [src/commands/auth/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1604
|
+
_See code: [src/commands/auth/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/delete.ts)_
|
|
1649
1605
|
|
|
1650
1606
|
## `nex auth doctor`
|
|
1651
1607
|
|
|
@@ -1673,7 +1629,7 @@ EXAMPLES
|
|
|
1673
1629
|
$ nex auth doctor --json
|
|
1674
1630
|
```
|
|
1675
1631
|
|
|
1676
|
-
_See code: [src/commands/auth/doctor.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1632
|
+
_See code: [src/commands/auth/doctor.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/doctor.ts)_
|
|
1677
1633
|
|
|
1678
1634
|
## `nex auth list`
|
|
1679
1635
|
|
|
@@ -1706,7 +1662,47 @@ EXAMPLES
|
|
|
1706
1662
|
$ nex auth list --json
|
|
1707
1663
|
```
|
|
1708
1664
|
|
|
1709
|
-
_See code: [src/commands/auth/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1665
|
+
_See code: [src/commands/auth/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/list.ts)_
|
|
1666
|
+
|
|
1667
|
+
## `nex auth open`
|
|
1668
|
+
|
|
1669
|
+
Open a verified UI session in a dedicated desktop browser using a stored SDK alias.
|
|
1670
|
+
|
|
1671
|
+
```
|
|
1672
|
+
USAGE
|
|
1673
|
+
$ nex auth open -a <value> [--json] [--browser edge|chrome|brave] [--cdp <value>] [--cred-store] [--force]
|
|
1674
|
+
[--output <value>]
|
|
1675
|
+
|
|
1676
|
+
FLAGS
|
|
1677
|
+
-a, --auth=<value> (required) Stored SDK credential alias.
|
|
1678
|
+
--browser=<option> [default: edge] Desktop browser to launch. Ignored when --cdp is set.
|
|
1679
|
+
<options: edge|chrome|brave>
|
|
1680
|
+
--cdp=<value> Existing DevTools URL. Skips launching a browser.
|
|
1681
|
+
--cred-store Use the headless credential store.
|
|
1682
|
+
--force Replace an existing regular output file.
|
|
1683
|
+
--output=<value> Optional owner-only Playwright storage-state file.
|
|
1684
|
+
|
|
1685
|
+
GLOBAL FLAGS
|
|
1686
|
+
--json Format output as json.
|
|
1687
|
+
|
|
1688
|
+
DESCRIPTION
|
|
1689
|
+
Open a verified UI session in a dedicated desktop browser using a stored SDK alias.
|
|
1690
|
+
|
|
1691
|
+
EXAMPLES
|
|
1692
|
+
Open the alias in Edge
|
|
1693
|
+
|
|
1694
|
+
$ nex auth open -a bcbsscdev --cred-store
|
|
1695
|
+
|
|
1696
|
+
Open in Chrome
|
|
1697
|
+
|
|
1698
|
+
$ nex auth open -a dev206299 --browser chrome
|
|
1699
|
+
|
|
1700
|
+
Inject into an already-debuggable browser
|
|
1701
|
+
|
|
1702
|
+
$ nex auth open -a dev206299 --cdp http://127.0.0.1:9222
|
|
1703
|
+
```
|
|
1704
|
+
|
|
1705
|
+
_See code: [src/commands/auth/open.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/open.ts)_
|
|
1710
1706
|
|
|
1711
1707
|
## `nex auth use ALIAS`
|
|
1712
1708
|
|
|
@@ -1734,7 +1730,7 @@ EXAMPLES
|
|
|
1734
1730
|
$ nex auth use dev206299
|
|
1735
1731
|
```
|
|
1736
1732
|
|
|
1737
|
-
_See code: [src/commands/auth/use.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1733
|
+
_See code: [src/commands/auth/use.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/auth/use.ts)_
|
|
1738
1734
|
|
|
1739
1735
|
## `nex autocomplete [SHELL]`
|
|
1740
1736
|
|
|
@@ -1809,7 +1805,7 @@ EXAMPLES
|
|
|
1809
1805
|
$ nex batch create --file ./records.json --no-transaction --auth dev
|
|
1810
1806
|
```
|
|
1811
1807
|
|
|
1812
|
-
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1808
|
+
_See code: [src/commands/batch/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/batch/create.ts)_
|
|
1813
1809
|
|
|
1814
1810
|
## `nex batch update`
|
|
1815
1811
|
|
|
@@ -1853,7 +1849,7 @@ EXAMPLES
|
|
|
1853
1849
|
$ nex batch update --file ./updates.json --stop-on-error --auth dev
|
|
1854
1850
|
```
|
|
1855
1851
|
|
|
1856
|
-
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1852
|
+
_See code: [src/commands/batch/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/batch/update.ts)_
|
|
1857
1853
|
|
|
1858
1854
|
## `nex behavior`
|
|
1859
1855
|
|
|
@@ -1911,7 +1907,7 @@ EXAMPLES
|
|
|
1911
1907
|
$ nex behavior --table change_request --category business_rules --details scripts --auth dev --json
|
|
1912
1908
|
```
|
|
1913
1909
|
|
|
1914
|
-
_See code: [src/commands/behavior/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1910
|
+
_See code: [src/commands/behavior/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/behavior/index.ts)_
|
|
1915
1911
|
|
|
1916
1912
|
## `nex behavior details`
|
|
1917
1913
|
|
|
@@ -1956,7 +1952,7 @@ EXAMPLES
|
|
|
1956
1952
|
$ nex behavior details --reference business_rules:sys_script:0123456789abcdef0123456789abcdef --details scripts --auth dev --json
|
|
1957
1953
|
```
|
|
1958
1954
|
|
|
1959
|
-
_See code: [src/commands/behavior/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
1955
|
+
_See code: [src/commands/behavior/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/behavior/details.ts)_
|
|
1960
1956
|
|
|
1961
1957
|
## `nex bulk delete`
|
|
1962
1958
|
|
|
@@ -2020,7 +2016,7 @@ EXAMPLES
|
|
|
2020
2016
|
$ nex bulk delete --table u_staging --query "processed=true" --confirm --json --auth dev
|
|
2021
2017
|
```
|
|
2022
2018
|
|
|
2023
|
-
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2019
|
+
_See code: [src/commands/bulk/delete.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/bulk/delete.ts)_
|
|
2024
2020
|
|
|
2025
2021
|
## `nex bulk update`
|
|
2026
2022
|
|
|
@@ -2089,7 +2085,7 @@ EXAMPLES
|
|
|
2089
2085
|
$ nex bulk update --table incident --query "active=true" --data '{"state":"6"}' --confirm --json --auth dev
|
|
2090
2086
|
```
|
|
2091
2087
|
|
|
2092
|
-
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2088
|
+
_See code: [src/commands/bulk/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/bulk/update.ts)_
|
|
2093
2089
|
|
|
2094
2090
|
## `nex exec SCOPE [FILE]`
|
|
2095
2091
|
|
|
@@ -2219,7 +2215,7 @@ EXAMPLES
|
|
|
2219
2215
|
$ nex exec global ./script.js --auth dev-instance --params '{"token":"abc123","env":"dev"}'
|
|
2220
2216
|
```
|
|
2221
2217
|
|
|
2222
|
-
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2218
|
+
_See code: [src/commands/exec/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/exec/index.ts)_
|
|
2223
2219
|
|
|
2224
2220
|
## `nex flow action`
|
|
2225
2221
|
|
|
@@ -2273,7 +2269,7 @@ EXAMPLES
|
|
|
2273
2269
|
'{"table":"incident","values":{"short_description":"Test"}}' --auth dev
|
|
2274
2270
|
```
|
|
2275
2271
|
|
|
2276
|
-
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2272
|
+
_See code: [src/commands/flow/action.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/action.ts)_
|
|
2277
2273
|
|
|
2278
2274
|
## `nex flow cancel`
|
|
2279
2275
|
|
|
@@ -2320,7 +2316,7 @@ EXAMPLES
|
|
|
2320
2316
|
$ nex flow cancel --context-id abc123def456 --reason "No longer needed" --auth dev
|
|
2321
2317
|
```
|
|
2322
2318
|
|
|
2323
|
-
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2319
|
+
_See code: [src/commands/flow/cancel.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/cancel.ts)_
|
|
2324
2320
|
|
|
2325
2321
|
## `nex flow copy`
|
|
2326
2322
|
|
|
@@ -2385,7 +2381,7 @@ EXAMPLES
|
|
|
2385
2381
|
dev
|
|
2386
2382
|
```
|
|
2387
2383
|
|
|
2388
|
-
_See code: [src/commands/flow/copy.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2384
|
+
_See code: [src/commands/flow/copy.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/copy.ts)_
|
|
2389
2385
|
|
|
2390
2386
|
## `nex flow definition`
|
|
2391
2387
|
|
|
@@ -2458,7 +2454,7 @@ EXAMPLES
|
|
|
2458
2454
|
$ nex flow definition -i 887dda5583237210fdb8f7b6feaad32c --type action --json --auth dev | jq .summary.steps
|
|
2459
2455
|
```
|
|
2460
2456
|
|
|
2461
|
-
_See code: [src/commands/flow/definition.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2457
|
+
_See code: [src/commands/flow/definition.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/definition.ts)_
|
|
2462
2458
|
|
|
2463
2459
|
## `nex flow details`
|
|
2464
2460
|
|
|
@@ -2519,7 +2515,7 @@ EXAMPLES
|
|
|
2519
2515
|
$ nex flow details -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
2520
2516
|
```
|
|
2521
2517
|
|
|
2522
|
-
_See code: [src/commands/flow/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2518
|
+
_See code: [src/commands/flow/details.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/details.ts)_
|
|
2523
2519
|
|
|
2524
2520
|
## `nex flow error`
|
|
2525
2521
|
|
|
@@ -2561,7 +2557,7 @@ EXAMPLES
|
|
|
2561
2557
|
$ nex flow error --context-id abc123def456 --auth dev
|
|
2562
2558
|
```
|
|
2563
2559
|
|
|
2564
|
-
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2560
|
+
_See code: [src/commands/flow/error.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/error.ts)_
|
|
2565
2561
|
|
|
2566
2562
|
## `nex flow logs`
|
|
2567
2563
|
|
|
@@ -2619,7 +2615,7 @@ EXAMPLES
|
|
|
2619
2615
|
$ nex flow logs -c d4e5f6789012345678abcdef01234567 --json --auth dev
|
|
2620
2616
|
```
|
|
2621
2617
|
|
|
2622
|
-
_See code: [src/commands/flow/logs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2618
|
+
_See code: [src/commands/flow/logs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/logs.ts)_
|
|
2623
2619
|
|
|
2624
2620
|
## `nex flow message`
|
|
2625
2621
|
|
|
@@ -2669,7 +2665,7 @@ EXAMPLES
|
|
|
2669
2665
|
$ nex flow message --context-id abc123def456 --message "data_ready" --payload '{"status":"ok"}' --auth dev
|
|
2670
2666
|
```
|
|
2671
2667
|
|
|
2672
|
-
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2668
|
+
_See code: [src/commands/flow/message.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/message.ts)_
|
|
2673
2669
|
|
|
2674
2670
|
## `nex flow outputs`
|
|
2675
2671
|
|
|
@@ -2715,7 +2711,7 @@ EXAMPLES
|
|
|
2715
2711
|
$ nex flow outputs --context-id abc123def456 --json --auth dev
|
|
2716
2712
|
```
|
|
2717
2713
|
|
|
2718
|
-
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2714
|
+
_See code: [src/commands/flow/outputs.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/outputs.ts)_
|
|
2719
2715
|
|
|
2720
2716
|
## `nex flow run`
|
|
2721
2717
|
|
|
@@ -2781,7 +2777,7 @@ EXAMPLES
|
|
|
2781
2777
|
$ nex flow run --name global.my_flow --mode background --auth dev
|
|
2782
2778
|
```
|
|
2783
2779
|
|
|
2784
|
-
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2780
|
+
_See code: [src/commands/flow/run.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/run.ts)_
|
|
2785
2781
|
|
|
2786
2782
|
## `nex flow status`
|
|
2787
2783
|
|
|
@@ -2825,7 +2821,7 @@ EXAMPLES
|
|
|
2825
2821
|
$ nex flow status --context-id abc123def456 --auth dev
|
|
2826
2822
|
```
|
|
2827
2823
|
|
|
2828
|
-
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2824
|
+
_See code: [src/commands/flow/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/status.ts)_
|
|
2829
2825
|
|
|
2830
2826
|
## `nex flow subflow`
|
|
2831
2827
|
|
|
@@ -2885,7 +2881,7 @@ EXAMPLES
|
|
|
2885
2881
|
$ nex flow subflow --name x_myapp.process_record --inputs '{"table":"incident","sys_id":"abc123"}' --auth dev
|
|
2886
2882
|
```
|
|
2887
2883
|
|
|
2888
|
-
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2884
|
+
_See code: [src/commands/flow/subflow.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/subflow.ts)_
|
|
2889
2885
|
|
|
2890
2886
|
## `nex flow test`
|
|
2891
2887
|
|
|
@@ -2948,7 +2944,7 @@ EXAMPLES
|
|
|
2948
2944
|
$ nex flow test -f 887dda5583237210fdb8f7b6feaad32c -o '{"current":"abc123"}' --json --auth dev
|
|
2949
2945
|
```
|
|
2950
2946
|
|
|
2951
|
-
_See code: [src/commands/flow/test.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
2947
|
+
_See code: [src/commands/flow/test.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/flow/test.ts)_
|
|
2952
2948
|
|
|
2953
2949
|
## `nex health check`
|
|
2954
2950
|
|
|
@@ -3018,7 +3014,7 @@ EXAMPLES
|
|
|
3018
3014
|
$ nex health check --json --auth dev
|
|
3019
3015
|
```
|
|
3020
3016
|
|
|
3021
|
-
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3017
|
+
_See code: [src/commands/health/check.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/health/check.ts)_
|
|
3022
3018
|
|
|
3023
3019
|
## `nex help [COMMAND]`
|
|
3024
3020
|
|
|
@@ -3154,7 +3150,7 @@ EXAMPLES
|
|
|
3154
3150
|
$ nex log --no-color --auth dev-instance
|
|
3155
3151
|
```
|
|
3156
3152
|
|
|
3157
|
-
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3153
|
+
_See code: [src/commands/log/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/log/index.ts)_
|
|
3158
3154
|
|
|
3159
3155
|
## `nex plugins`
|
|
3160
3156
|
|
|
@@ -3476,7 +3472,7 @@ EXAMPLES
|
|
|
3476
3472
|
NEX_POLICY_DENY=all nex policy status
|
|
3477
3473
|
```
|
|
3478
3474
|
|
|
3479
|
-
_See code: [src/commands/policy/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3475
|
+
_See code: [src/commands/policy/status.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/policy/status.ts)_
|
|
3480
3476
|
|
|
3481
3477
|
## `nex query`
|
|
3482
3478
|
|
|
@@ -3539,7 +3535,7 @@ EXAMPLES
|
|
|
3539
3535
|
$ nex query --table sys_user --query "active=true" --limit 5 --json --auth dev
|
|
3540
3536
|
```
|
|
3541
3537
|
|
|
3542
|
-
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3538
|
+
_See code: [src/commands/query/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/query/index.ts)_
|
|
3543
3539
|
|
|
3544
3540
|
## `nex query app`
|
|
3545
3541
|
|
|
@@ -3592,7 +3588,7 @@ EXAMPLES
|
|
|
3592
3588
|
$ nex query app --search "HR" --active --auth dev
|
|
3593
3589
|
```
|
|
3594
3590
|
|
|
3595
|
-
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3591
|
+
_See code: [src/commands/query/app.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/query/app.ts)_
|
|
3596
3592
|
|
|
3597
3593
|
## `nex query columns`
|
|
3598
3594
|
|
|
@@ -3647,7 +3643,7 @@ EXAMPLES
|
|
|
3647
3643
|
$ nex query columns --table incident --json --auth dev
|
|
3648
3644
|
```
|
|
3649
3645
|
|
|
3650
|
-
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3646
|
+
_See code: [src/commands/query/columns.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/query/columns.ts)_
|
|
3651
3647
|
|
|
3652
3648
|
## `nex query syslog`
|
|
3653
3649
|
|
|
@@ -3704,7 +3700,7 @@ EXAMPLES
|
|
|
3704
3700
|
$ nex query syslog --query "sourceLIKEincident" --json --auth dev
|
|
3705
3701
|
```
|
|
3706
3702
|
|
|
3707
|
-
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3703
|
+
_See code: [src/commands/query/syslog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/query/syslog.ts)_
|
|
3708
3704
|
|
|
3709
3705
|
## `nex schema`
|
|
3710
3706
|
|
|
@@ -3763,7 +3759,7 @@ EXAMPLES
|
|
|
3763
3759
|
$ nex schema --table incident --include-choices --include-relationships --auth dev
|
|
3764
3760
|
```
|
|
3765
3761
|
|
|
3766
|
-
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3762
|
+
_See code: [src/commands/schema/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/schema/index.ts)_
|
|
3767
3763
|
|
|
3768
3764
|
## `nex schema field`
|
|
3769
3765
|
|
|
@@ -3810,7 +3806,7 @@ EXAMPLES
|
|
|
3810
3806
|
$ nex schema field --table incident --field priority --json --auth dev
|
|
3811
3807
|
```
|
|
3812
3808
|
|
|
3813
|
-
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3809
|
+
_See code: [src/commands/schema/field.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/schema/field.ts)_
|
|
3814
3810
|
|
|
3815
3811
|
## `nex schema validate-catalog`
|
|
3816
3812
|
|
|
@@ -3856,7 +3852,7 @@ EXAMPLES
|
|
|
3856
3852
|
$ nex schema validate-catalog --sys-id a1b2c3d4e5f6 --json --auth dev
|
|
3857
3853
|
```
|
|
3858
3854
|
|
|
3859
|
-
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3855
|
+
_See code: [src/commands/schema/validate-catalog.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/schema/validate-catalog.ts)_
|
|
3860
3856
|
|
|
3861
3857
|
## `nex scope`
|
|
3862
3858
|
|
|
@@ -3903,7 +3899,7 @@ EXAMPLES
|
|
|
3903
3899
|
$ nex scope -l --json --auth dev
|
|
3904
3900
|
```
|
|
3905
3901
|
|
|
3906
|
-
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3902
|
+
_See code: [src/commands/scope/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/scope/index.ts)_
|
|
3907
3903
|
|
|
3908
3904
|
## `nex scope set`
|
|
3909
3905
|
|
|
@@ -3946,7 +3942,7 @@ EXAMPLES
|
|
|
3946
3942
|
$ nex scope set -a abc123def456ghi789jkl012mno345pq --json --auth dev
|
|
3947
3943
|
```
|
|
3948
3944
|
|
|
3949
|
-
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
3945
|
+
_See code: [src/commands/scope/set.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/scope/set.ts)_
|
|
3950
3946
|
|
|
3951
3947
|
## `nex script-sync pull`
|
|
3952
3948
|
|
|
@@ -4006,7 +4002,7 @@ EXAMPLES
|
|
|
4006
4002
|
$ nex script-sync pull -n MyClientScript -t sys_script_client --json --auth dev-instance
|
|
4007
4003
|
```
|
|
4008
4004
|
|
|
4009
|
-
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4005
|
+
_See code: [src/commands/script-sync/pull.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/script-sync/pull.ts)_
|
|
4010
4006
|
|
|
4011
4007
|
## `nex script-sync push`
|
|
4012
4008
|
|
|
@@ -4067,7 +4063,7 @@ EXAMPLES
|
|
|
4067
4063
|
$ nex script-sync push -n MyUIScript -t sys_ui_script -f ./scripts/ui-script.js --json --auth dev-instance
|
|
4068
4064
|
```
|
|
4069
4065
|
|
|
4070
|
-
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4066
|
+
_See code: [src/commands/script-sync/push.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/script-sync/push.ts)_
|
|
4071
4067
|
|
|
4072
4068
|
## `nex script-sync sync`
|
|
4073
4069
|
|
|
@@ -4126,7 +4122,7 @@ EXAMPLES
|
|
|
4126
4122
|
$ nex script-sync sync -d ./scripts --json --auth dev-instance
|
|
4127
4123
|
```
|
|
4128
4124
|
|
|
4129
|
-
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4125
|
+
_See code: [src/commands/script-sync/sync.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/script-sync/sync.ts)_
|
|
4130
4126
|
|
|
4131
4127
|
## `nex search`
|
|
4132
4128
|
|
|
@@ -4193,7 +4189,7 @@ EXAMPLES
|
|
|
4193
4189
|
$ nex search --term "GlideRecord" --limit 10 --json --auth dev-instance
|
|
4194
4190
|
```
|
|
4195
4191
|
|
|
4196
|
-
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4192
|
+
_See code: [src/commands/search/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/search/index.ts)_
|
|
4197
4193
|
|
|
4198
4194
|
## `nex search add-table`
|
|
4199
4195
|
|
|
@@ -4253,7 +4249,7 @@ EXAMPLES
|
|
|
4253
4249
|
dev-instance
|
|
4254
4250
|
```
|
|
4255
4251
|
|
|
4256
|
-
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4252
|
+
_See code: [src/commands/search/add-table.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/search/add-table.ts)_
|
|
4257
4253
|
|
|
4258
4254
|
## `nex search groups`
|
|
4259
4255
|
|
|
@@ -4302,7 +4298,7 @@ EXAMPLES
|
|
|
4302
4298
|
$ nex search groups --json --auth dev-instance
|
|
4303
4299
|
```
|
|
4304
4300
|
|
|
4305
|
-
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4301
|
+
_See code: [src/commands/search/groups.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/search/groups.ts)_
|
|
4306
4302
|
|
|
4307
4303
|
## `nex search tables`
|
|
4308
4304
|
|
|
@@ -4353,7 +4349,7 @@ EXAMPLES
|
|
|
4353
4349
|
$ nex search tables --search-group "Business Rules" --json --auth dev-instance
|
|
4354
4350
|
```
|
|
4355
4351
|
|
|
4356
|
-
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4352
|
+
_See code: [src/commands/search/tables.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/search/tables.ts)_
|
|
4357
4353
|
|
|
4358
4354
|
## `nex store install`
|
|
4359
4355
|
|
|
@@ -4406,7 +4402,7 @@ EXAMPLES
|
|
|
4406
4402
|
$ nex store install -a abc123 -v 1.0.0 --demo-data --auth dev
|
|
4407
4403
|
```
|
|
4408
4404
|
|
|
4409
|
-
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4405
|
+
_See code: [src/commands/store/install.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/store/install.ts)_
|
|
4410
4406
|
|
|
4411
4407
|
## `nex store search`
|
|
4412
4408
|
|
|
@@ -4457,7 +4453,7 @@ EXAMPLES
|
|
|
4457
4453
|
$ nex store search --tab updates --limit 10 --auth dev
|
|
4458
4454
|
```
|
|
4459
4455
|
|
|
4460
|
-
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4456
|
+
_See code: [src/commands/store/search.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/store/search.ts)_
|
|
4461
4457
|
|
|
4462
4458
|
## `nex store update`
|
|
4463
4459
|
|
|
@@ -4509,7 +4505,7 @@ EXAMPLES
|
|
|
4509
4505
|
$ nex store update -a abc123 -v 2.0.0 --timeout 3600000 --auth dev
|
|
4510
4506
|
```
|
|
4511
4507
|
|
|
4512
|
-
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4508
|
+
_See code: [src/commands/store/update.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/store/update.ts)_
|
|
4513
4509
|
|
|
4514
4510
|
## `nex store validate`
|
|
4515
4511
|
|
|
@@ -4548,7 +4544,7 @@ EXAMPLES
|
|
|
4548
4544
|
$ nex store validate --file ./batch-definition.json --auth dev
|
|
4549
4545
|
```
|
|
4550
4546
|
|
|
4551
|
-
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4547
|
+
_See code: [src/commands/store/validate.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/store/validate.ts)_
|
|
4552
4548
|
|
|
4553
4549
|
## `nex task approve`
|
|
4554
4550
|
|
|
@@ -4599,7 +4595,7 @@ EXAMPLES
|
|
|
4599
4595
|
$ nex task approve -n CHG0010001 -c "Looks good, approved" --auth dev
|
|
4600
4596
|
```
|
|
4601
4597
|
|
|
4602
|
-
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4598
|
+
_See code: [src/commands/task/approve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/approve.ts)_
|
|
4603
4599
|
|
|
4604
4600
|
## `nex task assign`
|
|
4605
4601
|
|
|
@@ -4660,7 +4656,7 @@ EXAMPLES
|
|
|
4660
4656
|
$ nex task assign --number CHG0010001 --table change_request --user admin --auth dev
|
|
4661
4657
|
```
|
|
4662
4658
|
|
|
4663
|
-
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4659
|
+
_See code: [src/commands/task/assign.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/assign.ts)_
|
|
4664
4660
|
|
|
4665
4661
|
## `nex task close`
|
|
4666
4662
|
|
|
@@ -4714,7 +4710,7 @@ EXAMPLES
|
|
|
4714
4710
|
$ nex task close -n INC0010001 --notes "Closed" --close-code "Solved (Permanently)" --auth dev
|
|
4715
4711
|
```
|
|
4716
4712
|
|
|
4717
|
-
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4713
|
+
_See code: [src/commands/task/close.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/close.ts)_
|
|
4718
4714
|
|
|
4719
4715
|
## `nex task comment`
|
|
4720
4716
|
|
|
@@ -4774,7 +4770,7 @@ EXAMPLES
|
|
|
4774
4770
|
$ nex task comment --number CHG0010001 --table change_request --comment "Approved" --auth dev
|
|
4775
4771
|
```
|
|
4776
4772
|
|
|
4777
|
-
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4773
|
+
_See code: [src/commands/task/comment.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/comment.ts)_
|
|
4778
4774
|
|
|
4779
4775
|
## `nex task find`
|
|
4780
4776
|
|
|
@@ -4830,7 +4826,7 @@ EXAMPLES
|
|
|
4830
4826
|
$ nex task find -n INC0010001 --json --auth dev
|
|
4831
4827
|
```
|
|
4832
4828
|
|
|
4833
|
-
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4829
|
+
_See code: [src/commands/task/find.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/find.ts)_
|
|
4834
4830
|
|
|
4835
4831
|
## `nex task resolve`
|
|
4836
4832
|
|
|
@@ -4884,7 +4880,7 @@ EXAMPLES
|
|
|
4884
4880
|
$ nex task resolve -n INC0010001 --notes "Fixed" --close-code "Solved (Permanently)" --auth dev
|
|
4885
4881
|
```
|
|
4886
4882
|
|
|
4887
|
-
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4883
|
+
_See code: [src/commands/task/resolve.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/task/resolve.ts)_
|
|
4888
4884
|
|
|
4889
4885
|
## `nex transaction kill`
|
|
4890
4886
|
|
|
@@ -4927,7 +4923,7 @@ EXAMPLES
|
|
|
4927
4923
|
$ nex transaction kill --transaction-id 8f9a1234567890abcdef1234567890c1 --confirm --json --auth dev
|
|
4928
4924
|
```
|
|
4929
4925
|
|
|
4930
|
-
_See code: [src/commands/transaction/kill.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4926
|
+
_See code: [src/commands/transaction/kill.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/transaction/kill.ts)_
|
|
4931
4927
|
|
|
4932
4928
|
## `nex transaction list`
|
|
4933
4929
|
|
|
@@ -4974,7 +4970,7 @@ EXAMPLES
|
|
|
4974
4970
|
$ nex transaction list --timeout-ms 120000 --poll-interval-ms 2000 --auth dev
|
|
4975
4971
|
```
|
|
4976
4972
|
|
|
4977
|
-
_See code: [src/commands/transaction/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
4973
|
+
_See code: [src/commands/transaction/list.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/transaction/list.ts)_
|
|
4978
4974
|
|
|
4979
4975
|
## `nex update-set`
|
|
4980
4976
|
|
|
@@ -5022,7 +5018,7 @@ EXAMPLES
|
|
|
5022
5018
|
$ nex update-set --json --auth dev-instance
|
|
5023
5019
|
```
|
|
5024
5020
|
|
|
5025
|
-
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5021
|
+
_See code: [src/commands/update-set/index.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/index.ts)_
|
|
5026
5022
|
|
|
5027
5023
|
## `nex update-set clone`
|
|
5028
5024
|
|
|
@@ -5066,7 +5062,7 @@ EXAMPLES
|
|
|
5066
5062
|
$ nex update-set clone --source us-001 --name "Cloned Set" --json --auth dev-instance
|
|
5067
5063
|
```
|
|
5068
5064
|
|
|
5069
|
-
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5065
|
+
_See code: [src/commands/update-set/clone.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/clone.ts)_
|
|
5070
5066
|
|
|
5071
5067
|
## `nex update-set create`
|
|
5072
5068
|
|
|
@@ -5115,7 +5111,7 @@ EXAMPLES
|
|
|
5115
5111
|
$ nex update-set create --name "My Feature Set" --application x_my_app --auth dev-instance
|
|
5116
5112
|
```
|
|
5117
5113
|
|
|
5118
|
-
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5114
|
+
_See code: [src/commands/update-set/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/create.ts)_
|
|
5119
5115
|
|
|
5120
5116
|
## `nex update-set current`
|
|
5121
5117
|
|
|
@@ -5162,7 +5158,7 @@ EXAMPLES
|
|
|
5162
5158
|
$ nex update-set current --json --auth dev-instance
|
|
5163
5159
|
```
|
|
5164
5160
|
|
|
5165
|
-
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5161
|
+
_See code: [src/commands/update-set/current.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/current.ts)_
|
|
5166
5162
|
|
|
5167
5163
|
## `nex update-set inspect`
|
|
5168
5164
|
|
|
@@ -5205,7 +5201,7 @@ EXAMPLES
|
|
|
5205
5201
|
$ nex update-set inspect --sys-id us-001 --json --auth dev-instance
|
|
5206
5202
|
```
|
|
5207
5203
|
|
|
5208
|
-
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5204
|
+
_See code: [src/commands/update-set/inspect.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/inspect.ts)_
|
|
5209
5205
|
|
|
5210
5206
|
## `nex update-set move`
|
|
5211
5207
|
|
|
@@ -5255,7 +5251,7 @@ EXAMPLES
|
|
|
5255
5251
|
$ nex update-set move --target us-002 --source us-001 --json --auth dev-instance
|
|
5256
5252
|
```
|
|
5257
5253
|
|
|
5258
|
-
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5254
|
+
_See code: [src/commands/update-set/move.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/update-set/move.ts)_
|
|
5259
5255
|
|
|
5260
5256
|
## `nex workflow create`
|
|
5261
5257
|
|
|
@@ -5298,7 +5294,7 @@ EXAMPLES
|
|
|
5298
5294
|
$ nex workflow create -s ./workflow.json --json --auth dev
|
|
5299
5295
|
```
|
|
5300
5296
|
|
|
5301
|
-
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5297
|
+
_See code: [src/commands/workflow/create.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/workflow/create.ts)_
|
|
5302
5298
|
|
|
5303
5299
|
## `nex workflow publish`
|
|
5304
5300
|
|
|
@@ -5342,7 +5338,7 @@ EXAMPLES
|
|
|
5342
5338
|
$ nex workflow publish -v wfv-001 -s act-001 --json --auth dev
|
|
5343
5339
|
```
|
|
5344
5340
|
|
|
5345
|
-
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5341
|
+
_See code: [src/commands/workflow/publish.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/workflow/publish.ts)_
|
|
5346
5342
|
|
|
5347
5343
|
## `nex xml export`
|
|
5348
5344
|
|
|
@@ -5400,7 +5396,7 @@ EXAMPLES
|
|
|
5400
5396
|
$ nex xml export --table sys_script --sys-id abc123 --json --auth dev
|
|
5401
5397
|
```
|
|
5402
5398
|
|
|
5403
|
-
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5399
|
+
_See code: [src/commands/xml/export.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/xml/export.ts)_
|
|
5404
5400
|
|
|
5405
5401
|
## `nex xml import`
|
|
5406
5402
|
|
|
@@ -5452,7 +5448,7 @@ EXAMPLES
|
|
|
5452
5448
|
$ nex xml import --file ./records.xml --table incident --json --auth dev
|
|
5453
5449
|
```
|
|
5454
5450
|
|
|
5455
|
-
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.
|
|
5451
|
+
_See code: [src/commands/xml/import.ts](https://github.com/sonisoft-cnanda/now-sdk-ext-cli/blob/v5.7.0/src/commands/xml/import.ts)_
|
|
5456
5452
|
<!-- commandsstop -->
|
|
5457
5453
|
|
|
5458
5454
|
---
|
|
@@ -5766,7 +5762,7 @@ jobs:
|
|
|
5766
5762
|
- name: Setup Node.js
|
|
5767
5763
|
uses: actions/setup-node@v3
|
|
5768
5764
|
with:
|
|
5769
|
-
node-version: '
|
|
5765
|
+
node-version: '26'
|
|
5770
5766
|
|
|
5771
5767
|
- name: Install Dependencies
|
|
5772
5768
|
run: |
|
|
@@ -5800,7 +5796,7 @@ jobs:
|
|
|
5800
5796
|
|
|
5801
5797
|
```yaml
|
|
5802
5798
|
servicenow-tests:
|
|
5803
|
-
image: node:
|
|
5799
|
+
image: node:26
|
|
5804
5800
|
stage: test
|
|
5805
5801
|
before_script:
|
|
5806
5802
|
- npm install -g @servicenow/sdk
|
|
@@ -6323,3 +6319,44 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
6323
6319
|
Made with ❤️ for the ServiceNow Developer Community
|
|
6324
6320
|
|
|
6325
6321
|
**Ready to get started?** → [Jump to Quick Start](#-quick-start)
|
|
6322
|
+
|
|
6323
|
+
## Open a desktop UI session
|
|
6324
|
+
|
|
6325
|
+
```bash
|
|
6326
|
+
nex auth open -a bcbsscdev --cred-store
|
|
6327
|
+
```
|
|
6328
|
+
|
|
6329
|
+
Mints a verified cookie session from the stored SDK alias and opens it in a
|
|
6330
|
+
dedicated Edge window. See [docs/AUTH_OPEN.md](docs/AUTH_OPEN.md) for macOS,
|
|
6331
|
+
Windows, and WSL. This is not your daily browser profile; close the window
|
|
6332
|
+
when finished. `--browser chrome|brave` and `--cdp http://127.0.0.1:9222` are
|
|
6333
|
+
optional.
|
|
6334
|
+
|
|
6335
|
+
## Playwright sessions from SDK aliases
|
|
6336
|
+
|
|
6337
|
+
```bash
|
|
6338
|
+
nex auth browser-session -a dev206299 --cred-store --output playwright/.auth/dev.json --json
|
|
6339
|
+
```
|
|
6340
|
+
|
|
6341
|
+
Uses SDK OAuth refresh and exports cookie-only Playwright storage state. Output is
|
|
6342
|
+
metadata/path only; the file contains secrets and is written atomically with mode
|
|
6343
|
+
0600. Existing output requires `--force`; symlinks are refused. Ignore the auth
|
|
6344
|
+
directory in Git and exclude it from test artifacts.
|
|
6345
|
+
|
|
6346
|
+
Pass the file as Playwright's `storageState`. Remote Docker browsers receive the
|
|
6347
|
+
state over the Playwright connection; they need no credential-store mount.
|
|
6348
|
+
Generate a fresh session per test, especially when impersonating. For long tests,
|
|
6349
|
+
renew at an explicit safe checkpoint and open a new context; state files cannot
|
|
6350
|
+
refresh themselves.
|
|
6351
|
+
|
|
6352
|
+
Regular nex commands now pass an alias-bound provider to core so long-running
|
|
6353
|
+
operations can renew credentials. Read-only authentication failures can retry once;
|
|
6354
|
+
writes and stateful workflows are not automatically replayed. nex permission flags
|
|
6355
|
+
do not constrain actions performed later by Playwright.
|
|
6356
|
+
|
|
6357
|
+
Use the same backend/path for `now-sdk-x` and `nex --cred-store`. Plain now-sdk
|
|
6358
|
+
normally uses the keyring and does not synchronize a separate credential store.
|
|
6359
|
+
|
|
6360
|
+
When upgrading a shared store, stop all clients first, upgrade every client
|
|
6361
|
+
(including standalone `now-sdk-x`) to sn-credstore 1.1.1 or later, then restart.
|
|
6362
|
+
The new lock protocol cannot safely run alongside older clients.
|