Setup
5 commands in this section
Creating a ServiceNow User for the CLI
Recommended roles and user setup for running sn execute, sn validate, and sn test against a ServiceNow instance.
API vs UI Accounts
How to set the sys_user identity fields for API automation and browser-based UI automation.
Basic Auth (Quick Start)
Register a ServiceNow instance using username and password — the fastest path to a working sn execute.
REST API Key
ServiceNow REST API Key authentication — instance-side setup and CLI registration.
OAuth Client Credentials Grant
OAuth 2.0 Client Credentials with the Machine Identity Console — setup and CLI registration.