diff options
Diffstat (limited to 'docs/cli/run.md')
-rw-r--r-- | docs/cli/run.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/cli/run.md b/docs/cli/run.md index 1398e10ca..60061ee5c 100644 --- a/docs/cli/run.md +++ b/docs/cli/run.md @@ -32,6 +32,26 @@ The "naked" `bun` command is equivalent to `bun run`. $ bun index.tsx ``` +### `--watch` + +To run a file in watch mode, use the `--watch` flag. + +```bash +$ bun --watch run index.tsx +``` + +### `--smol` + +{% callout %} +Added in Bun v0.7.0. +{% /callout %} + +In memory-constrained environments, use the `--smol` flag to reduce memory usage at a cost to performance. + +```bash +$ bun --smol run index.tsx +``` + ## Run a `package.json` script {% note %} |