Scroll to navigation

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 a Dart program from source or a snapshot.
Compile Dart to native machine code, a self-contained executable, a kernel/AOT snapshot, or JavaScript (dart compile js, the dart2js compiler).
Run the static analyzer over Dart sources.
Format Dart source code in place.
Run the tests for a package.
Work with packages (get, upgrade, outdated, ...).
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