sn CLI reads connection details from a .env file in the project root. Three variables are required to connect to your ServiceNow instance.Configure .env for instance connection.
sn CLI reads connection details from a .env file in the project root. Three variables are required to connect to your ServiceNow instance.SN_INSTANCE=https://your-instance.service-now.com
SN_USER=admin
SN_PASS=your-password| Variable | Required | Description |
|---|---|---|
| SN_INSTANCE | Yes | Full URL of your ServiceNow instance (include https://) |
| SN_USER | Yes | Username with admin or elevated privileges |
| SN_PASS | Yes | Password for the user |
| SN_LICENSE_PATH | No | Path to `.sn-license` file (auto-detected if in project root) |
.env to version control. The project .gitignore already excludes it.sn get sys_properties "name=glide.servlet.uri" --fields value