diff --git a/docs/bundler/index.md b/docs/bundler/index.md index fdf53f0108..5ca8059472 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -1629,3 +1629,5 @@ declare class ResolveMessage { toString(): string; } ``` + +{% bunCLIUsage command="build" /%} \ No newline at end of file diff --git a/docs/cli/add.md b/docs/cli/add.md index ca9a8af46e..72c5cb25d6 100644 --- a/docs/cli/add.md +++ b/docs/cli/add.md @@ -169,3 +169,5 @@ This will add the following line to your `package.json`: } } ``` + +{% bunCLIUsage command="add" /%} \ No newline at end of file diff --git a/docs/cli/init.md b/docs/cli/init.md index fefbe99830..6390f767a7 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -38,3 +38,5 @@ If you pass `-y` or `--yes`, it will assume you want to continue without asking At the end, it runs `bun install` to install `@types/bun`. {% /details %} + +{% bunCLIUsage command="init" /%} diff --git a/docs/cli/install.md b/docs/cli/install.md index 4ab91d1505..22276894a5 100644 --- a/docs/cli/install.md +++ b/docs/cli/install.md @@ -235,3 +235,5 @@ jobs: - name: Build app run: bun run build ``` + +{% bunCLIUsage command="install" /%} diff --git a/docs/cli/link.md b/docs/cli/link.md index c525a95c9b..5db0a1e0d9 100644 --- a/docs/cli/link.md +++ b/docs/cli/link.md @@ -36,3 +36,5 @@ In addition, the `--save` flag can be used to add `cool-pkg` to the `dependencie } } ``` + +{% bunCLIUsage command="link" /%} \ No newline at end of file diff --git a/docs/cli/outdated.md b/docs/cli/outdated.md index e1d345371c..8c7faf6580 100644 --- a/docs/cli/outdated.md +++ b/docs/cli/outdated.md @@ -43,3 +43,5 @@ You can pass multiple `--filter` flags to check multiple workspaces: You can also pass glob patterns to filter by workspace names: {% bunOutdatedTerminal glob="{e,t}*" displayGlob="--filter='@monorepo/{types,cli}'" /%} + +{% bunCLIUsage command="outdated" /%} diff --git a/docs/cli/patch-commit.md b/docs/cli/patch-commit.md index d7262c7f7b..ba01baefa3 100644 --- a/docs/cli/patch-commit.md +++ b/docs/cli/patch-commit.md @@ -7,3 +7,5 @@ To get started with patch, first prepare the package for patching with [`bun pat By default, `bun patch-commit` will use the `patches` directory in the temporary directory. You can specify a different directory with the `--patches-dir` flag. + +{% bunCLIUsage command="patch-commit" /%} \ No newline at end of file diff --git a/docs/cli/publish.md b/docs/cli/publish.md index f8d7bbddbf..e26ff7f100 100644 --- a/docs/cli/publish.md +++ b/docs/cli/publish.md @@ -105,3 +105,4 @@ $ bun publish --otp 123456 ### `--gzip-level` Specify the level of gzip compression to use when packing the package. Only applies to `bun publish` without a tarball path argument. Values range from `0` to `9` (default is `9`). +{% bunCLIUsage command="publish" /%} \ No newline at end of file diff --git a/docs/cli/remove.md b/docs/cli/remove.md index 8054711d30..118ce44c35 100644 --- a/docs/cli/remove.md +++ b/docs/cli/remove.md @@ -3,3 +3,5 @@ To remove a dependency: ```bash $ bun remove ts-node ``` + +{% bunCLIUsage command="remove" /%} diff --git a/docs/cli/run.md b/docs/cli/run.md index cc4ae91751..bf3e16add0 100644 --- a/docs/cli/run.md +++ b/docs/cli/run.md @@ -205,3 +205,5 @@ When there is a package.json script and a file with the same name, `bun run` pri 2. Source files, eg `bun run src/main.js` 3. Binaries from project packages, eg `bun add eslint && bun run eslint` 4. (`bun run` only) System commands, eg `bun run ls` + +{% bunCLIUsage command="run" /%} \ No newline at end of file diff --git a/docs/cli/test.md b/docs/cli/test.md index e1b37f229b..52c6c507aa 100644 --- a/docs/cli/test.md +++ b/docs/cli/test.md @@ -247,3 +247,5 @@ $ bun test foo ``` Any test file in the directory with an _absolute path_ that contains one of the targets will run. Glob patterns are not yet supported. --> + +{% bunCLIUsage command="test" /%} diff --git a/docs/cli/unlink.md b/docs/cli/unlink.md index 3cb18aeb29..c841651b30 100644 --- a/docs/cli/unlink.md +++ b/docs/cli/unlink.md @@ -5,3 +5,5 @@ $ cd /path/to/cool-pkg $ bun unlink bun unlink v1.x (7416672e) ``` + +{% bunCLIUsage command="unlink" /%} diff --git a/docs/cli/update.md b/docs/cli/update.md index 45d031da38..93ec2191fc 100644 --- a/docs/cli/update.md +++ b/docs/cli/update.md @@ -32,3 +32,5 @@ For example, with the following `package.json`: - `bun update` would update to a version that matches `17.x`. - `bun update --latest` would update to a version that matches `18.x` or later. + +{% bunCLIUsage command="update" /%} \ No newline at end of file diff --git a/docs/install/patch.md b/docs/install/patch.md index 0ae10d1832..e9dcc13efc 100644 --- a/docs/install/patch.md +++ b/docs/install/patch.md @@ -55,3 +55,5 @@ $ bun patch --commit react --patches-dir=mypatches # `patch-commit` is available for compatibility with pnpm $ bun patch-commit react ``` + +{% bunCLIUsage command="patch" /%} \ No newline at end of file