Skip to content

docs: document deno install --os and --arch (2.8)#3076

Merged
bartlomieju merged 3 commits into
denoland:2.8from
lunadogbot:docs/2.8-install-os-arch
May 20, 2026
Merged

docs: document deno install --os and --arch (2.8)#3076
bartlomieju merged 3 commits into
denoland:2.8from
lunadogbot:docs/2.8-install-os-arch

Conversation

@lunadogbot
Copy link
Copy Markdown
Contributor

Summary

Documents the new --os and --arch flags on deno install shipping in Deno 2.8 (denoland/deno#32785). They let you install npm packages targeting a different platform than the current machine — useful for cross-platform deployment artifacts.

  • New "deno install --os and --arch" subsection in runtime/reference/cli/install.md.
  • Examples covering Linux/arm64, Windows/x64, and overriding just --arch.
  • Notes that the flags conflict with --global (local installs only).

Test plan

  • deno task serve — section renders, ToC anchor resolves.

Adds a section to install.md describing the new cross-platform install
flags. Notes the Node.js-compatible value set, the default-to-current
behavior when only one flag is provided, and the conflict with
--global.

Refs denoland/deno#32785
@crowlKats crowlKats changed the base branch from main to 2.8 May 5, 2026 11:45
Copy link
Copy Markdown
Contributor

@fibibot fibibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches denoland/deno#32785: --os/--arch are local install flags, accept Node-compatible process.platform/process.arch values, and conflict with --global. No check-runs are reported for this 2.8-branch PR, so holding approval until CI is green.

  • nit: last_modified: 2026-03-12 should be bumped for this content addition.

Resolves conflict with --package-json subsection (PR 3075) added on
2.8; keep both new subsections side by side under deno install.
@bartlomieju bartlomieju merged commit e9d51e6 into denoland:2.8 May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants