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
<App name> is the name of project. The specified name must comply with the limitations of the target platform.
42
-
For example, the name of a project that targets Android must not begin with a number because classes in Java
43
-
cannot begin with numbers.
41
+
Creates a new project for native development with NativeScript.
42
+
<App name> is the name of project. The specified name must meet the requirements of all platforms that you want to target.
43
+
For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter.
44
+
For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.
44
45
45
46
Options:
46
47
--path - Specifies the directory where you want to create the project, if different from the current directory.
47
48
The directory must be empty.
48
-
--appid - Sets the application identifier for your project. The application identifier must consist of at least three
49
-
alphanumeric strings, separated by a dot (.). Each string must start with a letter.
50
-
The application identifier corresponds to the Bundle ID for iOS apps and to the package identifier for Android apps.
49
+
--appid - Sets the application identifier for your project. The application identifier must be a domain name in reverse and must
50
+
meet the requirements of all platforms that you want to target.
51
+
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
52
+
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
51
53
If not specified, the application identifier is set to com.telerik.<App name>.
52
54
--copy-from - Specifies a directory which contains custom assets that you want to use in your NativeScript project. If not set,
53
55
the default hello-world template is used.
@@ -62,9 +64,13 @@ Usage:
62
64
You must run the platform command with a related command.
63
65
64
66
<Command> is a related command that extends the platform command. You can run the following related commands:
65
-
list - Lists all target platforms for the current project.
66
-
add - Configures the current project to target the selected platform.
67
-
remove - Removes the deployment capabilities of a project for the specified platform
67
+
list - Lists all platforms that the project currently targets. You can build and deploy your project only for
68
+
the active target platforms.
69
+
add - Configures the current project to target the selected platform. After adding the target platform, you can
70
+
build and deploy your app to it.
71
+
remove - Removes the selected platform from the platforms that the project currently targets. After removing
72
+
the target platform, you can no longer build and deploy your app to it.
73
+
This operation deletes all platform-specific files and subdirectories from your project.
68
74
69
75
--[/]--
70
76
@@ -73,7 +79,7 @@ You must run the platform command with a related command.
73
79
Usage:
74
80
$ tns platform list
75
81
76
-
Lists all target platforms for the current project.
82
+
Lists all platforms that the project currently targets. You can build and deploy your project only for the active target platforms.
77
83
78
84
--[/]--
79
85
@@ -86,14 +92,13 @@ Platform-specific usage:
86
92
$ tns platform add android
87
93
$ tns platform add ios
88
94
89
-
Configures the current project to target the selected platform. In this version of Telerik NativeScript,
90
-
you can target iOS and Android, based on your system. You need to have your system configured for development with the target
91
-
platform.
95
+
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.
96
+
97
+
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.
92
98
On Windows systems, you can target Android.
93
99
On OS X systems, you can target Android and iOS.
94
100
95
-
When you add a target platform, the Telerik NativeScript CLI adds a corresponding platform-specific subdirectory under the platforms
96
-
directory. This platform-specific directory contains the necessary files to let you build your project for the target platform.
101
+
97
102
--[/]--
98
103
99
104
--[platform|remove]--
@@ -105,7 +110,9 @@ Platform-specific usage:
105
110
$ tns platform remove android
106
111
$ tns platform remove ios
107
112
108
-
Removes the deployment capabilities of a project for the specified platform.
113
+
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.
114
+
115
+
This operation deletes all platform-specific files and subdirectories from your project.
109
116
110
117
--[/]--
111
118
@@ -132,7 +139,7 @@ Platform-specific usage:
132
139
$ tns build android
133
140
$ tns build ios
134
141
135
-
Builds the project for the selected target platform. This generates platform-specific code within the platforms subdirectory
142
+
Builds the project for the selected target platform. This generates platform-specific code within the platform subdirectory
136
143
in the project.
137
144
138
145
--[/]--
@@ -146,7 +153,7 @@ Platform-specific usage:
146
153
$ tns run android
147
154
$ tns run ios
148
155
149
-
This is shorthand for prepareand build.
156
+
Runs your project on a connected device. This is shorthand for prepare, build, and deploy.
0 commit comments