Downloading the Node.js Agent
Our Node.js agents (slnodejs
) are published in the npm registry. You download it and all its dependencies using the npm
repository commands.
Downloading latest version
npm i slnodejs
Downloading the recommended version by Sealights (Best Practice)
For Customers who need to set a specific recommended agent version other than the default latest, the API will provide the recommended agent version that has been set on the dedicated settings page from the dashboard.
# Fetch Agent version defined in Sealights dashboard settings
$SLVERSION=$(curl -X GET "https://$DOMAIN.sealights.co/api/v2/agents/slnodejs/recommended" -H "accept: application/json" -H "Authorization: Bearer $SL_TOKEN" -L)
# Install Sealights Agent (Recommended version)
npm i slnodejs@$SLVERSION
Last updated
Was this helpful?