Upgrade the ServiceNow SDK

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 2 Minuten Lesedauer
  • Upgrade to the latest version of the ServiceNow SDK for use with instances beginning with the Washington DC release.

    Vorbereitungen

    Your system must meet the following minimum requirements to use the latest version of the ServiceNow SDK:
    • Node.js v18.16.1 v20.18.0
    • npm v8.19.3
    To install or upgrade Node.js or npm, see the installation instructions on the npm website.

    Role required: admin

    Warum und wann dieser Vorgang ausgeführt wird

    If you previously installed the ServiceNow SDK on your system, you can upgrade to use the latest version. Upgrading the ServiceNow SDK doesn't update any applications you have previously created or converted with the ServiceNow SDK.

    This procedure uses the ServiceNow SDK command-line interface (CLI). From a command-line tool, enter now-sdk --help to get information about the available commands and global options. To get additional information about a command and its parameters, enter the command and --help or -h. For example, now-sdk auth --help. For more information about the CLI, see ServiceNow SDK CLI.

    Prozedur

    1. Complete the following steps depending on whether you're updating a global installation of the ServiceNow SDK or the version used by an application.
      OptionSteps
      Application package
      1. Open the package.json file for your application.
      2. In the devDependencies object, update the versions of the @servicenow/sdk and @servicenow/eslint-plugin-sdk-app-plugin packages. For example:
        "devDependencies": {
                "@servicenow/sdk": "<version>",
                "@servicenow/glide": "26.0.1",
                "eslint": "8.50.0",
                "@servicenow/eslint-plugin-sdk-app-plugin": "<version>"
        }
      3. Open a command-line tool on your system.
      4. Change directories into the directory for your application using the cd command:
        cd <path/to/directory>
      5. Enter the following command to verify the version of the ServiceNow SDK:
        now-sdk -v
      Global package
      1. Open a command-line tool on your system.
      2. Change directories into the directory for your application using the cd command:
        cd <path/to/directory>
      3. Enter the following command to upgrade to the latest version of the ServiceNow SDK:
        npm update -g @servicenow/sdk
      4. Enter the following command to verify the version of the ServiceNow SDK:
        now-sdk -v
    2. Enter the following command to upgrade to the latest version of the ServiceNow SDK:
      now-sdk upgrade --debug true

    Nächste Maßnahme

    Install the ServiceNow Fluent Language server to get language processing and validation for ServiceNow Fluent in Visual Studio Code. For more information, see Install the ServiceNow Fluent Language server in Visual Studio Code.

    Add an application to your local system with the ServiceNow SDK. For more information, see Adding applications with the ServiceNow SDK.Use the ServiceNow SDK to authenticate to a ServiceNow instance. For more information, see Authenticating to a ServiceNow instance with the ServiceNow SDK.