@depot/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-cli.2.76.2 • Public • Published

@depot/cli

CI npm Powered by TypeScript

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

Readme

Keywords

none

Package Sidebar

Install

npm i @depot/cli

Weekly Downloads

3,840

Version

0.0.1-cli.2.76.2

License

MIT

Unpacked Size

117 kB

Total Files

7

Last publish

Collaborators

  • jacobwgillespie
  • kylegalbraith