Jon G Lind
ServiceNow Employee
ServiceNow Employee

NOTE: This was originally posted in 2022 and the application has advanced significantly since then, e.g. as of May 2025 it now supports Node 20.  Please refer to the latest documentation to install the CLI and thanks for following this over the years.

Comments
fauverism
Kilo Sage
Kilo Sage

Any insights on why the `npm install` in Install Dependencies step takes so long? I can think of some but I'm not exactly sure.

Bjoern_Pfoster
Tera Guru

Thank You @Jon G Lind for this helpful article.
Is there by now an other solution for the Event Bug? I just installed the UIC Event Fixer application on the dev instance and the events still get removed after a deployment.

Jon G Lind
ServiceNow Employee
ServiceNow Employee

Hey @Bjoern_Pfoster the best solution is to get the latest version of the CLI.  Run the following command and after you set up the events the first time it should no longer wipe them out:

 

snc extension update --name ui-component
Jon G Lind
ServiceNow Employee
ServiceNow Employee

@fauverism my apologies for the massively delayed response, but there are two problems.  A, you can't install the tool globally so you have to reinstall it for each user.  B, it takes so long because of the many, many megs of dependencies it downloads by default.  I hear that the latest version is better (see my link above to update to it) but it's not as good as we hope it will be.  We are working on it.

fauverism
Kilo Sage
Kilo Sage

Thanks so much @Jon G Lind Looking forward to it!

Peter26
Tera Expert

As of May 2024 (at least), the link to Part I of this article isn't working. I believe the correct link is now:

https://www.servicenow.com/community/next-experience-articles/setting-up-command-line-interface-cli-...

Version history
Last update:
‎05-28-2025 12:14 PM
Updated by:
Contributors