Dart SDK

The Dart SDK has the libraries and command-line tools that you need to develop Dart applications. To learn about other tools you can use for Dart development, see Dart Tools.

Getting the SDK

Although DartPad is a great way to learn how to write a simple app in the Dart language, once you are ready to start doing real-world development, you need the Dart SDK.

Download the Dart SDK.

What’s in the SDK

The SDK directory includes a lib directory for the Dart libraries and a bin directory that has these command-line tools:

dart
The standalone VM
dart2js
The Dart-to-JavaScript compiler
dartanalyzer
The static analyzer
dartdocgen
The API documentation generator
pub
The Dart package and asset manager
dartfmt
The Dart code formatter

For more information about the SDK, see its README file.

Installing the SDK

Once you have downloaded the Dart SDK, add the SDK’s bin directory to your PATH.

On Mac OS:

$ export PATH=$PATH:<installation-directory>/bin

On Windows:

> set PATH=%PATH%;C:<installation-directory>/bin

On Linux:

$ export PATH=${PATH}:<installation-directory>/bin

If you are using an IDE, such as WebStorm, you must also set the location to the SDK. In WebStorm, you specify the path in Preferences > Languages & Frameworks > Dart.

Filing bugs and feature requests

To see existing issues or create a new one, go to dartbug.com. Here are some handy searches: