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. It should conform to platform package type limitations. For example classes in Java
40
-
don't 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.
41
45
42
46
Options:
43
47
--path - Specifies the directory where you want to create the project, if different from the current directory.
44
48
The directory must be empty.
45
-
--appid - Sets the application identifier for your project. The application identifier must consist of at least three
46
-
alphanumeric strings, separated by a dot (.). Each string must start with a letter.
47
-
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
48
53
If not specified, the application identifier is set to com.telerik.<App name>.
49
-
--copy-from - Specifies the directory where your javascript files are located. If not set,
50
-
the default helloworld template is used.
54
+
--copy-from - Specifies a directory which contains custom assets that you want to use in your NativeScript project. If not set,
55
+
the default hello-world template is used.
51
56
52
57
--[/]--
53
58
@@ -56,34 +61,43 @@ Options:
56
61
Usage:
57
62
$ tns platform <Command>
58
63
64
+
You must run the platform command with a related command.
65
+
59
66
<Command> is a related command that extends the platform command. You can run the following related commands:
60
-
list - Lists all available and installed platforms.
61
-
add - Enables a project with deployment capabilities for the specified platform
62
-
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.
63
74
64
75
--[/]--
65
76
66
77
--[platform|list]--
67
78
68
79
Usage:
69
-
$ tns platform
80
+
$ tns platform list
70
81
71
-
Lists all available and currently installed platforms.
82
+
Lists all platforms that the project currently targets. You can build and deploy your project only for the active target platforms.
72
83
73
84
--[/]--
74
85
75
86
--[platform|add]--
76
87
77
88
Usage:
78
-
$ tns platform add <platform>
89
+
$ tns platform add <Platform>
79
90
80
91
Platform-specific usage:
81
92
$ tns platform add android
82
93
$ tns platform add ios
83
94
84
-
Creates a new platform specific project. The current version of the Telerik NativeScript has support for
85
-
iOS and Android projects. Android projects can be created on Linux, Windows and Mac machines. iOS projects
86
-
can only be created on a Mac machine.
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.
98
+
On Windows systems, you can target Android.
99
+
On OS X systems, you can target Android and iOS.
100
+
87
101
88
102
--[/]--
89
103
@@ -96,20 +110,23 @@ Platform-specific usage:
96
110
$ tns platform remove android
97
111
$ tns platform remove ios
98
112
99
-
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.
100
116
101
117
--[/]--
102
118
103
119
--[prepare]--
104
120
105
121
Usage:
106
-
$ tns prepare [<platform>]
122
+
$ tns prepare [<Platform>]
107
123
108
124
Platform-specific usage:
109
125
$ tns prepare android
110
126
$ tns prepare ios
111
127
112
-
Copies files for specified platform, so that the project is ready to build in each SDK.
128
+
Copies cross-platform content to the subdirectory for the selected target platform. This lets you build the project with
129
+
the SDK for the selected platform.
113
130
114
131
--[/]--
115
132
@@ -122,7 +139,8 @@ Platform-specific usage:
122
139
$ tns build android
123
140
$ tns build ios
124
141
125
-
Builds the project for specified platform. This generates platform-specific code within the project's platforms subdirectory.
142
+
Builds the project for the selected target platform. This generates platform-specific code within the platform subdirectory
143
+
in the project.
126
144
127
145
--[/]--
128
146
@@ -135,7 +153,7 @@ Platform-specific usage:
135
153
$ tns run android
136
154
$ tns run ios
137
155
138
-
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