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