All apps/Dart

Dart

dart

A command-line utility for Dart development.

Runs as dart|macOS, Linux, Windows|dart.dev

Command form

ai-draft · 8 tasks · 15 fields

Common dart subcommands: analyze, format, create and pub get. Global flags and other subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui dart

dart analyze

Analyze code

Static analysis of a Dart project.

Analyze codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Project directory
directory
Treat infos as fatal
--fatal-infos
TasksEach one presets the form for one job
Strict analysis
directoryfatal_infos
Analyze project
directoryno_fatal_warnings
ParametersOnly these flags are editable in the form
Project directory
path · positional 0
Treat infos as fatal
boolean
--fatal-infos
Treat warnings as fatal
boolean
--fatal-warnings
Do not treat warnings as fatal
boolean
--no-fatal-warnings

dart format

Format code

Rewrites files in place unless an output mode is given.

Format codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
Line length
integer
Apply style fixes
--fix
TasksEach one presets the form for one job
Format in place
targetsline_lengthfix
Check only (CI)
targetsset_exit_if_changed
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Line length
integer
--line-length-l80120
Exit 1 if anything changes
boolean
--set-exit-if-changed
Apply style fixes
boolean
--fix

dart create

Create project

Creates a new Dart project from a template.

Create projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Target directory*
directory
Template
consolestring
TasksEach one presets the form for one job
Console app
directorytemplate
Package
directorytemplate
ParametersOnly these flags are editable in the form
Target directory
path · positional 0
Template
string
--template-tconsolepackageserver-shelfweb
Generate even if directory exists
boolean
--force
Skip pub get
boolean
--no-pub

dart pub get

Get packages

Resolves and downloads dependencies.

Get packagesExample values, fixed in this page — nothing here reaches a terminal
Basic
Use cached packages only
--offline
Precompile executables
--precompile
TasksEach one presets the form for one job
Get packages
offlineprecompile
Preview changes
dry_run
ParametersOnly these flags are editable in the form
Use cached packages only
boolean
--offline
Dry run
boolean
--dry-run-n
Precompile executables
boolean
--precompile
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed dart against its version. A form that does not match your version is not offered.