Skip to content

install.sh: auto-install devcontainer CLI via standalone bundle#26

Merged
aniongithub merged 1 commit into
mainfrom
auto-install-devcontainer-cli
May 28, 2026
Merged

install.sh: auto-install devcontainer CLI via standalone bundle#26
aniongithub merged 1 commit into
mainfrom
auto-install-devcontainer-cli

Conversation

@aniongithub
Copy link
Copy Markdown
Owner

When the devcontainer CLI is missing, the installer now bootstraps it via the official @devcontainers/cli standalone installer, which bundles its own Node.js runtime — so no system Node is required.

Behavior

  • Installs into ~/.local/share/devcontainer-mcp/devcontainers/ (a folder we own, kept separate from the user's other tools).
  • Symlinks the resulting binary into $INSTALL_DIR/devcontainer so it sits on the same PATH line the installer already tells users to add.
  • Pre-creates the parent dir so the upstream installer's parent-writable check passes on fresh systems.
  • Failure is non-fatal: prints a pointer to the upstream install script and continues. devpod and gh remain detect-only (out of scope).

install.ps1 delegates to install.sh inside WSL, so Windows users get the auto-install for free.

Verification

Tested locally with a clean HOME + INSTALL_DIR:

… devcontainer CLI not found — installing standalone bundle into …/devcontainers
  ✓ devcontainer (auto-installed → …/devcontainer)
0.87.0

Closes the gap where the prior installer just printed ✗ devcontainer — https://… and left the user to figure it out, even though the only blocker was a one-shot download.

When the devcontainer CLI is missing, the installer now bootstraps it
via the official @devcontainers/cli standalone installer, which bundles
its own Node.js runtime — so no system Node is required.

- Installs into ~/.local/share/devcontainer-mcp/devcontainers/ (a folder
  we own, kept separate from the user's other tools).
- Symlinks the resulting binary into INSTALL_DIR/devcontainer so it sits
  on the same PATH line the installer already tells users to add.
- Pre-creates the parent dir so the upstream installer's parent-writable
  check passes on fresh systems.
- Failure is non-fatal: prints a pointer to the upstream install script
  and continues. devpod and gh remain detect-only (out of scope).

install.ps1 delegates to install.sh inside WSL, so Windows users get
the auto-install for free.
@aniongithub aniongithub merged commit d091f59 into main May 28, 2026
1 check passed
@aniongithub aniongithub deleted the auto-install-devcontainer-cli branch May 28, 2026 06:32
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.

1 participant