PackageTrack
Sign in Get early access

dcli_core

A collection of functions that allow you to interact with the file system and OS environment from any platform that supports dart:io. Copy, move, delete files and directory trees, search for files, create temp files and directories.

10.0.0 77K downloads/mo #1241 most downloaded on pub.dev onepub-dev/dcli

What this package is like to depend on

Last release 3 days ago

21 Aug 2026

Ships fairly regularly

a new release about every 2 months

Some releases are documented

notes for 62 of 120 stable releases

4 versions withdrawn

withdrawn after publishing

5 years old

161 releases · first in 2021

10 releases in the last 12 months

see the full history below

Release timeline

161 releases · Nov 2021 to Aug 2026
2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 60 of 161
  1. 10.0.0 21 Aug 2026
    Release notes
    • fixed completion test.
    • fixed a time out in the compile test.
    • fixed lints after upgrade lint_hard.
    • we now restore the XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS env vars on linux when releasing sudo priviledges.
    • Upraded dependencies: lint_hard, cixrcular_buffer. Modifed stacktrace to stackTrace in dcli exception dervived exceptions for consistency.
    Open source →
  2. 9.0.2 05 Aug 2026
    Release notes
    • added the observe() method to NamedLock so you can see if a lock is being held and by who.
    Open source →
  3. 9.0.0 28 May 2026
    Release notes
    • Removed deprecated public APIs and deprecated entry-point libraries.
    • Raised Dart SDK lower bounds where required by dependency upgrades.
    • Upgraded win32 to 6.0.1 and dart_console to 5.x.
    • Removed the dcli_common publish_to override so packages publish to pub.dev.
    Open source →
  4. 8.4.2 28 Jan 2026
    Release notes
    • preping the 8.4.2 release.
    • removed the publish_to which was pushing it to onepub.
    • excluded logs.
    • unused.
    • restored overrides paths to relative
    • Fixed a bug in read that was mixing codecs.
    • updated templates to use latest version of dcli.
    • templates changed to use dcli rather than dart for #!
    • reverted the test scripts using #! dcli as it affects the output that the tests rely on.
    • replaced #! dart with dcli to take advantage of the faster startup.
    Open source →
  5. 8.4.1 27 Jan 2026
    Release notes
    • Change the script runner to use the --resident flag to improve startup times for dart scripts (from 5sec down to 1).
    • Fixed a bug where the -v flag wasn't actually enabling verbose logging.
    • moved flag class into its own file, verbose and help as well.
    Open source →
  6. 8.4.0 27 Jan 2026
    Release notes
    • no using the document_throws package to document all exceptions.
    • document all exceptions.
    • cleaned up some of the hand documented exceptions to fully utilise the @Throwing lints.
    • fixed formatting.
    • Added option includeParentEnvironment to start methods to resolve https://github.com/onepub-dev/dcli/issues/263.
    Open source →
  7. 8.3.0 01 Jan 2026
    Release notes
    • DCLi functions which execute process have assumed that data is ascii which is incorrect as most cli system utilise utf-8. This updates changes the default encoding to utf-8 and provides the ability to select the encoding. These changes should be backward compatible whilst fixing the output of programs that output mulit-byte utf-8 data. Functions like start() now take an 'encoding' parameter which is used if no Progress is passed to the method. If you pass in a Progress then the encoding of that Progress is used.
      • Added encoding-aware Progress classes.
    Open source →
  8. 8.0.0 17 Oct 2025
    Release notes
    • retracted 7.2 as it had a breaking api change (setVerbose is no sync).
    • This is a re-release of 7.2 with the correct version number reflecting that breaking change.
    Open source →
  9. 7.2.0 16 Oct 2025
    Release notes
    • Fixes #260 - thanks to @passy for the suggested fix.
    • moved exitCode read into a finally block to guarentee that we read the exit code as we have seen child processes go into a defunct state due the parent not reading the exit code.
    • terminal is no longer a required arg, it sets to false by default.
    • reverted the use of TokenEvaluation from win32 as not all 5.x version of win32 have the replacement TokenEvaluation.
    • Fixed a bug in the RunnableProcess.run method which was failing to throw a RunException if the exit code was non-zero and nothrow was false.
    • upgraded to lint_hard 6.x
    Open source →
  10. 7.1.0 26 Sep 2025

    Nothing published for this version

  11. 7.0.3 07 Jun 2025
    Release notes
    • updated the pubspec description to better describe the packages funtionality.
    Open source →
  12. 7.0.2 05 Mar 2025
    Release notes
    • updated to code to conform to the lates lint_hard lints. Work on the 'pack' command to ensure it generates code that conforms with the latest lint rules.
    • changed the ask call to readlineSync to use the newer utf8 global var.
    Open source →
  13. 7.0.1 14 Feb 2025
    Release notes
    • Merge pull request #255 from davidmartos96/archive_v4 - thanks for the patch
    • Support archive v4
    Open source →
  14. 7.0.0 12 Feb 2025
    Release notes
    • BREAKING: copyTree now copies empty directories and symlinks. To get the original behaviour pass in 'includeEmpty: false' and 'includeLinks: false'.
    • deprecated symlink in favour of createSymLink
    Open source →
  15. 6.1.2 26 Jan 2025
    Release notes
    • 6.1.1. released failed so here we are again.
    Open source →
  16. 6.1.1 26 Jan 2025
    Release notes
    • Added new method withPrivilegesAsync
    • forced native_synchronisation to 0.7.1
    • Fixed bug on windows which resulted in the projectRootPath being /C:/
    Open source →
  17. 6.1.0 19 Oct 2024
    Release notes
    • upgraded to archive 3.6.1 to overcome dart 3.5 compatibility issue.
    • upgraded all packaages to scope 5.x
    • upgraded to native_syncronization_temp 0.7.1 to fix macos and windows compatiability issues.
    Open source →
  18. 6.0.3 15 Aug 2024
    Release notes
    • upgraded to archive 3.6.1 to overcome dart 3.5 compatibility issue. upgraded all packaages to scope 5.x upgraded all packages to lint_hard 5.x
    • lint fix.
    Open source →
  19. 6.0.0 08 Aug 2024
    Release notes
    • Breaking The AskValidator now takes an additional argument 'customErrorMessage'. This will only affect users that have built custom ask validators. change String validate(String line) to String validate(String line, {String? customErrorMessage}) and then return the customErrorMessage rather than you usual error message if the customErrorMessage is not null. When outputing an error from you validator you should use customErrorMessage??'my original error' Thanks to Emad Beltaje for the contribution!

    • Upgraded to win32 v5 to fix an issue with a deprecated api for dart 3.5.

    Open source →
  20. 5.0.0 31 Jul 2024
    Release notes
    • Breaking -- Removed a number of the withXX sync functions in favour of withXXAsync as the sync versions were dangerous as it was too easy to make async calls within the callback and then the withXXX method would return before the callback completed.

    We have left stub methods for the old withXXX form that are marked as deprecated and will throw an UnsupportedError if you call them.

    -- withTempDir replaced by withTempDirAsync -- withTempFile replaced by withTempFileAsync -- withFileProtection replaced by withFileProtectionAsync

    • Removed a number of redundant methods from the dcli package that were just pass throughs to the dcli_core package. As the dcli barrel file now exports the dcli_core functions for these methods there should be no noticiable difference in the API.

    • Added new method PubCache::pathToGlobalPackage

    • Fixed a bug in NamedLock which was causing a dead lock if the an existing lock file was found but the owning process was no longer runnimg.

    • upgraded to settings_yaml 8.2.0

    • removed the DCLIFunction wrapper for a number of functions as it serves no purpose.

    • removed move_tree as it was just a wrapper for dcli_core method of the same name.

    • moved the move and moveDir wrapper functions and exposed the dcli_core versions.

    • replaced all occurances of withTempFile with withTempFileAsync

    • move to using native_sychronisation_temp until the official release.

    Open source →
  21. 4.0.7 16 Jul 2024
    Release notes
    • change the stream type to Stream<FindItem> for the findAsync method to match how find returns files.
    Open source →
  22. 4.0.6 16 Jul 2024
    Release notes
    • Added findAsync to the public api.
    Open source →
  23. 4.0.5 16 Jul 2024
    Release notes
    • and found and fixed additional null check exceptions.
    Open source →
  24. 4.0.4 16 Jul 2024
    Release notes
    • Fixed a null check operator in the find function.
    Open source →
  25. 4.0.3 03 Jul 2024
    Release notes
    • fix ProgressMixin.firstLine throwing if there are no lines - contributed by @sstasi95
    Open source →
  26. 4.0.2 23 Jun 2024
    Release notes
    • removed overridden dep.
    • Added a sync test for exitCode.
    • temporary cleanup of the withLock methods until we get a real fix for the runtime lock package.
    • update version.
    • turned off debugging, cleaned old code.
    • removed old startIsolate and renamed startIsoalte2 to startIsolate.
    Open source →
  27. 4.0.1-beta.4 13 Apr 2024 pre-release
    Release notes
    • added back in the missing nothrow arg to start method.
    • Fixed running of detached processes. We were trying to get the exit code which would never work.
    • Added some missing async statements when using named locks. Fixed a bug in dart_project when running in a unit test. It was getting the platformComfig which was a uri of the form file:// but then trying to process it as a simple path.
    • moved message_response to its own file. Added a processor for exceptions as we were dumping exceptions generated in the isolate on the ground. Fixed a bug when we call start in with mode terminal. We were still trying to attach to the stdio stream when the don't actually exist. The same goes for detached. added json encoding to DCliException and RunException so we can pass them over the isolate boundary via a mailbox.
    • changed namedLock to async until tsavoc has a chance to merge in his sync version. We may need a sync and async version to allow for async callbacks.
    • still no action on async validation methods for 'ask'.

    Most unit tests are now working and most of the common process execution paths appear to be working.

    Open source →
  28. 4.0.1-beta.2 07 Apr 2024 pre-release
    Release notes
    • upgraded to the latest version of dart_console.
    • migrated back to dart_console as I'm now the maintainer.
    • down graded max win32 version to 5.3 to avoid deprecation notices.
    • renabled support for terminal mode on the start command. Still needs more testing.
    • minor code refactor.
    • Reverted the use of win32 to constansts deprecated from 5.4.0 to improve our compatability window.
    Open source →
  29. 4.0.1-beta.1 05 Apr 2024 pre-release
    Release notes

    Breaking

    • fetch/fetchMulti are now async.

    Still a chunk more to do but the core 'good' paths seem to be mostly working when running processes. Optimistically this will get most people over the hump whilst we clean up the few remaining problems.

    There are still some concerns around running a process in 'terminal' or 'detached' mode and I've not done any testing (and there is a path missing) of getting stdin attached to the process. This is probably the remaining 'big' issue but I think I can see a path through this.

    Take it for a spin and let us know how you go. I will try to priorities the issues that are burning people the most.

    Open source →
  30. 4.0.1-alpha.11 21 Mar 2024 pre-release
    Release notes
    • merged #234 from tsavo-at-pieces which provides windows support for synchronous process calls. Big thanks for the work on this Tsavo!!!
    • migrated away from custom implementation of mailboxes to the native_synchronization package. Big thanks to @mraleph for his massive contributions and trial conversion of dcli to dart 3.x which most of my work is based off.
    Open source →
  31. 4.0.1-alpha.10 21 Mar 2024 pre-release

    Nothing published for this version

  32. 4.0.1-alpha.9 20 Feb 2024 pre-release
    Release notes
    • added method withEnvironment - this may be problematic as it easy to use with an async callback which will end in tears.
    Open source →
  33. 4.0.1-alpha.8 20 Feb 2024 pre-release
    Release notes
    • fixed the sdk range for dcli_common
    • switch to activating dcli_sdk instead of dcli.
    Open source →
  34. 4.0.1-alpha.7 19 Feb 2024 pre-release
    Release notes
    • upgrade settings_yaml version.
    Open source →
  35. 4.0.1-alpha.6 19 Feb 2024 pre-release
    Release notes
    • failed released - so did it again
    Open source →
  36. 4.0.1-alpha.5 19 Feb 2024 pre-release
    Release notes
    • upgraded to latest version of pubspec_manager.
    • removed conflict for Platform definition.
    • Added support ot the Ask function to validate urls.
    • Fixed a null check in the new inDocker method.
    • updated the DockerShell to use /proc/1/cgroup to determine if we are in a docker container as the test for .dockerenv no longer
    Open source →
  37. 4.0.1-alpha.4 19 Feb 2024 pre-release

    Nothing published for this version

  38. 4.0.1-alpha.3 13 Jan 2024 pre-release
    Release notes
    • Fixed the move function as well. It now also falls back to copy/delete on any error.
    • added new projects to the replease process.
    Open source →
  39. 4.0.1-alpha.2 12 Jan 2024 pre-release
    Release notes
    • changed moveDir to fail back to copy/delete when ever the rename fails as it looks like there may be additional failure paths that we don't currently deal with.
    • Fixed a bug in chown. The doco says it will recursively change all permissions. However it was only changing the permission on files. We now change the permission on directories and links as well as files.
    • added missing export for Flag.
    • fixed for DartProject.self. When a script is run from pub-cache it was returning pub-cache as the project directory rather than the project in the cwd.
    • Fixed for process helper when the process name includes a colon.
    • Fixed a bug in the Terminal class where the 'column' method was ignoring the passed column.
    • split the sdk tooling into its own project. Initial merge of Vyacheslav Egorov on removing waitFor.
    • Began the process of removing calls to the deprecated waitFor. This will be a bit of a drawn out process due to my limited time.
    • migrated from pubspec2 to pubspec_manager.
    • Fixed a bug in privatePath when HOME was equal to just '.'. It was casing the replace to remove '.'' from the path.
    Open source →
  40. 4.0.0 14 May 2024
    Release notes
    • BREAKING - Moved a number of functions from being async to sync as part of the process of removing waitFor in the main dcli library. These changes largely affect the dcli_core library so if you don't use it directly you shouldn't see any affects. This was done by usimg the available dart sync version of functions where available (e.g. close() becomes closeSync()). Most of these changes should be evident at compile time and should just require to remove 'await' from calls to methods which are now sync.
    Open source →
  41. 4.0.0-alpha-1 24 Oct 2023 pre-release

    Nothing published for this version

  42. 3.4.0 26 Mar 2024

    Nothing published for this version

  43. 3.3.6 27 Feb 2024

    Nothing published for this version

  44. 3.3.5 05 Feb 2024

    Nothing published for this version

  45. 3.3.4 05 Feb 2024

    Nothing published for this version

  46. 3.3.3 05 Feb 2024

    Nothing published for this version

  47. 3.3.2 14 Jan 2024

    Nothing published for this version

  48. 3.3.1 13 Jan 2024

    Nothing published for this version

  49. 3.3.0 13 Jan 2024

    Nothing published for this version

  50. 3.2.8 13 Jan 2024

    Nothing published for this version

  51. 3.2.7 13 Jan 2024

    Nothing published for this version

  52. 3.2.6 13 Jan 2024

    Nothing published for this version

  53. 3.2.5 12 Jan 2024

    Nothing published for this version

  54. 3.2.4 04 Jan 2024

    Nothing published for this version

  55. 3.2.3 16 Dec 2023

    Nothing published for this version

  56. 3.2.2 10 Dec 2023

    Nothing published for this version

  57. 3.2.1 14 Nov 2023

    Nothing published for this version

  58. 3.2.0 04 Nov 2023

    Nothing published for this version

  59. 3.2.0-alpha.3 25 Oct 2023 pre-release

    Nothing published for this version

  60. 3.2.0-alpha.2 25 Oct 2023 pre-release

    Nothing published for this version

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