- As part of the
boxnpm package (recommended for new projects) - As the standalone
box-node-sdkpackage (supported for existing integrations)
Learn more about Node SDK on GitHub
Install with npm install box (recommended)
The box npm package installs the Box Node SDK and the Box CLI as direct dependencies, so you get both tools in a single command.
Prerequisites
Install Node.js 22 or later.Install
Import the SDK
npx box <command> — no separate install is required.
The box package works with npm, yarn, pnpm, and bun.
Existing
box-node-sdk users: If box-node-sdk works for you, leave it. The box package is for developers — and their coding agents — starting fresh. Existing code is unaffected.