NOTE! You are browsing legacy documentation. For latest visit docs.nativescript.org.

NativeScript Core

tns platform

Description

Lists all platforms that the project currently targets. You can build and deploy your project only for these target platforms.

Commands

Usage Synopsis
General $ tns platform list
Command Description
install Installs all platforms and dependencies described in the package.json file in the current directory.
platform add Configures the current project to target the selected platform.
platform remove Removes the selected platform from the platforms that the project currently targets.
platform update Updates the NativeScript runtime for the specified platform.
prepare Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.