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

0.12.2 • Public • Published

@polywrap/cli-js

Programmatically execute the Polywrap CLI

Description

It allows user execute Polywrap CLI commands programmatically, with simple and type-safe methods.

Usage

Build a wrapper:

import { Commands } from "@polywrap/cli-js";

async function main() {
  const wrapperPath = "/path/to/wrapper";

  const res = await Commands.build(
    { }, // build command options
    { cwd: wrapperPath }
  );

  console.log(res.stdout);
  console.log(res.stderr);
  console.log(res.exitCode);
}

Reference

TODO

Readme

Keywords

none

Package Sidebar

Install

npm i @polywrap/cli-js

Weekly Downloads

30

Version

0.12.2

License

MIT

Unpacked Size

26.1 kB

Total Files

17

Last publish

Collaborators

  • polywrap-build-bot
  • dorgjelli