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.
16
+
Interactively creates a new NativeScript app.
17
17
18
18
### Options
19
19
*`--path` - Specifies the directory where you want to create the project, if different from the current directory. The directory must be empty.
20
20
*`--appid` - Sets the application identifier for your project.
21
-
*`--template` - Specifies a valid npm package which you want to use to create your project. If `--template` is not set, the NativeScript CLI creates the project from the default JavaScript hello-world template.<% if(isHtml) { %> If one or more application assets are missing from the `App_Resources` directory in the package, the CLI adds them using the assets available in the default hello-world template.<% } %>
22
-
*`--ng` - Sets the template for your project to the Angular template.
23
-
*`--tsc` - Sets the template for your project to the TypeScript template.
21
+
*`--template` - Specifies a valid npm package which you want to use to create your project. If `--template` is not set, the NativeScript CLI will ask you to pick one from a predefined list afterwards.<% if(isHtml) { %> If one or more application assets are missing from the `App_Resources` directory in the package, the CLI adds them using the assets available in the default hello-world template.<% } %>
22
+
*`--js`, `--javascript` - Sets the template for your project to the JavaScript template.
23
+
*`--ts`, `--tsc`, `--typescript` - Sets the template for your project to the TypeScript template.
24
+
*`--ng`, `--angular` - Sets the template for your project to the Angular template.
25
+
*`--vue`, `--vuejs` - Sets the template for your project to the Vue.js template.
24
26
25
27
### Attributes
26
-
*`<App Name>` is the name of project. The specified name must meet the requirements of all platforms that you want to target. <% if(isConsole) { %>For more information about the `<App Name>` requirements, run `$ tns help create`<% } %><% if(isHtml) { %>For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter.
28
+
*`<App Name>` is the name of project. The specified name must meet the requirements of all platforms that you want to target. If not specified, the NativeScript CLI will ask you for it afterwards. <% if(isConsole) { %>For more information about the `<App Name>` requirements, run `$ tns help create`<% } %><% if(isHtml) { %>For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter.
27
29
For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.<% } %>
28
30
*`<App ID>` is the application identifier for your project. It must be a domain name in reverse and must meet the requirements of all platforms that you want to target. If not specified, the application identifier is set to `org.nativescript.<App name>` <% if(isConsole) { %>For more information about the `<App ID>` requirements, run `$ tns help create`<% } %><% if(isHtml) { %>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`
29
31
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`.
30
32
*`<Template>` is a valid npm package which you want to use as template for your app. You can specify the package by name in the npm registry or by local path or GitHub URL to a directory or .tar.gz containing a package.json file. The contents of the package will be copied to the `app` directory of your project.<% } %>
31
33
32
34
<% if(isHtml) { %>
35
+
36
+
### Templates Usage
37
+
38
+
Based on the selected options, the NativeScript CLI will use the project templates below:
0 commit comments