PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 25
  1. 0.6.0 21 Aug 2026
    Release notes
    • Breaking Change: sdkPath now returns String? (returning null if no
      valid Dart SDK can be located).
    • Support robust SDK discovery for AOT-compiled tools (dart install,
      dart build cli) probing Platform.resolvedExecutable, DART_ROOT,
      DART_SDK, system PATH (with Flutter wrapper layout awareness), and
      FLUTTER_ROOT.
    • Add dartExecutable getter (String?) to locate the dart binary.
    • Add isValidSdkPath(String candidatePath) validation helper.
    Open source →
    Release notes
    • Breaking Change: sdkPath now returns String? (returning null if no valid Dart SDK can be located).
    • Support robust SDK discovery for AOT-compiled tools (dart install, dart build cli) probing Platform.resolvedExecutable, DART_ROOT, DART_SDK, system PATH (with Flutter wrapper layout awareness), and FLUTTER_ROOT.
    • Add dartExecutable getter (String?) to locate the dart binary.
    • Add isValidSdkPath(String candidatePath) validation helper.
    Open source →
  2. 0.5.2 22 Jul 2026
    Release notes
    • Add a legend to multiselect dialogs to make the usage more obvious.
    Open source →
    Release notes
    • Add a legend to multiselect dialogs to make the usage more obvious.
    Open source →
  3. 0.5.1 06 May 2026
    Release notes
    • Add showMultiSelectDialog and showSingleSelectDialog to new
      cli_components library, as well as an example.
    • Adds a package:cli_util/windows_compatibility.dart library which initially
      contains just the Win32AnsiStdin class. 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.
    Open source →
    Release notes
    • Add showMultiSelectDialog and showSingleSelectDialog to new cli_components library, as well as an example.
    • Adds a package:cli_util/windows_compatibility.dart library which initially contains just the Win32AnsiStdin class. 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.
    Open source →
  4. 0.5.0 21 Apr 2026
    Release notes
    • Add BaseDirectories class and deprecate applicationConfigHome.
    • Removed unused package:meta dependency.
    • Require Dart 3.4.
    Open source →
    Release notes
    • Add BaseDirectories class and deprecate applicationConfigHome.
    • Removed unused package:meta dependency.
    • Require Dart 3.4.
    Open source →
  5. 0.4.2 29 Oct 2024
    Release notes
    • Add sdkPath getter, deprecate getSdkPath function.
    • Move to dart-lang/tools monorepo.
    Open source →
  6. 0.4.1 15 Dec 2023
    Release notes
    • Fix a broken link in the readme.
    • Require Dart 3.0.
    Open source →
  7. 0.4.0 04 Mar 2023
    Release notes
    • Remove the deprecated method getSdkDir() (instead, use getSdkPath()).
    • Require Dart 2.19.
    Open source →
  8. 0.3.5 12 Oct 2021
    Release notes
    • Make applicationConfigHome throw an Exception when it fails to find a configuration folder.
    Open source →
  9. 0.3.4 30 Sep 2021
    Release notes
    • Introduce applicationConfigHome for making it easy to consistently find the user-specific application configuration folder.
    Open source →
  10. 0.3.3 07 Jul 2021
    Release notes
    • Reverted meta constraint to ^1.3.0.
    Open source →
  11. 0.3.2 04 Jul 2021
    Release notes
    • Update meta constraint to >=1.3.0 <3.0.0.
    Open source →
  12. 0.3.1 23 Jun 2021
    Release notes
    • Fix a bug in AnsiProgress where the spinning character doesn't every update.
    Open source →
  13. 0.3.0 06 Feb 2021
    Release notes
    • Stable null safety release.
    Open source →
  14. 0.3.0-nullsafety.0 09 Nov 2020 pre-release
    Release notes
    • Updated to support 2.12.0 and null safety.
    Open source →
  15. 0.2.0 04 Jun 2020
    Release notes
    • Add Logger.write and Logger.writeCharCode methods which write without printing a trailing newline.
    Open source →
  16. 0.1.4 05 May 2020
    Release notes
    • Add Ansi.reversed getter.
    Open source →
  17. 0.1.3 16 May 2018
    Release notes
    • 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
    Open source →
  18. 0.1.3+2 16 Jul 2018
    Release notes
    • Update Dart SDK constraint to < 3.0.0.
    Open source →
  19. 0.1.2 13 Jul 2017
    Release notes
    • Fix a bug in getSdkDir (#21)
    Open source →
  20. 0.1.2+1 19 Sep 2017
    Release notes
    • Remove unneeded change to Dart SDK constraint.
    Open source →
  21. 0.1.1 26 May 2017
    Release notes
    • Updated to the output for indeterminate progress
    • Exposed a Logger.isVerbose getter
    Open source →
  22. 0.1.0 17 May 2017
    Release notes
    • Added a new getSdkPath() method to get the location of the SDK (this uses the new Platform.resolvedExecutable API to locate the SDK)
    • Deprecated getSdkDir() in favor of getSdkPath()
    • Add the cli_logging.dart library - utilities to display output and progress
    Open source →
  23. 0.0.1 05 Feb 2015
    Release notes
    • Initial version
    Open source →
  24. 0.0.1+1 10 Feb 2015
    Release notes
    • Fix for when the dart executable can't be found by which.
    Open source →
  25. 0.0.1+2 19 May 2015
    Release notes
    • Support an executable in a symlinked directory.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive