@depot/cli
v0.0.1-cli.2.78.0
Published
Depot CLI
Downloads
19,389
Readme
@depot/cli
A Node.js package for downloading and interacting with the Depot CLI.
Installation
Use pnpm or your favorite package manager:
pnpm add @depot/cli
Usage
depot(...)
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.
depotBinaryPath()
Returns the path to the Depot CLI binary.
Example
import {depot, depotBinaryPath} from '@depot/cli'
async function example() {
console.log(depotBinaryPath())
await depot(['build', '-t', 'org/repo:tag', '.'])
}
License
MIT License, see LICENSE
.
Code from ESBuild, copyright (c) 2020 Evan Wallace