A Node.js package for downloading and interacting with the Depot CLI.
Use pnpm or your favorite package manager:
pnpm add @depot/cli
Call the Depot CLI with the given arguments - the depot(...)
function accepts the same arguments as execa, automatically injecting the Depot CLI binary as the first argument.
Returns the path to the Depot CLI binary.
import {depot, depotBinaryPath} from '@depot/cli'
async function example() {
console.log(depotBinaryPath())
await depot(['build', '-t', 'org/repo:tag', '.'])
}
MIT License, see LICENSE
.
Code from ESBuild, copyright (c) 2020 Evan Wallace