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.
12
- prepare Copies files for specified platform, so that the project is ready to build in platform specific SDK.
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
+ prepare Copies cross-platform content to the subdirectory for the selected target platform.
13
+ This lets you build the project with the SDK for the selected platform.
13
14
build Builds the project for the selected target platform and produces an application package.
14
- run This is shorthand for prepare and build .
15
+ run Runs your project on a connected device. This is shorthand for prepare, build, and deploy .
15
16
16
17
General options:
17
18
--help Prints help about the selected command.
@@ -24,6 +25,7 @@ General options:
24
25
25
26
Usage:
26
27
$ tns help [<Command>]
28
+
27
29
Lists the available commands or shows information about the selected command.
28
30
<Command> is any of the available commands as listed by $ tns help.
29
31
35
37
$ tns create <App name> [--path <Directory>] [--appid <App ID>] [--copy-from <Directory>]
36
38
37
39
Creates a new NativeScript project.
38
- <App name> is the name of project. It should conform to platform package type limitations. For example classes in Java
39
- don't begin with numbers.
40
+ <App name> is the name of project. The specified name must comply with the limitations of the target platform.
41
+ For example, the name of a project that targets Android must not begin with a number because classes in Java
42
+ cannot begin with numbers.
40
43
41
44
Options:
42
45
--path - Specifies the directory where you want to create the project, if different from the current directory.
@@ -45,8 +48,8 @@ Options:
45
48
alphanumeric strings, separated by a dot (.). Each string must start with a letter.
46
49
The application identifier corresponds to the Bundle ID for iOS apps and to the package identifier for Android apps.
47
50
If not specified, the application identifier is set to com.telerik.<App name>.
48
- --copy-from - Specifies the directory where your javascript files are located . If not set,
49
- the default hello world template is used.
51
+ --copy-from - Specifies a directory which contains custom assets that you want to use in your NativeScript project . If not set,
52
+ the default hello- world template is used.
50
53
51
54
--[/]--
52
55
@@ -55,44 +58,53 @@ Options:
55
58
Usage:
56
59
$ tns platform <Command>
57
60
61
+ You must run the platform command with a related command.
62
+
58
63
<Command> is a related command that extends the platform command. You can run the following related commands:
59
- list - Lists all available and installed platforms .
60
- add - Creates a new platform specific project
64
+ list - Lists all target platforms for the current project .
65
+ add - Configures the current project to target the selected platform.
61
66
62
67
--[/]--
63
68
64
69
--[platform|list]--
65
70
66
71
Usage:
67
- $ tns platform
72
+ $ tns platform list
68
73
69
- Lists all available and currently installed platforms .
74
+ Lists all target platforms for the current project .
70
75
71
76
--[/]--
72
77
73
78
--[platform|add]--
74
79
75
80
Usage:
76
- $ tns platform add <platform >
81
+ $ tns platform add <Platform >
77
82
78
83
Platform-specific usage:
79
84
$ tns platform add android
80
85
$ tns platform add ios
81
86
82
- Creates a new platform specific project. In this version of Telerik NativeScript you can create only ios and android projects.
83
- You can create Android projects on windows and Mac machine. You can create ios projects only on Mac machine.
87
+ Configures the current project to target the selected platform. In this version of Telerik NativeScript,
88
+ you can target iOS and Android, based on your system. You need to have your system configured for development with the target
89
+ platform.
90
+ On Windows systems, you can target Android.
91
+ On OS X systems, you can target Android and iOS.
92
+
93
+ When you add a target platform, the Telerik NativeScript CLI adds a corresponding platform-specific subdirectory under the platforms
94
+ directory. This platform-specific directory contains the necessary files to let you build your project for the target platform.
84
95
--[/]--
85
96
86
97
--[prepare]--
87
98
88
99
Usage:
89
- $ tns prepare [<platform >]
100
+ $ tns prepare [<Platform >]
90
101
91
102
Platform-specific usage:
92
103
$ tns prepare android
93
104
$ tns prepare ios
94
105
95
- Copies files for specified platform, so that the project is ready to build in each SDK.
106
+ Copies cross-platform content to the subdirectory for the selected target platform. This lets you build the project with
107
+ the SDK for the selected platform.
96
108
97
109
--[/]--
98
110
@@ -105,7 +117,8 @@ Platform-specific usage:
105
117
$ tns build android
106
118
$ tns build ios
107
119
108
- Builds the project for specified platform. This generates platform-specific code within the project's platforms subdirectory.
120
+ Builds the project for the selected target platform. This generates platform-specific code within the platforms subdirectory
121
+ in the project.
109
122
110
123
--[/]--
111
124
0 commit comments