| DART(1) | Dart SDK | DART(1) |
NAME¶
dart - command-line tool for the Dart programming language
SYNOPSIS¶
dart [option ...] command [arguments ...]
DESCRIPTION¶
dart is the unified command-line interface to the Dart SDK. It runs Dart programs, compiles them ahead-of-time or to JavaScript, analyses sources, formats code, and manages packages.
COMMANDS¶
- run
- Run a Dart program from source or a snapshot.
- compile
- Compile Dart to native machine code, a self-contained executable, a kernel/AOT snapshot, or JavaScript (dart compile js, the dart2js compiler).
- analyze
- Run the static analyzer over Dart sources.
- format
- Format Dart source code in place.
- test
- Run the tests for a package.
- pub
- Work with packages (get, upgrade, outdated, ...).
- doc
- Generate API reference documentation.
Run dart help for the full, version-specific list of commands and options.
SEE ALSO¶
Full documentation is available at https://dart.dev/tools/dart-tool.
AUTHOR¶
The Dart project authors.
| 2026-06-20 | Dart SDK |