Use when executing shell commands in a Stacks application — running system commands, process management, or using the shell operator. Covers @stacksjs/shell which wraps Bun's native $ operator.
storage/framework/core/shell/src/storage/framework/core/shell/src/index.ts@stacksjs/shellThe entire package is a single re-export of Bun's $ shell operator:
export { $ } from 'bun'
import { $ } from '@stacksjs/shell'
// Run shell commands
await $`ls -la`
// Capture output
const result = await $`git status`
console.log(result.text())
// Set working directory
$.cwd('/path/to/dir')
await $`bun install`
// Pipe commands
await $`cat file.txt | grep "pattern"`
// Environment variables
await $`echo $HOME`
$.cwd(path) sets working directory$.env(vars) sets environment variables$.quiet() suppresses output$ from Bun@stacksjs/cli — this package is for raw command execution$ operator is a Bun feature, not available in Node.js$ for process execution