{"library":"snyk-api-import","title":"Snyk API Import","type":"library","description":"Snyk API Import is a CLI tool for importing projects into Snyk via the Snyk API at a controlled pace, with built-in rate limiting handling, queuing, and retries. Current stable version is 2.23.1, with releases on a monthly/quarterly cadence. It supports GitHub, GitLab, Bitbucket Server, Bitbucket Cloud, and Azure Repos. Key differentiators include automatic rate limit handling for SCMs, queuing to reduce failures, and ability to resume after interruption. This repository is in maintenance mode (no new features, only bug & security fixes). Node.js >=20 required.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install snyk-api-import"],"cli":{"name":"snyk-api-import","version":null}},"imports":["import snykApiImport from 'snyk-api-import'","import { runImport } from 'snyk-api-import'","import { generateImportData } from 'snyk-api-import'","import { SnykApiImportError } from 'snyk-api-import'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://docs.snyk.io/snyk-api-import","github":"https://github.com/snyk/snyk-api-import","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snyk-api-import","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { runImport } from 'snyk-api-import';\n\nconst options = {\n  org: process.env.SNYK_ORG_ID ?? '',\n  source: process.env.IMPORT_SOURCE ?? 'github',\n  integrationId: process.env.SNYK_INTEGRATION_ID ?? '',\n  concurrency: 5,\n  skipExisting: true\n};\n\nasync function main() {\n  try {\n    const result = await runImport(options);\n    console.log('Import completed:', result);\n  } catch (error) {\n    console.error('Import failed:', error);\n  }\n}\n\nmain();","lang":"typescript","description":"Demonstrates programmatic usage of runImport with async/await and environment variables for credentials.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}