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
Creates a new project for native development with NativeScript.
50
+
Creates a new project for native development with NativeScript from the default template or from an existing NativeScript project.
46
51
<App name> is the name of project. The specified name must meet the requirements of all platforms that you want to target.
47
52
For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter.
48
53
For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.
@@ -54,22 +59,23 @@ Options:
54
59
meet the requirements of all platforms that you want to target.
55
60
For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores in the strings of the reversed domain name, separated by a dot. Strings must be separated by a dot and must start with a letter. For example: com.nativescript.My_Andro1d_App
56
61
For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens in the strings of the reversed domain name. Strings must be separated by a dot. For example: com.nativescript.My-i0s-App
57
-
If not specified, the application identifier is set to com.telerik.<App name>.
58
-
--copy-from - Specifies a directory which contains custom assets that you want to use in your NativeScript project. If not set,
59
-
the default hello-world template is used.
62
+
If not specified, the application identifier is set to org.nativescript.<App name>.
63
+
--copy-from - Specifies a directory which contains an existing NativeScript project.
64
+
If not set, the Telerik NativeScript CLI creates the project from the default hello-world template.
60
65
61
66
--[/]--
62
67
63
68
--[platform]--
64
69
65
70
Usage:
66
71
$ tns platform <Command>
72
+
$ nativescript platform <Command>
67
73
68
74
You must run the platform command with a related command.
69
75
70
76
<Command> is a related command that extends the platform command. You can run the following related commands:
71
77
list - Lists all platforms that the project currently targets. You can build and deploy your project only for
72
-
the active target platforms.
78
+
these target platforms.
73
79
add - Configures the current project to target the selected platform. After adding the target platform, you can
74
80
build and deploy your app to it.
75
81
remove - Removes the selected platform from the platforms that the project currently targets. After removing
@@ -82,110 +88,178 @@ You must run the platform command with a related command.
82
88
83
89
Usage:
84
90
$ tns platform list
91
+
$ nativescript platform list
85
92
86
-
Lists all platforms that the project currently targets. You can build and deploy your project only for the active target platforms.
93
+
Lists all platforms that the project currently targets. You can build and deploy your project only for these target platforms.
87
94
88
95
--[/]--
89
96
90
97
--[platform|add]--
91
98
92
99
Usage:
93
100
$ tns platform add <Platform>
101
+
$ nativescript platform add <Platform>
94
102
95
103
Platform-specific usage:
96
104
$ tns platform add android
97
105
$ tns platform add ios
106
+
$ nativescript platform add android
107
+
$ nativescript platform add ios
98
108
99
109
Configures the current project to target the selected platform. When you add a target platform, the Telerik 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.
100
110
101
-
In this version of Telerik NativeScript, you can target iOS and Android, based on your system. You need to have your system configured for development with the target platform.
111
+
In this version of the Telerik 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.
102
112
On Windows systems, you can target Android.
103
113
On OS X systems, you can target Android and iOS.
104
114
105
-
106
115
--[/]--
107
116
108
117
--[platform|remove]--
109
118
110
119
Usage:
111
-
$ tns platform remove <platform>
120
+
$ tns platform remove <Platform>
121
+
$ nativescript platform remove <Platform>
112
122
113
123
Platform-specific usage:
114
124
$ tns platform remove android
115
125
$ tns platform remove ios
126
+
$ nativescript platform remove android
127
+
$ nativescript platform remove ios
116
128
117
129
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 to it.
118
130
119
-
This operation deletes all platform-specific files and subdirectories from your project.
131
+
This operation deletes the subdirectory for the selected platform from the platforms directory.
120
132
121
133
--[/]--
122
134
123
135
--[prepare]--
124
136
125
137
Usage:
126
-
$ tns prepare [<Platform>]
138
+
$ tns prepare <Platform>
139
+
$ nativescript prepare <Platform>
127
140
128
141
Platform-specific usage:
129
142
$ tns prepare android
130
143
$ tns prepare ios
144
+
$ nativescript prepare android
145
+
$ nativescript prepare ios
131
146
132
-
Copies cross-platform content to the subdirectory for the selected target platform. This lets you build the project with
133
-
the SDK for the selected platform.
147
+
Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform
148
+
in the platforms directory. This lets you build the project with the SDK for the selected platform.
Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
165
+
166
+
Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
145
167
146
-
Builds the project for the selected target platform. This generates platform-specific code within the platform subdirectory
147
-
in the project.
168
+
Options:
169
+
--release - If set, produces a release build. Otherwise, produces a debug build.
170
+
--device - This flag is applicable only to iOS. If set, produces an application package that you can deploy on device.
171
+
Otherwise, produces a build that you can run only in the native iOS Simulator.
Builds and deploys the project to a connected physical or virtual device.
188
+
<Device ID> is the index or name of the target device as listed by $ tns list-devices.
189
+
190
+
Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
160
191
161
192
--[/]--
162
193
163
194
--[run]--
164
195
165
196
Usage:
166
-
$ tns run [<platform>]
197
+
$ tns run <Platform> [--device <Device ID>] [--emulator]
198
+
$ nativescript run <Platform> [--device <Device ID>] [--emulator]
167
199
168
200
Platform-specific usage:
169
-
$ tns run android
170
-
$ tns run ios
201
+
$ tns run android [--device <Device ID>] [--emulator]
202
+
$ tns run ios [--device <Device ID>] [--emulator]
203
+
$ nativescript run android [--device <Device ID>] [--emulator]
204
+
$ nativescript run ios [--device <Device ID>] [--emulator]
205
+
206
+
Runs your project on a connected device or in the native emulator, if configured. This is shorthand for prepare, build, and deploy.
207
+
<Device ID> is the index or name of the target device as listed by $ tns list-devices.
208
+
209
+
Before building for the Android emulator, verify that you have met the following requirements.
210
+
You have added the file paths to the following directories from the Android SDK to your PATH environment variable.
211
+
tools
212
+
platform-tools
213
+
You have created at least one device with the Android Virtual Device manager.
214
+
215
+
Before building for the iOS simulator, verify that you have installed the ios-sim npm package.
216
+
217
+
Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
171
218
172
-
Runs your project on a connected device. This is shorthand for prepare, build, and deploy.
219
+
Options:
220
+
--device - Specifies a connected device on which to run the app.
221
+
--emulator - If set, runs the app in the native emulator for the target platform, if configured.
173
222
174
223
--[/]--
175
224
176
225
--[emulate]--
177
226
178
227
Usage:
179
-
$ tns emulate [<platform>]
228
+
$ tns emulate <Platform>
229
+
$ nativescript emulate <Platform>
230
+
231
+
Platform-specific usage:
232
+
$ tns emulate android
233
+
$ tns emulate ios
234
+
$ nativescript emulate android
235
+
$ nativescript emulate ios
180
236
181
-
Deploys the project on emulator.
237
+
Builds and runs the project in the native emulator for the selected target platform.
238
+
239
+
For Android, this operation runs your project in the earliest created virtual device or the currently running Android virtual device. Before running this command, verify that you have met the following requirements.
240
+
You have added the file paths to the following directories from the Android SDK to your PATH environment variable.
241
+
tools
242
+
platform-tools
243
+
You have created at least one device with the Android Virtual Device manager.
244
+
For iOS, this operation runs your project in the iOS Simulator. Before running this command, verify that you have installed the ios-sim npm package.
182
245
183
246
--[/]--
184
247
185
248
--[list-devices]--
186
249
187
-
Lists all recognized connected devices with serial number and index, grouped by platform. In this version of the Telerik NativeScript CLI,
188
-
you can connect only iOS and Android devices.
250
+
Usage:
251
+
$ tns list-devices [<Platform>]
252
+
$ nativescript list-devices [<Platform>]
253
+
254
+
Platform-specific usage:
255
+
$ tns list-devices android
256
+
$ tns list-devices ios
257
+
$ nativescript list-devices android
258
+
$ nativescript list-devices ios
259
+
260
+
Lists all recognized connected devices with serial number and index, grouped by platform. The Telerik NativeScript CLI recognizes running Android virtual devices as connected devices.
261
+
262
+
In this version of the Telerik NativeScript CLI, you can connect only iOS and Android devices.
189
263
190
264
If a connected Android device is not shown in the list, make sure that you have installed the required Android USB drivers on your system
191
265
and that USB debugging is enabled on the device.
@@ -207,5 +281,4 @@ All data gathered is used strictly for improving the product and will never be u
207
281
for improving the product and will never be used to identify or contact you.
0 commit comments