Downloading the Node.js Agent
The SeaLights Node.js agent is published in the npm registry and installed with npm. There is no separate binary to download.
Choosing an installation strategy
There are two ways to control which version to install:
Latest
Quick start, dev environments, and POCs
Specific version ⭐
Production pipelines — resolve from API or pin explicitly
Strategy 1: Install the latest version
This installs the newest published release at runtime. Use it when you want the latest features and can tolerate version changes between runs.
echo "[SeaLights] Installing Node.js agent (latest)..."
npm install slnodejs@latest
npm ls slnodejs --depth=0- name: Install SeaLights Node.js Agent (latest)
run: |
echo "[SeaLights] Installing Node.js agent (latest)..."
npm install slnodejs@latest
npm ls slnodejs --depth=0Write-Host "[SeaLights] Installing Node.js agent (latest)..."
npm install slnodejs@latest
npm ls slnodejs --depth=0- script: |
echo "[SeaLights] Installing Node.js agent (latest)..."
npm install slnodejs@latest
npm ls slnodejs --depth=0
displayName: Install SeaLights Node.js Agent (latest)Strategy 2: Specific version (recommended)
Use this strategy in production pipelines. It gives you stable installs and controlled upgrades.
Choose one of these approaches:
Installer utility — simplest path. It resolves and installs the approved version for you.
Explicit version management — no extra package. You control the API call and
npm installflow directly.
Approach 1: Installer utility
Use this when you want the approved version from the Dashboard without managing the resolution logic yourself.
To run the installer, provide your SeaLights Agent Token either in sltoken.txt at the project root or as the SL_TOKEN environment variable.
Approach 2: Explicit version management
Use this when you do not want to install an additional package or when you want full control over the commands in your pipeline.
API endpoint
Authentication:
Authorization: Bearer <your-agent-token>Response: JSON object with a
versionfield, for example{"version": "4.2.1"}
Last updated
Was this helpful?

