Title: Command "emulate" and options "--emulator/--device/--avd" are a bit confusing to use · Issue #2349 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Command "emulate" and options "--emulator/--device/--avd" are a bit confusing to use · Issue #2349 · NativeScript/nativescript-cli
X Title: Command "emulate" and options "--emulator/--device/--avd" are a bit confusing to use · Issue #2349 · NativeScript/nativescript-cli
Description: emulate command is used to run an app on an emulator but we already have options to specify on what device to run the app. The different options that one can use to define deployment target are behaving differently --device - can be used...
Open Graph Description: emulate command is used to run an app on an emulator but we already have options to specify on what device to run the app. The different options that one can use to define deployment target are beh...
X Description: emulate command is used to run an app on an emulator but we already have options to specify on what device to run the app. The different options that one can use to define deployment target are beh...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/2349
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Command \"emulate\" and options \"--emulator/--device/--avd\" are a bit confusing to use","articleBody":"**emulate** command is used to run an app on an emulator but we already have options to specify on what device to run the app.\r\nThe different options that one can use to define deployment target are behaving differently\r\n**--device** - can be used to specify which device to be targeted and accepts device id and device name for some commands -> related issue [2345](https://github.com/NativeScript/nativescript-cli/issues/2345)\r\n\r\n**run --emulator = emulate**, but the option does not accept any parameters - related [2329](https://github.com/NativeScript/nativescript-cli/issues/2329)\r\n\r\nIf emulate command is removed, to specify which device you'll use, you'll have to type the below command\r\n`tns run android/ios --emulator --device {DeviceName/Id}`\r\n\r\nI think we should agree on some kind of flow that covers the most common use cases.\r\n\r\nFor me the way I use these options is something like that ->\r\n**Option 1 - no emulate command**\r\n`tns run/debug/deploy/livesync --emulator` - starts emulator and ignores all connected real devices\r\n`tns run/debug/deploy/livesync --emulator {EmulatorName/Id}` - starts/connects to specified emulator or if it doesn't exist give a meaningful error message\r\n'tns run/debug/deploy/livesync --device {EmulatorName/Id}' - starts/connects to specified emulator or if it doesn't exist give a meaningful error message\r\n**Option 2 - no --emulator option**\r\n`tns emulate` - starts emulator and runs app on it, ignores all connected real devices\r\n`tns emulate --device {DeviceName/Id}` - starts emulator with specified name and runs the app on it\r\n'tns run/debug/deploy/livesync --device {EmulatorName/Id}' - starts/connects to specified emulator or if it doesn't exist give a meaningful error message","author":{"url":"https://github.com/pkoleva","@type":"Person","name":"pkoleva"},"datePublished":"2016-12-13T12:29:04Z","url":"https://github.com/NativeScript/nativescript-cli/issues/2349"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:267a7afb-d1e2-4b60-dda7-1260029b75bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D952:B53AF:23C171A:2F9BF2B:6B0195B5 |
| html-safe-nonce | e0ed16a959730b189c6174aa61157cf93caf376605361d967439d551ade8fcc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTUyOkI1M0FGOjIzQzE3MUE6MkY5QkYyQjo2QjAxOTVCNSIsInZpc2l0b3JfaWQiOiI3ODI5NDc2NDI0NjIzOTUzMzMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52e9eb781f34bbf3d15966992b92121464daa79ebf691180fac02ebf7c41d0e7 |
| hovercard-subject-tag | issue:195240737 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/2349/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93f3ad6ccf8142d4e11abb138f06d0528c948ae5d0eb36fe8eaa6e677db3a1b8/NativeScript/nativescript-cli/issues/2349 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93f3ad6ccf8142d4e11abb138f06d0528c948ae5d0eb36fe8eaa6e677db3a1b8/NativeScript/nativescript-cli/issues/2349 |
| og:image:alt | emulate command is used to run an app on an emulator but we already have options to specify on what device to run the app. The different options that one can use to define deployment target are beh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pkoleva |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width