- System requirements
- Choose an installation option
- Install the Dart SDK
- Release channel reference
- Stable channel
- Beta channel
- Dev channel
This page describes how to download the Dart SDK. The Dart SDK includes the libraries and command-line tools that you need to develop Dart command-line, server, and web apps.
The Dart team supports only the latest stable release of the SDK. For full details on the SDK release lifecycle and supported versions, check out the SDK support policy.
To learn more about the Dart SDK, consult the Dart SDK overview.
System requirements
#
Dart supports the following hardware architectures and platform versions to develop and run Dart code.
Platform | x64 | IA32 (x86) | Arm32 | Arm64 | RISC-V (RV64GC) | OS Versions |
---|---|---|---|---|---|---|
Windows | verified | dangerous | dangerous | verified | do_not_disturb_on | 10, 11 |
Linux | verified | dangerous | verified | verified | verified | Debian stable, Ubuntu LTS under standard support |
macOS | verified | dangerous | do_not_disturb_on | verified | do_not_disturb_on | Latest three versions of macOS: Sonoma (14), Ventura (13), Monterey (12) |
verified Supported on all channels.
error Support is deprecated and might be dropped in a future Dart release.
report Support is deprecated and will likely be removed in the next stable release.
dangerous Unsupported on all channels.
do_not_disturb_on Unsupported by the operating system.
Choose an installation option
#
To install and update the Dart SDK from the stable channel, choose one of the following options:
-
Use a package manager (Recommended).
-
Use a Dart Docker image.
-
Install Flutter.
If you’ve installed or plan to install the Flutter SDK, it includes the full Dart SDK. The Flutter SDK includes thedart
CLI tool in Flutter’sbin
folder. -
Download a ZIP archive from the SDK Archive.
-
Build the SDK from source.
Install the Dart SDK
#
To install the Dart SDK, use the appropriate package manager for your development platform.
To upgrade the Dart SDK, run the same command to install the Dart SDK from your package manager.
- Windows
- Linux
- macOS
Install using Chocolatey
#
To install the Dart SDK, use Chocolatey. Chocolatey requires elevated permissions.
-
Install Chocolatey.
-
Launch PowerShell with elevated permissions.
PS C:\> choco install dart-sdk
Change default install path
#
By default, Chocolatey installs the SDK at C:\tools\dart-sdk
. To change that location, set the ChocolateyToolsLocation
environment variable to your desired installation directory.
Verify your PATH includes Dart
#
Verify you can run Dart.
PS C:\> dart --version
Dart SDK version: 3.2.4 (stable) (Thu Dec 21 19:13:53 2023 +0000) on "win_x64"
If your development machine doesn’t return a Dart version, add the SDK location to your PATH:
- In the Windows search box, type
env
. - Click Edit the system environment variables.
- Click Environment Variables….
- In the user variable section, select Path and click Edit….
- Click New, and enter the path to the
dart-sdk
directory. - In each window that you just opened, click Apply or OK to dismiss it and apply the path change.
Upgrade using Chocolatey
#
To upgrade the Dart SDK, use the following command.
PS C:\> choco upgrade dart-sdk
Uninstall using Chocolatey
#
To uninstall the Dart SDK, perform the following steps.
-
Launch PowerShell with elevated permissions.
-
Use the following command.
PS C:\> choco uninstall dart-sdk
-
Remove the Dart configuration files from your home directory.
PS C:\> Remove-Item -Recurse -Force ^ -Path $env:LOCALAPPDATA\.dartServer,$env:APPDATA\.dart,$env:APPDATA\.dart-tool
Install using a Linux package manager
#
You have two options to install the Dart SDK on Ubuntu or Debian:
- Use the apt-get command.
- Download a
.deb
package and run thedpkg
command.
Install using the apt-get
package manager
#
To install Dart with apt-get
, perform the following steps. You need steps 1 to 3 only for the first install.
-
Update the package index files and install the secure HTTP package.
sudo apt-get update && sudo apt-get install apt-transport-https
-
Download and add the Google Linux GPG public key.
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \ | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
-
Add the Dart package repository to your Linux system.
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' \ | sudo tee /etc/apt/sources.list.d/dart_stable.list
-
Use the following
sudo apt-get
commands.sudo apt-get update && sudo apt-get install dart
Install as a Debian package
#
To install the Dart SDK as a Debian package (*.deb
), perform the following steps.
-
Download the Dart SDK Debian package.
-
Use the
sudo dpkg
command to install the*.deb
package.sudo dpkg -i dart_3.4.0-1_amd64.deb
Substitute
dart_3.4.0-1_amd64.deb
with the current filename.
Upgrade the Dart SDK
#
Use the same command that you used to install the SDK.
Upgrade using apt-get
#
If you installed the Dart SDK with apt-get
, use the following sudo apt-get
commands.
sudo apt-get update && sudo apt-get install dart
Upgrade using dpkg
#
If you installed the Dart SDK with dpkg
, use the sudo dpkg
command.
sudo dpkg -i dart_3.2.6-1_amd64.deb
Substitute dart_3.4.0-1_amd64.deb
with the new upgrade’s filename.
Uninstall the Dart SDK
#
Uninstall using apt-get
#
If you installed the Dart SDK with apt-get
, use the sudo apt-get remove
command.
-
Use the
sudo apt-get remove
command.sudo apt-get remove -y dart
-
Remove the Dart configuration files from your home directory.
Uninstall using dpkg
#
If you installed the Dart SDK with dpkg
, use the sudo dpkg --purge
command.
-
Use the
sudo dpkg --purge
command.This removes the configuration files at the same time.
-
Verify the SDK has been removed.
Install using Homebrew
#
To install the Dart SDK, use Homebrew.
-
Install Homebrew if needed.
-
Add the official tap.
-
Install the Dart SDK.
Verify PATH includes Homebrew
#
Verify that your PATH
includes the Homebrew bin
directory. Setting up the correct path simplifies using Dart SDK commands such as dart run
and dart format
.
To get help configuring your PATH
, consult the Homebrew FAQ.
Upgrade using Homebrew
#
To upgrade when a new release of Dart is available:
Switch Dart versions
#
To switch between locally installed Dart releases:
-
Install the version to which you want to switch.
For example, to install Dart 3.1:
-
To switch between versions, unlink the current version and link the desired version.
brew unlink dart@<old> \ && brew unlink dart@<new> \ && brew link dart@<new>
List installed Dart versions
#
To see which versions of Dart you’ve installed:
Uninstall using Homebrew
#
To uninstall the Dart SDK, use Homebrew.
-
Uninstall the Dart SDK.
-
Remove the Dart configuration files from your home directory.
Release channel reference
#
Stable channel
#
Dart publishes a new release to the stable channel about every three months. The current stable version is [calculating]
.
Use stable channel releases for building and deploying production apps.
Stable channel release version strings follow a x.y.z
format:
x
: major versiony
: minor versionz
: patch version
Examples of stable channel version strings include 1.24.3
and 2.1.0
.
To install a stable channel release, follow the instructions on this page.
Beta channel
#
Dart publishes a new release to the beta channel about once a month. The current beta version is [calculating]
.
Use beta channel releases for testing your app’s compatibility with future stable versions.
Beta channel release version strings follow a x.y.z-a.b.beta
format:
x
: major versiony
: minor versionz
: patch versiona
: pre-release versionb
: pre-release patch version
Examples of beta channel version strings include 2.8.0-20.11.beta
and 3.3.0-205.1.beta
.
To install a beta channel release, download the SDK as a zip file.
Dev channel
#
Dart publishes a new release to the dev channel about twice a week. The current dev version is [calculating]
.
Use dev channel releases for testing recent fixes and experimental features.
Dev channel release version strings follow a x.y.z-a.b.dev
format:
x
: major versiony
: minor versionz
: patch versiona
: development versionb
: development patch version
Examples of dev channel version strings include 2.8.0-20.11.dev
and 3.2.12-15.33.dev
.
To install a dev channel release, download the SDK as a zip file.
Unless stated otherwise, the documentation on this site reflects Dart 3.7.3. Page last updated on 2025-03-03. View source or report an issue.
Last Updated :
21 Mar, 2025
To do a lot of interesting programming stuff using the Dart programming language, we have to install the Dart SDK. Dart SDK is a pre-compiled version so we have to download and extract it only.
In this article, we will learn how to perform Dart SDK Download.
Table of Content
- Install Dart SDK in Windows
- Install Dart in Linux
- Install Dart in MacOs
Install Dart SDK in Windows
Step 1 : Download Dart SDK
Download Dart SDK from the Dart SDK archive page.
Use this Link to Dart SDK Download
Click on DART SDK to download SDK for Windows 64-Bit Architecture. The download will start and a zip file will be downloaded.
Note: To download SDK for any other OS select OS of your choice.
Extract the contents of the downloaded zip file and after extracting the contents of the zip file will be as shown:
Step 3 : Running Dart.
Now open the bin folder and type “cmd” as given below:
Command Prompt will open with our desired path of bin folder and now type “dart“.
Now we are ready to use the dart through the bin folder but setting up the path in environment variables will ease our task of Step 3 and we can run the dart from anywhere in the file system using the command prompt.
Another Method to Install Dart SDK Installation in Windows
To install Dart in the window system we will be using Chocolatey.
Step 1 : To install Dart
C:\> choco install dart-sdk
Step 2 : To Update Dart
C:\> choco upgrade dart-sdk
Setting Path in Environment Variables
Setting up path in environment variables. Open Environment Variables from advanced system settings and add Path in System Variables as depicted in the image:
Now we are done to use Dart from anywhere in the file system.
Step 3 : Run Dart Using cmd
Install Dart in Linux
Terminal Commands are responsible for the Installation of Applications in Linux. So, there are some fixed set of commands which can be used to install. Let us check these types of commands which are mentioned below:
Step 1 : Update and Upgrade the apt
It is a prerequisite for installing any application. Commands to Upgrade and Update apt are mentioned below:
$ sudo apt-get update
$ sudo apt-get upgrade// Few older version will face issues while installtion so use
$ sudo apt-get install apt-transport-https
Step 2 : Create a Dart Repository and Install GPG keys from Google
Create a Repository to store Dart and also install gpg keys from Google used to sign the Dart packages to your system’s list of trusted keys.
$ sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
$ sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
Step 3 : Install Dart
The final Step will be to install Dart in your Linux operated PC.
$ sudo apt-get update
$ sudo apt-get install dart
Setting the Path of Dart in Linux
Setting Path of Dart in Linux to execute the Dart Programs.
// Dart to your Path
$ export PATH="$PATH:/usr/lib/dart/bin"// Apply Changes
$ source ~/.bashrc// This command should display the installed Dart SDK version
$ dart --version
Install Dart in MacOs
We will install Dart in macOS using Homebrew.
Step 1 : Install Homebrew
Install Homebrew, and then run the following commands.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2 : Install Dart
Install Dart by running the commands mentioned below.
$ brew tap dart-lang/dart
$ brew install dart
Step 3 : Upgrade the new release of Dart
To upgrade when a new release of Dart is available:
$ brew upgrade dart
Step 4 : Verify Dart Installation
$ dart --version
Note : Flutter developers have Dart bundled with the Flutter SDK, eliminating the need for a separate installation.
With Dart configured, developers can create high-performance applications across various platforms, utilizing its efficient syntax and strong ecosystem.
- Stable channel
- Beta channel
- Dev channel
- Main channel
- Download URLs
- Stable, beta, and dev channel URL scheme
- Main channel URL scheme
Use this archive to download
specific versions of the
Dart SDK
and the Dart API documentation.
Want to install Dart with your OS’s package manager?
Get Dart.
Stable channel
Stable channel builds are tested and approved for production use.
Version:
OS:
Version | OS | Architecture | Release date | Downloads |
---|---|---|---|---|
0.0.0 (rev 00000) | Windows | 64-width | 01/01/1970 | JSON-formatted API documentation |
Beta channel
Beta channel builds are preview builds for the stable channel.
We recommend testing, but not releasing, your apps against beta
to preview new features or test compatibility with future releases.
Beta channel builds are not suitable for production use.
Version:
OS:
Version | OS | Architecture | Release date | Downloads |
---|---|---|---|---|
0.0.0-0.0.beta (rev 00000) | Windows | 64-width | 01/01/1970 | JSON-formatted API documentation |
Dev channel
Dev channel builds can provide early access
to new features but might contain bugs.
Dev channel builds are not suitable for production use.
Version:
OS:
Version | OS | Architecture | Release date | Downloads |
---|---|---|---|---|
0.0.0-0.0.beta (rev 00000) | Windows | 64-width | 01/01/1970 | JSON-formatted API documentation |
Main channel
Main channel builds are the latest, raw builds from
the main
branch of the Dart SDK repository.
These are the freshest builds available,
and they’re likely to contain bugs.
Main channel builds are suitable only for
experimental development use, not for production use.
To download a main channel build, use a
main channel URL.
Download URLs
You can download zip files for any channel.
Stable, beta, and dev channel URL scheme
Stable, beta, and dev channel releases
are available at URLs like the following:
https://storage.googleapis.com/dart-archive/channels/<stable|beta|dev>/release/<version>/sdk/dartsdk-<platform>-<architecture>-release.zip
Examples:
https://storage.googleapis.com/dart-archive/channels/stable/release/2.7.2/sdk/dartsdk-windows-ia32-release.zip
https://storage.googleapis.com/dart-archive/channels/stable/release/2.1.1/sdk/dartsdk-macos-x64-release.zip
https://storage.googleapis.com/dart-archive/channels/beta/release/2.8.0-20.11.beta/sdk/dartsdk-linux-x64-release.zip
https://storage.googleapis.com/dart-archive/channels/dev/release/2.9.0-1.0.dev/sdk/dartsdk-linux-x64-release.zip
Main channel URL scheme
The latest main channel build
is available at URLs like the following:
https://storage.googleapis.com/dart-archive/channels/be/raw/latest/sdk/dartsdk-<platform>-<architecture>-release.zip
Example:
https://storage.googleapis.com/dart-archive/channels/be/raw/latest/sdk/dartsdk-windows-x64-release.zip
Install Dart on Windows
In this tutorial, we will provide a step by step process to get Dart installed on Windows.
Dart SDK comes as a pre-compiled version. So, download and extracting is all you need to do.
Step 1: Download Dart SDK
Go to Dart SDK archive page.
The URL is https://dart.dev/tools/sdk/archive.
Click on the Dart SDK link. The download will start immediately and a zip file will be downloaded.
Step 2: Extract zip file
Extract the contents of Dart SDK zip file. The contents of the folder would be as shown below.
Step 3: Run Dart
You can run Dart command. Yeah!
Open command prompt and navigate to the bin folder.
Run the command dart
.
Step 4: Add Dart Path to PATH Environment Variable
As of now, you can run dart command only from bin folder of dart sdk. To run dart command from anywhere in your file system, add dart bin path to PATH environment variable.
Open Environment Variables. Under System variables, click on Path and click Edit button.
Edit environment variable window appears. Click on New and paste the dart sdk bin path as shown below.
Click on OK. The changes will take effect if you restart your command prompt.
Step 5: Restart Command Prompt
Close the existing command prompt window and open a new command prompt.
Just run the dart
command from any working directory. We shall run from D:\
.
Conclusion
In this Dart Tutorial, we learned how to install Dart on Windows, to work with Dart programming.
Dart Installation
There are multiple ways to install a dart on your system. You can install Dart on Windows, Mac, and Linux or run it from the browser.
Requirements
- Dart SDK,
- VS code or other editors like Intellij [We will use VS Code here].
Dart Windows Installation
Follow the below instructions to install a dart on the windows operating system.
Steps:
- Download Dart SDK from here.
- Copy dart-sdk folder to your C drive.
- Add C:\dart-sdk\bin to your environment variable. Watch the video below to be more clear.
- Open the command prompt and type
dart --version
to check it. - Install VS Code and Add Dart Extension.
Dart Windows Installation [Video]
Info
Note: Dart SDK provides the tools to compile and run dart program.
Dart Mac Installation
- Install Homebrew From here.
- Type
brew tap dart-lang/dart
in the terminal. - Type
brew install dart
in the terminal. - If you have any issues installing the dart, watch the video below.
Homebrew Install Command
Copy and paste this command on your terminal to install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
To set the homebrew path, copy and paste this command on your terminal.
export PATH=/opt/homebrew/bin:$PATH
Dart Mac Installation [Video]
Dart Linux Installation
To install a dart on Linux, open your terminal and copy/paste the below commands.
sudo apt-get update
sudo apt-get install apt-transport-https
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
Then, install the dart using the below command.
sudo apt-get update
sudo apt-get install dart
To set the dart path, copy and paste this command on your terminal.
export PATH="$PATH:/usr/lib/dart/bin"
Check Dart Installation
Open your command prompt and type dart --version
. The dart is successfully installed on your system if it gives you a version code. If not, watch the video above.
Some Useful Commands
Command | Description |
---|---|
dart --help |
Show all available commands. |
dart filename.dart | Run the dart file. |
dart create | Create a dart project. |
dart fix | Update dart project to new syntax. |
dart compile exe bin/dart.dart | Compile dart code. |
dart compile js bin/dart.dart | Compile dart to javascript. You can run this file with Node.js. |
Run Dart On Web
You can run the dart program on your browser without installing any software. Dartpad is a web tool to write and run your dart code.
- Run Dart Programming on Web
Install Dart Official Link
- Install Dart Official Link
Can You Run Dart From Mobile?
Yes, you can use DartPad to run simple dart programs from your phone without installing any software. For bigger projects, using DartPad is not recommended.