From 4d3679a59b6791f6361ca7cd143d19ffbfb043b9 Mon Sep 17 00:00:00 2001 From: robobun <117481402+robobun@users.noreply.github.com> Date: Sat, 15 Aug 2026 02:55:03 +0000 Subject: [PATCH] docs(pm): add the missing flags to the bun install and bun add flag references bun install --help lists --linker, --minimum-release-age, --cpu, --os and --catalog, and bun add --help lists all but --catalog (which add.mdx already documents); the flag reference snippets did not mention them. --- docs/snippets/cli/add.mdx | 20 ++++++++++++++++++++ docs/snippets/cli/install.mdx | 25 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/docs/snippets/cli/add.mdx b/docs/snippets/cli/add.mdx index c12f274153b1..d94a9461a694 100644 --- a/docs/snippets/cli/add.mdx +++ b/docs/snippets/cli/add.mdx @@ -100,6 +100,14 @@ bun add <@version> -a + + Linker strategy (one of isolated or hoisted) + + + + Only install package versions published at least this many seconds ago + + ### Network & Registry @@ -158,6 +166,18 @@ bun add <@version> Don't print a summary +### Platform Targeting + + + Override CPU architecture for optional dependencies (e.g., x64, arm64, * for + all) + + + + Override operating system for optional dependencies (e.g., linux, darwin, * for + all) + + ### Global Configuration & Context diff --git a/docs/snippets/cli/install.mdx b/docs/snippets/cli/install.mdx index 3b4c93cb9f05..0c5efb8df43e 100644 --- a/docs/snippets/cli/install.mdx +++ b/docs/snippets/cli/install.mdx @@ -54,6 +54,11 @@ bun install @ Add the exact version instead of the ^ range + + Add the resolved version to the root package.json catalog and depend on it as catalog:;{" "} + --catalog=NAME targets catalogs.NAME + + ### Lockfile Control @@ -104,6 +109,10 @@ bun install @ Platform-specific optimizations: "clonefile", "hardlink", "symlink", "copyfile" + + Linker strategy (one of isolated or hoisted) + + Install packages for the matching workspaces @@ -112,6 +121,18 @@ bun install @ Recursively analyze & install all dependencies of files passed as arguments +### Platform Targeting + + + Override CPU architecture for optional dependencies (e.g., x64, arm64, * for + all) + + + + Override operating system for optional dependencies (e.g., linux, darwin, * for + all) + + ### Caching Options @@ -150,6 +171,10 @@ bun install @ Add to trustedDependencies in the project's package.json and install the package(s) + + Only install package versions published at least this many seconds ago + + ### Concurrency & Performance