sndev.io / docs

Environment Setup

Configure .env for instance connection.

The sn CLI reads connection details from a .env file in the project root. Three variables are required to connect to your ServiceNow instance.
.env
SN_INSTANCE=https://your-instance.service-now.com
SN_USER=admin
SN_PASS=your-password
VariableRequiredDescription
SN_INSTANCEYesFull URL of your ServiceNow instance (include https://)
SN_USERYesUsername with admin or elevated privileges
SN_PASSYesPassword for the user
SN_LICENSE_PATHNoPath to `.sn-license` file (auto-detected if in project root)
Never commit .env to version control. The project .gitignore already excludes it.
Verify your connection by running a simple query:
sn get sys_properties "name=glide.servlet.uri" --fields value
[
{ "value": "https://your-instance.service-now.com/" }
]