6
6
General commands:
7
7
help <command> Shows additional information about the commands in this list.
8
8
9
- create Creates a new NativeScript project with given project name and application identifier .
10
- platform add Creates a new platform specific project .
11
- platform list Lists all available and all installed platforms .
9
+ create Creates a new project for native development with NativeScript .
10
+ platform add Configures the current project to target the selected platform .
11
+ platform list Lists all target platforms for the current project .
12
12
platform remove Removes the platform specific project.
13
- prepare Copies files for specified platform, so that the project is ready to build in platform specific SDK.
13
+ prepare Copies cross-platform content to the subdirectory for the selected target platform.
14
+ This lets you build the project with the SDK for the selected platform.
14
15
build Builds the project for the selected target platform and produces an application package.
15
- run This is shorthand for prepare and build .
16
+ run Runs your project on a connected device. This is shorthand for prepare, build, and deploy .
16
17
17
18
General options:
18
19
--help Prints help about the selected command.
@@ -25,6 +26,7 @@ General options:
25
26
26
27
Usage:
27
28
$ tns help [<Command>]
29
+
28
30
Lists the available commands or shows information about the selected command.
29
31
<Command> is any of the available commands as listed by $ tns help.
30
32
36
38
$ tns create <App name> [--path <Directory>] [--appid <App ID>] [--copy-from <Directory>]
37
39
38
40
Creates a new NativeScript project.
39
- <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
+ <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
44
42
45
Options:
43
46
--path - Specifies the directory where you want to create the project, if different from the current directory.
@@ -46,8 +49,8 @@ Options:
46
49
alphanumeric strings, separated by a dot (.). Each string must start with a letter.
47
50
The application identifier corresponds to the Bundle ID for iOS apps and to the package identifier for Android apps.
48
51
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 hello world template is used.
52
+ --copy-from - Specifies a directory which contains custom assets that you want to use in your NativeScript project . If not set,
53
+ the default hello- world template is used.
51
54
52
55
--[/]--
53
56
@@ -56,35 +59,41 @@ Options:
56
59
Usage:
57
60
$ tns platform <Command>
58
61
62
+ You must run the platform command with a related command.
63
+
59
64
<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
65
+ list - Lists all target platforms for the current project .
66
+ add - Configures the current project to target the selected platform.
62
67
remove - Removes the deployment capabilities of a project for the specified platform
63
68
64
69
--[/]--
65
70
66
71
--[platform|list]--
67
72
68
73
Usage:
69
- $ tns platform
74
+ $ tns platform list
70
75
71
- Lists all available and currently installed platforms .
76
+ Lists all target platforms for the current project .
72
77
73
78
--[/]--
74
79
75
80
--[platform|add]--
76
81
77
82
Usage:
78
- $ tns platform add <platform >
83
+ $ tns platform add <Platform >
79
84
80
85
Platform-specific usage:
81
86
$ tns platform add android
82
87
$ tns platform add ios
83
88
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.
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.
92
+ On Windows systems, you can target Android.
93
+ On OS X systems, you can target Android and iOS.
87
94
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.
88
97
--[/]--
89
98
90
99
--[platform|remove]--
@@ -103,13 +112,14 @@ Removes the deployment capabilities of a project for the specified platform.
103
112
--[prepare]--
104
113
105
114
Usage:
106
- $ tns prepare [<platform >]
115
+ $ tns prepare [<Platform >]
107
116
108
117
Platform-specific usage:
109
118
$ tns prepare android
110
119
$ tns prepare ios
111
120
112
- Copies files for specified platform, so that the project is ready to build in each SDK.
121
+ Copies cross-platform content to the subdirectory for the selected target platform. This lets you build the project with
122
+ the SDK for the selected platform.
113
123
114
124
--[/]--
115
125
@@ -122,7 +132,8 @@ Platform-specific usage:
122
132
$ tns build android
123
133
$ tns build ios
124
134
125
- Builds the project for specified platform. This generates platform-specific code within the project's platforms subdirectory.
135
+ Builds the project for the selected target platform. This generates platform-specific code within the platforms subdirectory
136
+ in the project.
126
137
127
138
--[/]--
128
139
0 commit comments