Subcommands78 subcommands
ns help
Open the CLI's documentation in your web browser
ns info
Displays version information about the NativeScript CLI, core modules, and runtimes
ns update
Updates the project with the latest versions of platform runtimes, cross-platform modules and webpack
ns update next
The latest development release
ns package-manager
Prints the value of the current package manager
ns package-manager get
Prints the value of the current package manager
ns package-manager set
Enables the specified package manager for the NativeScript CLI. Supported values are npm, yarn and pnpm
ns doctor
Checks your system for configuration problems which might prevent the NativeScript CLI from working properly for the specified platform, if configured
ns doctor android
Check your system configuration for android
ns doctor ios
Check your system configuration for ios
ns migrate
Migrates the app dependencies to a form compatible with NativeScript 6.0
ns usage-reporting
Configures anonymous usage reporting for the NativeScript CLI. All data gathered is used strictly for improving the product and will never be used to identify or contact you
ns usage-reporting status
Shows the current configuration for anonymous usage reporting for the NativeScript CLI
ns usage-reporting enable
Enables anonymous usage reporting
ns usage-reporting disable
Disables anonymous usage reporting
ns error-reporting
Configures anonymous error reporting for the NativeScript CLI. All data gathered is used strictly for improving the product and will never be used to identify or contact you
ns error-reporting status
Shows the current configuration for anonymous error reporting for the NativeScript CLI
ns error-reporting enable
Enables anonymous error reporting
ns error-reporting disable
Disables anonymous error reporting
ns proxy
Displays the current proxy settings of the NativeScript CLI
ns proxy clear
Clears the currently configured proxy settings of the NativeScript CLI
ns proxy set
Sets the proxy settings of the NativeScript CLI
ns create
Create a new Nativescript project. Press Enter for an interactive walkthrough
ns clean
Clean your Nativescript project
ns preview
Produces a QR code which can be used to preview the app on a device
ns platform
Lists all platforms that the project currently targets. You can build and deploy your project only for these target platforms
ns platform list
Lists all platforms that the project currently targets. You can build and deploy your project only for these target platforms
ns platform add
Configures the current project to target the selected platform
ns platform add android
The latest android platform
ns platform add android@[Version]
The defined android platform eg. 1.0.0
ns platform add ios
The latest ios platform
ns platform add ios@[Version]
The defined ios platform eg. 1.0.0
ns platform remove
Removes the selected platform from the platforms that the project currently targets
ns platform remove android
The latest android platform
ns platform remove ios
The latest ios platform
ns platform update
Updates the NativeScript runtime for the specified platform
ns platform update android
The latest android platform
ns platform update ios
The latest ios platform
ns run
Runs your project on all connected devices or in native emulators for the selected platform
ns run android
The latest android platform
ns run ios
The latest ios platform
ns debug
Initiates a debugging session for your project on a connected device or native emulator
ns debug android
Start a debugging session for your project on a connected Android device or Android emulator
ns debug ios
Start a debugging session for your project on a connected iOS device or in the native iOS simulator
ns test
Runs unit tests on the selected mobile platform
ns test init
Configure your project for unit testing
ns test android
Run unit tests on all connected android devices or native emulators
ns test ios
Run unit tests on all connected ios devices or native emulators
ns plugin
Manage the plugins for your project
ns plugin add
Installs the specified plugin and its dependencies
ns plugin remove
Uninstalls the specified plugin and its dependencies
ns plugin update
Uninstalls and installs the specified plugin(s) and its dependencies
ns plugin build
Builds the Android parts of a NativeScript plugin
ns plugin create
Creates a project for building a new NativeScript plugin
ns resources
Manage the plugins for your project
ns resources update
Updates the App_Resources's internal folder structure to conform to that of an Android Studio project
ns resources generate splashes
ns resources generate icons
ns prepare
Starts a Webpack compilation and prepares the app's App_Resources and the plugins platforms directories
ns prepare android
Prepares your project for an Android build
ns prepare ios
Prepares your project for an iOS build
ns build
Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on a device
ns deploy
Prepares, builds and deploys the project to a connected device or native emulator. You must specify the target platform on which you want to deploy. It will deploy the app on all connected devices targeting the selected platform
ns install
Installs all dependencies described in a valid package.json or installs a selected NativeScript development module as a dev dependency
ns install typescript
Enable TypeScript support
ns appstore
Lists all application records in iTunes Connect. The list contains name, version and bundle ID for each application record
ns appstore upload
Uploads project to iTunes Connect. The command either issues a production build and uploads it to iTunes Connect, or uses an already built package to upload
ns device
Lists all recognized connected Android or iOS devices with serial number and index, grouped by platform
ns device android
Lists all recognized connected Android physical and running Android virtual devices
ns device ios
Lists all recognized connected iOS devices with serial number and index
ns device log
Opens the device log stream for a selected connected device
ns device list-applications
Lists the installed applications on all connected Android or iOS devices
ns device run
Runs the selected application on a connected Android or iOS device