@depot/cli Node.js package

15 SEP, 2023

We shipped a new Node.js package @depot/cli that you can install into your Node projects to invoke CLI calls directly from your code. No more needing to install the CLI, configure it, etc. You can now install the package and start using it.

pnpm add @depot/cli
import {depot, depotBinaryPath} from '@depot/cli'

async function example() {
  console.log(depotBinaryPath())

  await depot(['build', '-t', 'org/repo:tag', '.'])
}

Start building with Depot
in minutes