- Install NodeJS – https://youtu.be/b9iuvDkBUwc
- Install CLI (VS Code) – https://code.visualstudio.com/download
- Download and install the ServiceNow CLI from ServiceNow Store – https://github.com/serviceNow/servicenow-cli
- Install the ui-component – snc extension add –name ui-component
If needed to downgrade npm version– npm install -g [email protected]- Install the ServiceNow CLI application on your instance.
- Create connection profile –
- snc configure profile set
- snc configure profile set -–profile <replace-with-your-profile-name>
- Get Company Code – sys_properties.list – glide.appcreator.company.code
- Setup Project –
- snc ui-component project –profile –name @myorg/movie-quotes –description ‘A web component that prints movie quotes.’
- snc ui-component project –profile <your-named-connection-profile> –name @myorg/movie-quotes –description ‘A web component that prints movie quotes.’
- Load Files – npm install
- Run the component locally – snc ui-component develop
- Deploy – snc ui-component deploy
Have Fun !
No responses yet