Add --host flag support to run:ios and run:android commands#682
Merged
thymikee merged 3 commits intocallstackincubator:mainfrom Feb 3, 2026
Merged
Conversation
|
@JakubKorytko is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
thymikee
approved these changes
Feb 3, 2026
Contributor
|
There's also a bunch of other options that we could pass to Metro, which will pollute the API, but for now this works 👍🏼 |
Contributor
|
ming adding a changeset with |
Contributor
Author
|
sure, on it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fixes: #681
This PR adds support for the
--hostflag inrun:iosandrun:androidcommands, allowing users to specify a custom host for the Metro development server when using the--dev-serverflag. This brings feature parity with the existingrock start --hostcommand.Changes
Android (
packages/platform-android/src/lib/commands/runAndroid/runAndroid.ts)host?: stringtoFlagsinterfacehost: args.hostto dev server initialization--host <string>option torunOptionsiOS (
packages/platform-apple-helpers/src/lib/commands/run/)host?: stringtoRunFlagsinterface inrunOptions.tshost: args.hostto dev server initialization increateRun.ts--host <string>option togetRunOptionsinrunOptions.tsDocumentation (
website/src/docs/cli/introduction.md)run:iosoptions table to include--hostflagrun:androidoptions table to include--hostflagTesting
The implementation follows the existing
--portflag pattern for consistency. Users can now: