mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 16:50:00 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/bun-exec
Normal file
30
tldr/bun-exec
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun exec
|
||||
|
||||
> Execute shell commands or script files using Bun's runtime.
|
||||
> Note: When running from a shell, remember to escape quotes.
|
||||
> More information: <https://bun.sh/docs/runtime/shell>.
|
||||
|
||||
- Run a simple command:
|
||||
|
||||
`bun exec "echo hello"`
|
||||
|
||||
- Run a command with flags:
|
||||
|
||||
`bun exec "ls -la"`
|
||||
|
||||
- Run a command containing quotes:
|
||||
|
||||
`bun exec "echo \"hello friends\""`
|
||||
|
||||
- Run a combined shell command:
|
||||
|
||||
`bun exec "mkdir test && cd test"`
|
||||
|
||||
- Run a script file:
|
||||
|
||||
`bun exec {{path/to/script}}`
|
||||
Reference in New Issue
Block a user