bun-exec
Execute shell commands or script files using Bun's runtime. tldr-pages
On several platforms
Several platforms
Execute shell commands or script files using Bun's runtime. Note: When running from a shell, remember to escape quotes.
Run a simple command
bun exec "echo hello"IdentifyRun a command with flags
bun exec "ls -la"IdentifyRun a command containing quotes
bun exec "echo \"hello friends\""IdentifyRun a combined shell command
bun exec "mkdir test && cd test"IdentifyRun a script file
bun exec path/to/scriptIdentify