Skip to content
You're viewing documentation for v0.5.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Install

Install the SDK package and run the email-sdk CLI.

Email SDK is published on npm as @opencoredev/email-sdk.

The command-line binary is named email-sdk. That means the package name and the command name are different on purpose:

What you want Use this
Install the package npm install @opencoredev/email-sdk or your package manager’s install command
Run the installed CLI npx email-sdk ...
Run the CLI without installing npx --yes --package @opencoredev/email-sdk email-sdk ...

Do not install the unscoped email-sdk package from npm. It is a different package.

Install in your app

Choose the package manager your app already uses.

npm install @opencoredev/email-sdk

Then import the client and adapters from the scoped package:

The SDK and CLI run in server-side Node 20+ and Bun runtimes.

Run the CLI once

Use the scoped package name when you want a quick adapter check without adding the package to a project.

Check a provider configuration:

Run the CLI from an installed project

After installing @opencoredev/email-sdk, run the installed binary:

The command is still email-sdk; the package you installed is still @opencoredev/email-sdk. Avoid npx email-sdk outside an installed project because the unscoped npm package is unrelated.

Bun users can use the same package and binary. If you want Bun to execute the one-off CLI command, use bunx --bun --package @opencoredev/email-sdk email-sdk adapters.

Prerequisites

  • Node 20 or newer is supported for SDK and CLI usage.
  • Bun 1.1 or newer is also supported.
  • Do not expose provider API keys in browser or client-side code.
  • Provider credentials must be set in environment variables or passed with CLI flags.

Verify the install

Check the published package and CLI version:

List supported adapters:

Last updated on