Downloading the Node.js Agent
Downloading the latest version from npm
npm i slnodejsInstalling the predefined agent version via the installer utility (Best Practice)
# Retrieve the SeaLights Agent Token from your vault/secret manager
export SL_TOKEN=$(vault kv get -field=token secret/sealights)
# Install the agent version defined in your SeaLights Settings
npm install slnodejs-installer
npm list | grep slnodejs # Retrieve the SeaLights Agent Token from your vault/secret manager
$Env:SL_TOKEN = (vault kv get -field=token secret/sealights)
# Install the agent version defined in your SeaLights Settings
npm install slnodejs-installer
npm list | sls slnodejs install_slnodejs:
#...
script:
# Retrieve the SeaLights Agent Token from your vault/secret manager
- export SL_TOKEN=$(vault kv get -field=token secret/sealights)
# Install the agent version defined in your SeaLights Settings
- npm install slnodejs-installer
- npm list | grep slnodejsjobs:
install:
#...
steps:
- name: Retrieve SL_TOKEN from vault
run: echo "SL_TOKEN=$(vault kv get -field=token secret/sealights)" >> $GITHUB_ENV
- run: npm install slnodejs-installer
- run: npm list | grep slnodejsInstalling the recommended version via API (Alternative)
Last updated
Was this helpful?

