cli_util
A library to help in building Dart command-line apps.
0.6.0
5.5M downloads/mo
#143 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 3 days ago
21 Aug 2026
Release timing varies
gaps range from 1 weeks to 1.5 years
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
25 releases · first in 2015
4 releases in the last 12 months
see the full history below
Release timeline
25 releases · Feb 2015 to Aug 2026
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 25-
0.6.021 Aug 2026Release notes
Open source →- Breaking Change:
sdkPathnow returnsString?(returningnullif no
valid Dart SDK can be located). - Support robust SDK discovery for AOT-compiled tools (
dart install,
dart build cli) probingPlatform.resolvedExecutable,DART_ROOT,
DART_SDK, systemPATH(with Flutter wrapper layout awareness), and
FLUTTER_ROOT. - Add
dartExecutablegetter (String?) to locate thedartbinary. - Add
isValidSdkPath(String candidatePath)validation helper.
Release notes
Open source →- Breaking Change:
sdkPathnow returnsString?(returningnullif no valid Dart SDK can be located). - Support robust SDK discovery for AOT-compiled tools (
dart install,dart build cli) probingPlatform.resolvedExecutable,DART_ROOT,DART_SDK, systemPATH(with Flutter wrapper layout awareness), andFLUTTER_ROOT. - Add
dartExecutablegetter (String?) to locate thedartbinary. - Add
isValidSdkPath(String candidatePath)validation helper.
- Breaking Change:
-
0.5.222 Jul 2026 -
0.5.106 May 2026Release notes
Open source →- Add
showMultiSelectDialogandshowSingleSelectDialogto new
cli_componentslibrary, as well as an example. - Adds a
package:cli_util/windows_compatibility.dartlibrary which initially
contains just theWin32AnsiStdinclass. This can be used on Windows to get
a stdin stream that forwards arrow keys and other special keys in the way
that you'd expect, and converts then to ANSI escape sequences.- Note that this is not a full implementation, and only handles the events
that are needed for the CLI components in this package.
- Note that this is not a full implementation, and only handles the events
- Increases min SDK constraint to
^3.7.0.
Release notes
Open source →- Add
showMultiSelectDialogandshowSingleSelectDialogto newcli_componentslibrary, as well as an example. - Adds a
package:cli_util/windows_compatibility.dartlibrary which initially contains just theWin32AnsiStdinclass. This can be used on Windows to get a stdin stream that forwards arrow keys and other special keys in the way that you'd expect, and converts then to ANSI escape sequences.- Note that this is not a full implementation, and only handles the events that are needed for the CLI components in this package.
- Increases min SDK constraint to
^3.7.0.
- Add
-
0.5.021 Apr 2026Release notes
Open source →- Add
BaseDirectoriesclass and deprecateapplicationConfigHome. - Removed unused
package:metadependency. - Require Dart 3.4.
Release notes
Open source →- Add
BaseDirectoriesclass and deprecateapplicationConfigHome. - Removed unused
package:metadependency. - Require Dart 3.4.
- Add
-
0.4.229 Oct 2024Release notes
Open source →- Add
sdkPathgetter, deprecategetSdkPathfunction.
- Move to
dart-lang/toolsmonorepo.
- Add
-
0.4.115 Dec 2023 -
0.4.004 Mar 2023Release notes
Open source →- Remove the deprecated method
getSdkDir()(instead, usegetSdkPath()). - Require Dart 2.19.
- Remove the deprecated method
-
0.3.512 Oct 2021Release notes
Open source →- Make
applicationConfigHomethrow anExceptionwhen it fails to find a configuration folder.
- Make
-
0.3.430 Sep 2021Release notes
Open source →- Introduce
applicationConfigHomefor making it easy to consistently find the user-specific application configuration folder.
- Introduce
-
0.3.307 Jul 2021 -
0.3.204 Jul 2021 -
0.3.123 Jun 2021Release notes
Open source →- Fix a bug in
AnsiProgresswhere the spinning character doesn't every update.
- Fix a bug in
-
0.3.006 Feb 2021 -
0.3.0-nullsafety.009 Nov 2020 pre-release -
0.2.004 Jun 2020Release notes
Open source →- Add
Logger.writeandLogger.writeCharCodemethods which write without printing a trailing newline.
- Add
-
0.1.405 May 2020 -
0.1.316 May 2018Release notes
Open source →- In verbose mode, instead of printing the diff from the last log message, print the total time since the tool started
- Change to not buffer the last log message sent in verbose logging mode
- Expose more classes from the logging library
-
0.1.3+216 Jul 2018 -
0.1.213 Jul 2017 -
0.1.2+119 Sep 2017 -
0.1.126 May 2017Release notes
Open source →- Updated to the output for indeterminate progress
- Exposed a
Logger.isVerbosegetter
-
0.1.017 May 2017Release notes
Open source →- Added a new
getSdkPath()method to get the location of the SDK (this uses the newPlatform.resolvedExecutableAPI to locate the SDK) - Deprecated
getSdkDir()in favor ofgetSdkPath() - Add the
cli_logging.dartlibrary - utilities to display output and progress
- Added a new
-
0.0.105 Feb 2015 -
0.0.1+110 Feb 2015 -
0.0.1+219 May 2015