Upgrade the ServiceNow SDK

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Upgrade to the latest version of the ServiceNow SDK for use with instances beginning with the Washington DC release.

    Avant de commencer

    Your system must meet the following minimum requirements to use the latest version of the ServiceNow SDK:
    • Node.js 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

    Procédure

    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

    Que faire ensuite

    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.

    Use the ServiceNow SDK to authenticate to a ServiceNow instance. For more information, see Authenticating to a ServiceNow instance with the ServiceNow SDK.