{"library":"snyk-sbt-plugin","title":"Snyk SBT Plugin","type":"library","description":"A plugin for the Snyk CLI that provides dependency metadata for sbt (Scala Build Tool) projects. It scans build.sbt files to identify known vulnerabilities in dependencies. Current stable version is 3.1.0, released August 2025. The plugin supports Node 20 on Windows, Linux, and macOS, and works with sbt 0.13.x through 1.7.x (with or without sbt-dependency-graph plugin for older versions). Key differentiator: integrates Snyk's vulnerability scanning into Scala/SBT projects with automatic dependency tree extraction. v3.0.0 introduced breaking changes including dropping shell:true and updated shescape for argument escaping.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install snyk-sbt-plugin"],"cli":null},"imports":["import { snykSbtPlugin } from 'snyk-sbt-plugin'","import { inspect } from 'snyk-sbt-plugin'","import type { SbtPluginResult } from 'snyk-sbt-plugin'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://snyk.io","github":"https://github.com/snyk/snyk-sbt-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snyk-sbt-plugin","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { inspect } from 'snyk-sbt-plugin';\nimport { promises as fs } from 'fs';\n\nasync function scanSbtProject(projectPath: string) {\n  try {\n    const result = await inspect(projectPath, 'sbt', { dev: false });\n    console.log('Scanned dependencies:', result.package.dependencies);\n    console.log('Vulnerabilities:', result.vulnerabilities?.length ?? 0);\n  } catch (error) {\n    console.error('Scan failed:', error);\n  }\n}\n\nscanSbtProject('/path/to/sbt/project');\n","lang":"typescript","description":"Scans an SBT project for vulnerabilities using the inspect function, logging dependency tree and vulnerability count.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}