Command-line | Description |
tns --version |
This returns the version of the NativeScript command. If you are running an older version, then you can use npm to upgrade your NativeScript command like this: npm install -g nativescript. |
tns create <your project name> |
This creates a brand new project.The following are its parameters: --ng and --appid. |
tns platform add <platform> |
This adds a target platform to your project. |
tns platform clean <platform> |
This command is normally not needed, but if you are messing with the platform directory and your platform, you can remove and then add it back. Note that this deletes the entire platform directory. So, if you have made any specific customizations to your Android manifest or iOS Xcode project file, you should back them up before running the clean command. |
tns platform... |
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine