Manage ServiceNow CLI extensions

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • Add extensions to the ServiceNow CLI to load additional functionality and commands, update existing extensions, or remove extensions you no longer need.

    Procedure

    1. Find available extensions.
      1. Open your system's command-line tool and execute this command.
        $ snc extension list-available -o table
        The system lists available extensions and associated details.
        NAME       DESCRIPTION                                    VERSION            INSTALLED 
        --------------------------------------------------------------------------------------
        ui-component        Build and deploy components                  19.0.0-alpha.15     false 
    2. Install an extension.
      1. Open your system's command-line tool and execute this command.
        $ snc extension add --name <extension-name>
    3. Optional: Update an extension.
      1. Open your system's command-line tool and execute this command.
        $ snc extension update --name <extension-name>
    4. Optional: Remove an extension.
      1. Open your system's command-line tool and execute this command.
        $ snc extension remove --name <extension-name>