Skip to content

fix(up): honor explicit port settings in git worktrees - #2808

Merged
tripodsan merged 1 commit into
adobe:mainfrom
ericvangeem:fix/worktree-explicit-port
Oct 19, 2026
Merged

tripodsan merged 1 commit into
adobe:mainfrom
ericvangeem:fix/worktree-explicit-port

Conversation

@ericvangeem

Copy link
Copy Markdown
Contributor

Move default port selection from yargs into command initialization so an omitted port remains distinguishable from an explicitly configured 3000. Git worktrees still receive a branch-derived port when no port is configured, while --port and AEM_PORT overrides—including .env settings—are honored.

This preserves automatic collision avoidance without overriding fixed-port requirements. Includes regression coverage for port selection and CLI/environment precedence, plus documentation of the behavior.

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Fixes #2807

@ericvangeem
ericvangeem marked this pull request as ready for review October 8, 2026 16:55
@tripodsan
tripodsan merged commit 21ec7b8 into adobe:main Oct 19, 2026
5 checks passed
@tripodsan

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 16.22.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

josleesj pushed a commit to adobe/helix-cli-ams that referenced this pull request Oct 20, 2026
## [16.22.12](adobe/helix-cli@v16.22.11...v16.22.12) (2026-10-19)

### Bug Fixes

* **up:** honor explicit port settings in git worktrees ([adobe#2808](adobe#2808)) ([21ec7b8](adobe@21ec7b8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aem up ignores explicit --port 3000 in Git worktrees

2 participants