Skip to main content
Version: Next (Unreleased)

Installation

Add @harbor/sdk to a Node.js project with your preferred package manager.

Requirements

RequirementVersion
Node.js20.x or later
Package managerpnpm 9+, npm 10+, or Yarn 1.x/4.x

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

Import the client in a one-line check:

import { Harbor } from '@harbor/sdk';
console.log(typeof Harbor); // 'function'

Or print the installed version:

node -e "console.log(require('@harbor/sdk/package.json').version)"

You should see a semver such as 2.1.0. Continue to Quickstart to configure credentials and send your first event.

Next steps

Continue to Quickstart to create and confirm your first event.