Bun Shell Bun provides powerful shell scripting capabilities with template literals and spawn APIs. Bun.$ (Shell Template) Basic Usage Variable Interpolation Piping Error Handling Output Types Environment Variables Working Directory Bun.spawn Basic Spawn With Options Stdio Options Streaming Output Bun.spawnSync Shell Scripts Shebang Scripts Complex Script Parallel Commands Interactive Commands Process Management Common Patterns Run npm/bun scripts Git Operations File Operations Common Errors | Error | Cause | Fix | |-------|-------|-----| | | Not in PATH | Use absolute path | | | Not executab…