Get Dart Version via Command Line

Dart is an open-source, general-purpose, object-oriented programming language developed and maintained by Google. Dart follows similar syntax of C-language and has many similarities with other languages like Java, Swift and C#.

Dart is the language behind Flutter, and the huge community of Flutter uses Dart to prepare mobile, desktop, web application.

Dart accepts options on command line and one such option provides version that is being used.

In this article, we use --version option to retrieve current version of Dart that is being used by your operating system, using the command line. This can be useful while developing or installing applications that require a specific version of Dart.

Get Dart Version with --version option

It display version of Dart supported by your system.


dart --version
Dart SDK version: 2.13.4 (stable)

About release channels and version strings

The Dart SDK has three release channels:

  • Stable channel: Stable releases are roughly done every three months and that are suitable for production use. While writing this article stable version of dart is 2.13.4.

  • Beta channel: Beta releases are done every month and are preview builds for the stable channel for future release. While writing this article beta version of dart is 2.14.0-301.2.beta.

  • Dev channel: Beta releases are done twice a week and provides latest changes, that might hold breaking changes. While writing this article dev version of dart is

As per the output of Dart 2.13.4, 2 is a major version, 13 is a minor version, and 4 is a patch version.

  • MAJOR: Dart has two major versions, Dart 1 & Dart 2. For example, 2.13.4, 2.1.0, and 2.4.0 are release of the Dart 2 major version.
  • MINOR: These releases includes new features and functions. Release such as 2.13.3, 2.13.2, and 2.13.4 are all part of the Dart 2.13 minor version.
  • Patch: The new patch release contain bug fixes and improvements.

Happy 😄 coding

With ❤️ from 🇮🇳

Vishnu Damwala
Vishnu Damwala

A web geek, an industry experienced web developer & tutor/instructor residing in India 🇮🇳