You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configures the current project to target the selected platform. When you add a target platform, the NativeScript CLI adds a corresponding platform-specific subdirectory under the platforms directory. This platform-specific directory contains the necessary files to let you build your project for the target platform.
116
+
Configures the current project to target the selected platform.
117
+
118
+
<File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
119
+
120
+
When you add a target platform, the NativeScript CLI adds a corresponding platform-specific subdirectory under the platforms directory. This platform-specific directory contains the necessary files to let you build your project for the target platform.
117
121
118
122
In this version of the NativeScript CLI, you can target iOS and Android, based on your system. You need to have your system configured for development with the target platform.
119
123
On Windows and Linux systems, you can target Android.
120
124
On OS X systems, you can target Android and iOS.
121
125
122
-
<File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
123
-
124
126
Options:
125
127
--frameworkPath - Sets the path to a NativeScript runtime for the specified platform that you want to use instead of the default runtime.
126
128
If --symlink is specified, <File Path> must point to directory in which the runtime is already extracted.
@@ -135,13 +137,10 @@ Options:
135
137
136
138
Usage:
137
139
$ tns platform remove <Platform>
138
-
$ nativescript platform remove <Platform>
139
140
140
141
Platform-specific usage:
141
142
$ tns platform remove android
142
143
$ tns platform remove ios
143
-
$ nativescript platform remove android
144
-
$ nativescript platform remove ios
145
144
146
145
Removes the selected platform from the platforms that the project currently targets. After removing the target platform, you can no longer build and deploy your app on devices which run on the platform.
147
146
@@ -153,13 +152,10 @@ This operation deletes the subdirectory for the selected platform from the platf
153
152
154
153
Usage:
155
154
$ tns platform update <Platform>
156
-
$ nativescript platform update <Platform>
157
155
158
156
Platform-specific usage:
159
157
$ tns platform update android
160
158
$ tns platform update ios
161
-
$ nativescript platform update android
162
-
$ nativescript platform update ios
163
159
164
160
Updates the NativeScript runtime for the specified platform.
165
161
--[/]--
@@ -168,13 +164,10 @@ Updates the NativeScript runtime for the specified platform.
168
164
169
165
Usage:
170
166
$ tns prepare <Platform>
171
-
$ nativescript prepare <Platform>
172
167
173
168
Platform-specific usage:
174
169
$ tns prepare android
175
170
$ tns prepare ios
176
-
$ nativescript prepare android
177
-
$ nativescript prepare ios
178
171
179
172
Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform
180
173
in the platforms directory. This lets you build the project with the SDK for the selected platform.
@@ -184,7 +177,6 @@ in the platforms directory. This lets you build the project with the SDK for the
184
177
--[build]--
185
178
Usage:
186
179
$ tns build <Command>
187
-
$ nativescript build <Command>
188
180
189
181
You must run the create command with a related command.
190
182
@@ -198,7 +190,6 @@ Builds the project for the selected target platform and produces an application
Lists all recognized connected devices with serial number and index, grouped by platform. The NativeScript CLI recognizes running Android virtual devices as connected devices.
528
503
@@ -544,7 +519,6 @@ Options:
544
519
--[device|log]--
545
520
Usage:
546
521
$ tns device log --device <Device ID>
547
-
$ nativescript device log --device <Device ID>
548
522
549
523
Opens the device log stream for a selected connected device.
0 commit comments