Skip to main content

Tooling for Darts

Dart tooling is the command-line and editor support around the language. The dart command runs, analyses, formats, tests and compiles code, pub manages packages through pubspec.yaml, and the analyzer enforces lint rules. Editors such as VS Code and Android Studio add debugging, hot reload for Flutter and DevTools for profiling.

Stage: Tooling and Use · Part of the Dart roadmap · Last reviewed 19 November 2026

What to learn in Tooling

Tooling interview questions

What does pubspec.yaml do in a Dart project?

It is the project manifest. It lists the package name, SDK version constraints, dependencies and dev dependencies. Running dart pub get reads it, resolves versions and writes pubspec.lock, which pins the exact versions so builds are reproducible.

How do you compile a Dart program to a native executable?

Run dart compile exe bin/main.dart to produce a self-contained, ahead-of-time compiled binary for the current operating system. For the web, dart compile js produces JavaScript. A kernel snapshot or JIT build is used for faster development runs.

Where Tooling fits in the Dart roadmap

Tooling belongs to the Tooling and Use stage (intermediate level). Apply it.

Back to the full Dart roadmap