dart

A command-line utility for Dart development

Subcommands

NameDescription
analyzeAnalyze Dart code in a directory
compileCompile Dart to various formats
createCreate a new Dart project
fixApply automated fixes to Dart source code
formatIdiomatically format Dart source code
migratePerform null safety migration on a project
pubWork with packages
runRun a Dart program
testRun tests for a project

Options

NameDescription
-h, --helpPrint this usage information
-v, --verbosePrint verbose output
--versionCurrent Dart version
--enable-analyticsEnables analytics
--disable-analyticsDisables analytics