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.

Install 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:

The standalone VM
The Dart-to-JavaScript compiler (used only for web development)
The static analyzer
The Dart development compiler (used only for web development)
The API documentation generator
The Dart code formatter
The Dart package manager

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

Installing the SDK

Once you have installed 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: