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