Skip to main content

bud.sh

bud.sh is used to execute arbitrary shell commands. It is a wrapper around the execa package.

It's async and returns the ExecaChildProcess object. It will pipe the process stdout/stderr to the console automatically.

Usage

bud.config.mjs
export default async bud => {
await bud.sh(`ls -la`)
}

You may use an array of arguments instead of a string:

export default async bud => {
await bud.sh([`ls`, `-la`])
}

Additionally, you can pass on configuration options to the underlying package:

export default async bud => {
await bud.sh([`ls`, `-la`], {
shell: true,
})
}