Installation
Add @harbor/sdk to a Node.js project with your preferred package manager.
Requirements
| Requirement | Version |
|---|---|
| Node.js | 18.x or later |
Check your Node version:
node --version
Install the package
From your project root:
pnpm add @harbor/sdk
npm install @harbor/sdk
yarn add @harbor/sdk
Verify the install
Print the installed SDK version:
node -e "console.log(require('@harbor/sdk/package.json').version)"
You should see 1.0.x. Continue to Quickstart to configure credentials and send a request.