CINXE.COM

Get the Dart SDK | Dart

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-5VSZM5J",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><meta name="description" content="Get the libraries and command-line tools that you need to develop Dart web, command-line, and server apps."><title>Get the Dart SDK | Dart</title><link rel="icon" sizes="64x64" href="/assets/img/logo/dart-64.png" eleventy:ignore><link href="/assets/img/touch-icon-iphone.png" rel="apple-touch-icon" eleventy:ignore><link href="/assets/img/touch-icon-ipad.png" rel="apple-touch-icon" sizes="152x152" eleventy:ignore><link href="/assets/img/touch-icon-iphone-retina.png" rel="apple-touch-icon" sizes="180x180" eleventy:ignore><link href="/assets/img/touch-icon-ipad-retina.png" rel="apple-touch-icon" sizes="167x167" eleventy:ignore><meta name="twitter:card" content="summary"><meta name="twitter:site" content="@dart_lang"><meta name="twitter:title" content="Get the Dart SDK"><meta name="twitter:description" content="Get the libraries and command-line tools that you need to develop Dart web, command-line, and server apps."><meta property="og:title" content="Get the Dart SDK"><meta property="og:description" content="Get the libraries and command-line tools that you need to develop Dart web, command-line, and server apps."><meta property="og:url" content="/get-dart/"><meta property="og:image" content="/assets/img/logo/dart-logo-for-shares.png?2" eleventy:ignore><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Google+Sans+Display:wght@400&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Google+Sans+Mono:wght@400;500;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400;500;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0..1,0" rel="stylesheet"><link rel="stylesheet" href="/assets/css/main.css?v=2"><script src="/assets/js/os-tabs.js?v=2"></script><script src="/assets/js/main.js?v=2"></script><script defer="defer" src="/assets/js/get-dart/install.js"></script><script>!function(e,a,t,n,c,o,s){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,o=a.createElement(t),s=a.getElementsByTagName(t)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(o,s)}(window,document,"script",0,"ga"),ga("create","UA-26406144-4","auto"),ga("send","pageview")</script></head><body class="default.html"><a id="skip" href="#site-content-title" tabindex="1">Skip to main content</a><section id="cookie-notice"><div class="container"><p>dart.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.</p><div class="button-group"><a class="text-button" href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">Learn more</a> <button id="cookie-consent" class="filled-button">OK, got it</button></div></div></section><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5VSZM5J" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="site-banner" role="alert"><p>Announcing Dart 3.7! Find out about updates to the language, analyzer, pub.dev, and more, in the <a href="https://medium.com/dartlang/announcing-dart-3-7-bf864a1b195c" target="_blank">blog post</a>.</p></div><header id="page-header" class="site-header"><nav id="mainnav" class="site-header"><div id="menu-toggle"><span class="material-symbols" title="Toggle side navigation menu." aria-label="Toggle side navigation menu." type="button">menu</span></div><a href="/" class="brand" title="Dart"><img src="/assets/img/logo/logo-white-text.svg" alt="Dart"></a><ul class="navbar"><li><a href="/overview" class="nav-link">Overview</a></li><li class="mainnav__get-started"><a href="/docs" class="nav-link"><span>Docs</span></a></li><li><a href="/community" class="nav-link">Community</a></li><li><a href="/#try-dart" class="nav-link">Try Dart</a></li><li><a href="/get-dart" class="nav-link active">Get Dart</a></li><li class="searchfield"><form action="/search" class="site-header__search form-inline" id="cse-search-box"><input type="hidden" name="cx" value="011220921317074318178:_yy-tmb5t_i"> <input type="hidden" name="ie" value="UTF-8"> <input type="hidden" name="hl" value="en"> <input class="site-header__searchfield form-control search-field" type="search" name="q" id="search-main" autocomplete="off" placeholder="Search" aria-label="Search"></form></li></ul></nav></header><div id="site-below-header"><div id="site-main-row"><div id="sidenav"><form action="/search/" class="site-header__search form-inline"><input class="site-header__searchfield form-control search-field" type="search" name="q" id="search-side" autocomplete="off" placeholder="Search" aria-label="Search"></form><ul class="navbar-nav"><li aria-hidden="true"><div class="sidenav-divider"></div></li><li class="nav-item"><a href="/overview" class="nav-link">Overview</a></li><li class="nav-item"><a href="/community" class="nav-link">Community</a></li><li class="nav-item"><a href="https://dartpad.dev" class="nav-link">Try Dart</a></li><li class="nav-item"><a href="/get-dart" class="nav-link">Get Dart</a></li><li class="nav-item"><a href="/docs" class="nav-link">Docs</a></li><li aria-hidden="true"><div class="sidenav-divider"></div></li></ul><ul class="nav"><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-1" role="button" aria-expanded="false" aria-controls="-sidenav-1"><span>Language</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1"><li class="nav-item"><a class="nav-link" href="/language"><div><span>Introduction</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-2" role="button" aria-expanded="false" aria-controls="-sidenav-1-2"><span>Syntax basics</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-2"><li class="nav-item"><a class="nav-link" href="/language/variables"><div><span>Variables</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/operators"><div><span>Operators</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/comments"><div><span>Comments</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/metadata"><div><span>Metadata</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/libraries"><div><span>Libraries & imports</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/keywords"><div><span>Keywords</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-3" role="button" aria-expanded="false" aria-controls="-sidenav-1-3"><span>Types</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-3"><li class="nav-item"><a class="nav-link" href="/language/built-in-types"><div><span>Built-in types</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/records"><div><span>Records</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/collections"><div><span>Collections</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/generics"><div><span>Generics</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/typedefs"><div><span>Typedefs</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/type-system"><div><span>Type system</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-4" role="button" aria-expanded="false" aria-controls="-sidenav-1-4"><span>Patterns</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-4"><li class="nav-item"><a class="nav-link" href="/language/patterns"><div><span>Overview & usage</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/pattern-types"><div><span>Pattern types</span></div></a></li><li class="nav-item"><a class="nav-link" href="https://codelabs.developers.google.com/codelabs/dart-patterns-records" target="_blank" rel="noopener"><div><span>Applied tutorial</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li></ul></li><li class="nav-item"><a class="nav-link" href="/language/functions"><div><span>Functions</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-6" role="button" aria-expanded="false" aria-controls="-sidenav-1-6"><span>Control flow</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-6"><li class="nav-item"><a class="nav-link" href="/language/loops"><div><span>Loops</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/branches"><div><span>Branches</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/error-handling"><div><span>Error handling</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-7" role="button" aria-expanded="false" aria-controls="-sidenav-1-7"><span>Classes & objects</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-7"><li class="nav-item"><a class="nav-link" href="/language/classes"><div><span>Classes</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/constructors"><div><span>Constructors</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/methods"><div><span>Methods</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/extend"><div><span>Extend a class</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/mixins"><div><span>Mixins</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/enums"><div><span>Enums</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/extension-methods"><div><span>Extension methods</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/extension-types"><div><span>Extension types</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/callable-objects"><div><span>Callable objects</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-8" role="button" aria-expanded="false" aria-controls="-sidenav-1-8"><span>Class modifiers</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-8"><li class="nav-item"><a class="nav-link" href="/language/class-modifiers"><div><span>Overview & usage</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/class-modifiers-for-apis"><div><span>Class modifiers for API maintainers</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/modifier-reference"><div><span>Reference</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-9" role="button" aria-expanded="false" aria-controls="-sidenav-1-9"><span>Concurrency</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-9"><li class="nav-item"><a class="nav-link" href="/language/concurrency"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/async"><div><span>Asynchronous support</span></div></a></li><li class="nav-item"><a class="nav-link" href="/language/isolates"><div><span>Isolates</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-1-10" role="button" aria-expanded="false" aria-controls="-sidenav-1-10"><span>Null safety</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-1-10"><li class="nav-item"><a class="nav-link" href="/null-safety"><div><span>Sound null safety</span></div></a></li><li class="nav-item"><a class="nav-link" href="/null-safety/migration-guide"><div><span>Migrating to null safety</span></div></a></li><li class="nav-item"><a class="nav-link" href="/null-safety/understanding-null-safety"><div><span>Understanding null safety</span></div></a></li><li class="nav-item"><a class="nav-link" href="/null-safety/unsound-null-safety"><div><span>Unsound null safety</span></div></a></li><li class="nav-item"><a class="nav-link" href="/null-safety/faq"><div><span>FAQ</span></div></a></li></ul></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-2" role="button" aria-expanded="false" aria-controls="-sidenav-2"><span>Core libraries</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-2"><li class="nav-item"><a class="nav-link" href="/libraries"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/dart-core"><div><span>dart:core</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/dart-async"><div><span>dart:async</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/dart-math"><div><span>dart:math</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/dart-convert"><div><span>dart:convert</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/dart-io"><div><span>dart:io</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/js-interop"><div><span>dart:js_interop</span></div></a></li><div class="sidenav-divider"></div><li class="nav-item"><a class="nav-link" href="/libraries/collections/iterables"><div><span>Iterable collections</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-2-10" role="button" aria-expanded="false" aria-controls="-sidenav-2-10"><span>Asynchronous programming</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-2-10"><li class="nav-item"><a class="nav-link" href="/libraries/async/async-await"><div><span>Tutorial</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/async/futures-error-handling"><div><span>Futures and error handling</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/async/using-streams"><div><span>Using streams</span></div></a></li><li class="nav-item"><a class="nav-link" href="/libraries/async/creating-streams"><div><span>Creating streams</span></div></a></li></ul></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-3" role="button" aria-expanded="false" aria-controls="-sidenav-3"><span>Effective Dart</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-3"><li class="nav-item"><a class="nav-link" href="/effective-dart"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/effective-dart/style"><div><span>Style</span></div></a></li><li class="nav-item"><a class="nav-link" href="/effective-dart/documentation"><div><span>Documentation</span></div></a></li><li class="nav-item"><a class="nav-link" href="/effective-dart/usage"><div><span>Usage</span></div></a></li><li class="nav-item"><a class="nav-link" href="/effective-dart/design"><div><span>Design</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-4" role="button" aria-expanded="false" aria-controls="-sidenav-4"><span>Packages</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-4"><li class="nav-item"><a class="nav-link" href="/tools/pub/packages"><div><span>How to use packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/useful-packages"><div><span>Commonly used packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/create-packages"><div><span>Creating packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/publishing"><div><span>Publishing packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/writing-package-pages"><div><span>Writing package pages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/workspaces"><div><span>Workspaces (monorepo support)</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-4-7" role="button" aria-expanded="false" aria-controls="-sidenav-4-7"><span>Package reference</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-4-7"><li class="nav-item"><a class="nav-link" href="/tools/pub/dependencies"><div><span>Dependencies</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/glossary"><div><span>Glossary</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/package-layout"><div><span>Package layout conventions</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/environment-variables"><div><span>Pub environment variables</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/pubspec"><div><span>Pubspec file</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/troubleshoot"><div><span>Troubleshooting pub</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/verified-publishers"><div><span>Verified publishers</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/security-advisories"><div><span>Security advisories</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/versioning"><div><span>Versioning</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/custom-package-repositories"><div><span>Custom package repositories</span></div></a></li></ul></li><li class="nav-item"><a class="nav-link" href="/tools/pub/private-files"><div><span>What not to commit</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-5" role="button" aria-expanded="false" aria-controls="-sidenav-5"><span>Development</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-5"><li class="nav-item"><a class="nav-link" href="/libraries/serialization/json"><div><span>JSON serialization</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/language/number-representation"><div><span>Number representation</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/google-apis"><div><span>Google APIs</span></div></a></li><li class="nav-item"><a class="nav-link" href="/multiplatform-apps"><div><span>Multi-platform apps</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-5-5" role="button" aria-expanded="false" aria-controls="-sidenav-5-5"><span>Command-line & server apps</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-5-5"><li class="nav-item"><a class="nav-link" href="/server"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tutorials/server/get-started"><div><span>Get started</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tutorials/server/cmdline"><div><span>Write command-line apps</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tutorials/server/fetch-data"><div><span>Fetch data from the internet</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tutorials/server/httpserver"><div><span>Write HTTP servers</span></div></a></li><li class="nav-item"><a class="nav-link" href="/server/libraries"><div><span>Libraries & packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/server/google-cloud"><div><span>Google Cloud</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-5-6" role="button" aria-expanded="false" aria-controls="-sidenav-5-6"><span>Web apps</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-5-6"><li class="nav-item"><a class="nav-link" href="/web"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/web/get-started"><div><span>Get started</span></div></a></li><li class="nav-item"><a class="nav-link" href="/web/deployment"><div><span>Deployment</span></div></a></li><li class="nav-item"><a class="nav-link" href="/web/libraries"><div><span>Libraries & packages</span></div></a></li><li class="nav-item"><a class="nav-link" href="/web/wasm"><div><span>Wasm compilation</span></div></a></li></ul></li><li class="nav-item"><a class="nav-link" href="/libraries/core/environment-declarations"><div><span>Environment declarations</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-6" role="button" aria-expanded="false" aria-controls="-sidenav-6"><span>Interoperability</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-6"><li class="nav-item"><a class="nav-link" href="/interop/c-interop"><div><span>C interop</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/objective-c-interop"><div><span>Objective-C & Swift interop</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/java-interop"><div><span>Java & Kotlin interop</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-6-4" role="button" aria-expanded="false" aria-controls="-sidenav-6-4"><span>JavaScript interop</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-6-4"><li class="nav-item"><a class="nav-link" href="/interop/js-interop"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/js-interop/usage"><div><span>Usage</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/js-interop/js-types"><div><span>JS types</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/js-interop/tutorials"><div><span>Tutorials</span></div></a></li><li class="nav-item"><a class="nav-link" href="/interop/js-interop/past-js-interop"><div><span>Past JS interop</span></div></a></li><div class="sidenav-divider"></div><li class="nav-item"><a class="nav-link" href="/interop/js-interop/package-web"><div><span>Web interop</span></div></a></li></ul></li></ul></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-7" role="button" aria-expanded="false" aria-controls="-sidenav-7"><span>Tools & techniques</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7"><li class="nav-item"><a class="nav-link" href="/tools"><div><span>Overview</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-7-2" role="button" aria-expanded="false" aria-controls="-sidenav-7-2"><span>Editors & debuggers</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7-2"><li class="nav-item"><a class="nav-link" href="/tools/jetbrains-plugin"><div><span>IntelliJ & Android Studio</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/vs-code"><div><span>VS Code</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-devtools"><div><span>Dart DevTools</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-7-2-4" role="button" aria-expanded="false" aria-controls="-sidenav-7-2-4"><span>DartPad</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7-2-4"><li class="nav-item"><a class="nav-link" href="/tools/dartpad"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dartpad/troubleshoot"><div><span>Troubleshooting DartPad</span></div></a></li></ul></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-7-3" role="button" aria-expanded="false" aria-controls="-sidenav-7-3"><span>Command-line tools</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7-3"><li class="nav-item"><button class="nav-link collapsible" data-toggle="collapse" data-target="#-sidenav-7-3-1" role="button" aria-expanded="true" aria-controls="-sidenav-7-3-1"><span>Dart SDK</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse show" id="-sidenav-7-3-1"><li class="nav-item"><a class="nav-link" href="/tools/sdk"><div><span>Overview</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-tool"><div><span>dart</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-analyze"><div><span>dart analyze</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-compile"><div><span>dart compile</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-create"><div><span>dart create</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-doc"><div><span>dart doc</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-fix"><div><span>dart fix</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-format"><div><span>dart format</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-info"><div><span>dart info</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/pub/cmd"><div><span>dart pub</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-run"><div><span>dart run</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dart-test"><div><span>dart test</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/dartaotruntime"><div><span>dartaotruntime</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/experiment-flags"><div><span>Experiment flags</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible" data-toggle="collapse" data-target="#-sidenav-7-3-2" role="button" aria-expanded="true" aria-controls="-sidenav-7-3-2"><span>Other command-line tools</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse show" id="-sidenav-7-3-2"><li class="nav-item"><a class="nav-link" href="/tools/build_runner"><div><span>build_runner</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/webdev"><div><span>webdev</span></div></a></li></ul></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-7-4" role="button" aria-expanded="false" aria-controls="-sidenav-7-4"><span>Static analysis</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7-4"><li class="nav-item"><a class="nav-link" href="/tools/analysis"><div><span>Customizing static analysis</span></div></a></li><li class="nav-item"><a class="nav-link" href="/deprecated/sound-problems"><div><span>Fixing common type problems</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/non-promotion-reasons"><div><span>Fixing type promotion failures</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/linter-rules"><div><span>Linter rules</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tools/diagnostic-messages"><div><span>Diagnostic messages</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-7-5" role="button" aria-expanded="false" aria-controls="-sidenav-7-5"><span>Testing & optimization</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-7-5"><li class="nav-item"><a class="nav-link" href="/tools/testing"><div><span>Testing</span></div></a></li><li class="nav-item"><a class="nav-link" href="/web/debugging"><div><span>Debugging web apps</span></div></a></li></ul></li></ul></li><li aria-hidden="true"><div class="sidenav-divider"></div></li><li class="nav-item"><button class="nav-link collapsed collapsible" data-toggle="collapse" data-target="#-sidenav-9" role="button" aria-expanded="false" aria-controls="-sidenav-9"><span>Resources</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-9"><li class="nav-item"><a class="nav-link" href="/resources/dart-cheatsheet"><div><span>Language cheatsheet</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/breaking-changes"><div><span>Breaking changes</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/language/evolution"><div><span>Language evolution</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/language/spec"><div><span>Language specification</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/dart-3-migration"><div><span>Dart 3 migration guide</span></div></a></li><li class="nav-item"><button class="nav-link collapsible collapsed" data-toggle="collapse" data-target="#-sidenav-9-6" role="button" aria-expanded="false" aria-controls="-sidenav-9-6"><span>Coming from ...</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse" id="-sidenav-9-6"><li class="nav-item"><a class="nav-link" href="/resources/coming-from/js-to-dart"><div><span>JavaScript to Dart</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/coming-from/swift-to-dart"><div><span>Swift to Dart</span></div></a></li></ul></li><div class="sidenav-divider"></div><li class="nav-item"><a class="nav-link" href="/resources/faq"><div><span>FAQ</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/glossary"><div><span>Glossary</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/books"><div><span>Books</span></div></a></li><li class="nav-item"><a class="nav-link" href="/resources/videos"><div><span>Videos</span></div></a></li><li class="nav-item"><a class="nav-link" href="/tutorials"><div><span>Tutorials</span></div></a></li></ul></li><li class="nav-item"><button class="nav-link collapsible" data-toggle="collapse" data-target="#-sidenav-10" role="button" aria-expanded="true" aria-controls="-sidenav-10"><span>Related sites</span> <span class="material-symbols expander" aria-hidden="true">expand_more</span></button><ul class="nav collapse show" id="-sidenav-10"><li class="nav-item"><a class="nav-link" href="https://api.dart.dev" target="_blank" rel="noopener"><div><span>API reference</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li><li class="nav-item"><a class="nav-link" href="https://medium.com/dartlang" target="_blank" rel="noopener"><div><span>Blog</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li><li class="nav-item"><a class="nav-link" href="https://dartpad.dev" target="_blank" rel="noopener"><div><span>DartPad (online editor)</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li><li class="nav-item"><a class="nav-link" href="https://flutter.dev" target="_blank" rel="noopener"><div><span>Flutter</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li><li class="nav-item"><a class="nav-link" href="https://pub.dev" target="_blank" rel="noopener"><div><span>Package site</span><span class="material-symbols" aria-hidden="true">open_in_new</span></div></a></li></ul></li></ul></div><main id="page-content"><div id="site-toc--side" class="site-toc"><header class="site-toc__title">Contents</header><ul class="section-nav"><li class="toc-entry nav-item"><a class="nav-link" href="#system-requirements">System requirements</a></li><li class="toc-entry nav-item"><a class="nav-link" href="#choose-an-installation-option">Choose an installation option</a></li><li class="toc-entry nav-item"><a class="nav-link" href="#install">Install the Dart SDK</a></li><li class="toc-entry nav-item"><a class="nav-link" href="#release-channels">Release channel reference</a><ul class="nav"><li class="toc-entry nav-item"><a class="nav-link" href="#stable-channel">Stable channel</a></li><li class="toc-entry nav-item"><a class="nav-link" href="#beta-channel">Beta channel</a></li><li class="toc-entry nav-item"><a class="nav-link" href="#dev-channel">Dev channel</a></li></ul></li></ul></div><article><div class="content"><div id="site-content-title"><h1>Get the Dart SDK</h1></div><div id="site-toc--inline" class="site-toc"><header class="site-toc__title">Contents</header><ul class="section-nav"><li class="toc-entry"><a href="#system-requirements">System requirements</a></li><li class="toc-entry"><a href="#choose-an-installation-option">Choose an installation option</a></li><li class="toc-entry"><a href="#install">Install the Dart SDK</a></li><li class="toc-entry"><a href="#release-channels">Release channel reference</a><ul><li class="toc-entry"><a href="#stable-channel">Stable channel</a></li><li class="toc-entry"><a href="#beta-channel">Beta channel</a></li><li class="toc-entry"><a href="#dev-channel">Dev channel</a></li></ul></li></ul></div><p>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.</p><p>To learn more about the Dart SDK, consult the <a href="/tools/sdk">Dart SDK overview</a>.</p><aside class="alert alert-success"><div class="alert-header"><span class="material-symbols" aria-hidden="true">lightbulb</span> <span>Tip</span></div><div class="alert-content"><p>If you've installed or plan to <a href="https://docs.flutter.dev/get-started/install">install the Flutter SDK</a>, it includes the full Dart SDK. You don't need to install Dart separately and can skip this guide.</p></div></aside><div class="header-wrapper"><h2 id="system-requirements">System requirements</h2><a class="heading-link" href="#system-requirements" aria-label="Link to 'System requirements' section">#</a></div><p>Dart supports the following hardware architectures and platform versions to develop and run Dart code.</p><div class="table-wrapper"><table class="table table-striped"><thead><tr><th>Platform</th><th style="text-align:center">x64</th><th style="text-align:center">IA32 (x86)</th><th style="text-align:center">Arm32</th><th style="text-align:center">Arm64</th><th style="text-align:center">RISC-V (RV64GC)</th><th>OS Versions</th></tr></thead><tbody><tr><td>Windows</td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #D43324" aria-label="Not supported" title="Not supported">dangerous</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #D43324" aria-label="Not supported" title="Not supported">dangerous</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #DADCE0" aria-label="Does not exist" title="Does not exist">do_not_disturb_on</span></td><td><a href="https://www.microsoft.com/en-us/software-download/windows10%20">10</a>, <a href="https://www.microsoft.com/en-us/software-download/windows11">11</a></td></tr><tr><td>Linux</td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #D43324" aria-label="Not supported" title="Not supported">dangerous</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td><a href="https://www.debian.org/releases">Debian stable</a>,<br><a href="https://wiki.ubuntu.com/Releases">Ubuntu LTS</a> under standard support</td></tr><tr><td>macOS</td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #D43324" aria-label="Not supported" title="Not supported">dangerous</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #DADCE0" aria-label="Does not exist" title="Does not exist">do_not_disturb_on</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span></td><td style="text-align:center"><span class="material-symbols system-support" style="color: #DADCE0" aria-label="Does not exist" title="Does not exist">do_not_disturb_on</span></td><td>Latest three versions of macOS:<br><a href="https://support.apple.com/HT213895">Sonoma</a> (14), <a href="https://support.apple.com/HT213268">Ventura</a> (13), <a href="https://support.apple.com/HT212585">Monterey</a> (12)</td></tr></tbody></table></div><p><span class="material-symbols system-support" style="color: #158477" aria-label="Supported" title="Supported">verified</span> Supported on all channels.<br><span class="material-symbols system-support" style="color: #EF6C00" aria-label="Deprecated" title="Deprecated">error</span> Support is deprecated and might be dropped in a future Dart release.<br><span class="material-symbols system-support" style="color: #E25012" aria-label="Final deprecation" title="Final deprecation">report</span> Support is deprecated and will likely be removed in the next stable release.<br><span class="material-symbols system-support" style="color: #D43324" aria-label="Not supported" title="Not supported">dangerous</span> Unsupported on all channels.<br><span class="material-symbols system-support" style="color: #DADCE0" aria-label="Does not exist" title="Does not exist">do_not_disturb_on</span> Unsupported by the operating system.<br></p><div class="header-wrapper"><h2 id="choose-an-installation-option">Choose an installation option</h2><a class="heading-link" href="#choose-an-installation-option" aria-label="Link to 'Choose an installation option' section">#</a></div><p>To install and update the Dart SDK from the stable channel, choose one of the following options:</p><ol><li><p><a href="#install">Use a package manager</a> (Recommended).</p></li><li><p>Use a <a href="https://hub.docker.com/_/dart">Dart Docker image</a>.</p></li><li><p><a href="https://docs.flutter.dev/get-started/install">Install Flutter</a>.<br>If you've installed or plan to <a href="https://docs.flutter.dev/get-started/install">install the Flutter SDK</a>, it includes the full Dart SDK. The Flutter SDK includes the <a href="/tools/dart-tool"><code>dart</code></a> CLI tool in Flutter's <code>bin</code> folder.</p></li><li><p>Download a ZIP archive from the <a href="/get-dart/archive">SDK Archive</a>.</p></li><li><p><a href="https://github.com/dart-lang/sdk/wiki/Building">Build the SDK from source</a>.</p></li></ol><aside class="alert alert-warning"><div class="alert-header"><span class="material-symbols" aria-hidden="true">warning</span> <span>Notice</span></div><div class="alert-content"><p>Dart tools might send usage metrics and crash reports to Google. If you download the Dart SDK, you agree to the <a href="https://policies.google.com/terms">Google Terms of Service.</a> To learn how Dart handles this data, consult the <a href="https://policies.google.com/privacy">Google Privacy Policy</a>.</p><p>To toggle data collection, use the following options on the <a href="/tools/dart-tool"><code>dart</code> tool</a>:</p><ul><li>To enable anonymous analytics, run <code>dart --enable-analytics</code>.</li><li>To disable anonymous analytics, run <code>dart --disable-analytics</code>.</li></ul></div></aside><div class="header-wrapper"><h2 id="install">Install the Dart SDK</h2><a class="heading-link" href="#install" aria-label="Link to 'Install the Dart SDK' section">#</a></div><p>To install the Dart SDK, use the appropriate package manager for your development platform.</p><p>To upgrade the Dart SDK, run the same command to install the Dart SDK from your package manager.</p><ul class="tabs__top-bar"><li class="tab-link current" data-tab="tab-sdk-install-windows">Windows</li><li class="tab-link" data-tab="tab-sdk-install-linux">Linux</li><li class="tab-link" data-tab="tab-sdk-install-mac">macOS</li></ul><div id="tab-sdk-install-windows" class="tabs__content current"><div class="header-wrapper"><h3 class="no_toc" id="install-using-chocolatey">Install using Chocolatey</h3><a class="heading-link" href="#install-using-chocolatey" aria-label="Link to 'Install using Chocolatey' section">#</a></div><p>To install the Dart SDK, use <a href="https://chocolatey.org">Chocolatey</a>. Chocolatey requires <a href="https://www.thewindowsclub.com/elevated-privileges-windows">elevated permissions</a>.</p><ol><li><p>Install Chocolatey.</p></li><li><p>Launch <a href="https://www.thewindowsclub.com/how-to-open-an-elevated-powershell-prompt-in-windows-10">PowerShell</a> with elevated permissions.</p><div class="code-block-wrapper language-ps"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">PS C:\> choco install dart-sdk</span></span></code></pre></div></div></li></ol><div class="header-wrapper"><h3 class="no_toc" id="change-default-install-path">Change default install path</h3><a class="heading-link" href="#change-default-install-path" aria-label="Link to 'Change default install path' section">#</a></div><p>By default, Chocolatey installs the SDK at <code>C:\tools\dart-sdk</code>. To change that location, set the <a href="https://stackoverflow.com/questions/19752533/how-do-i-set-chocolatey-to-install-applications-onto-another-drive/68314437#68314437"><code>ChocolateyToolsLocation</code></a> environment variable to your desired installation directory.</p><div class="header-wrapper"><h3 class="no_toc" id="verify-your-path-includes-dart">Verify your PATH includes Dart</h3><a class="heading-link" href="#verify-your-path-includes-dart" aria-label="Link to 'Verify your PATH includes Dart' section">#</a></div><p>Verify you can run Dart.</p><div class="code-block-wrapper language-ps"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">PS C:\> dart --version</span></span> <span class="line"><span style="color:#222222">Dart SDK version: </span><span style="color:#11796D">3.2</span><span style="color:#222222">.</span><span style="color:#11796D">4</span><span style="color:#222222"> (stable) (Thu Dec </span><span style="color:#11796D">21</span><span style="color:#11796D"> 19</span><span style="color:#222222">:</span><span style="color:#11796D">13</span><span style="color:#222222">:</span><span style="color:#11796D">53</span><span style="color:#11796D"> 2023</span><span style="color:#11796D"> +0000</span><span style="color:#222222">) on </span><span style="color:#11796D">"win_x64"</span></span></code></pre></div></div><p>If your development machine doesn't return a Dart version, add the SDK location to your PATH:</p><ol><li>In the Windows search box, type <code>env</code>.</li><li>Click <strong>Edit the system environment variables</strong>.</li><li>Click <strong>Environment Variables...</strong>.</li><li>In the user variable section, select <strong>Path</strong> and click <strong>Edit...</strong>.</li><li>Click <strong>New</strong>, and enter the path to the <code>dart-sdk</code> directory.</li><li>In each window that you just opened, click <strong>Apply</strong> or <strong>OK</strong> to dismiss it and apply the path change.</li></ol><div class="header-wrapper"><h3 class="no_toc" id="upgrade-using-chocolatey">Upgrade using Chocolatey</h3><a class="heading-link" href="#upgrade-using-chocolatey" aria-label="Link to 'Upgrade using Chocolatey' section">#</a></div><p>To upgrade the Dart SDK, use the following command.</p><div class="code-block-wrapper language-ps"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">PS C:\> choco upgrade dart-sdk</span></span></code></pre></div></div><div class="header-wrapper"><h3 class="no_toc" id="uninstall-using-chocolatey">Uninstall using Chocolatey</h3><a class="heading-link" href="#uninstall-using-chocolatey" aria-label="Link to 'Uninstall using Chocolatey' section">#</a></div><p>To uninstall the Dart SDK, perform the following steps.</p><ol><li><p>Launch <a href="https://www.thewindowsclub.com/how-to-open-an-elevated-powershell-prompt-in-windows-10">PowerShell</a> with elevated permissions.</p></li><li><p>Use the following command.</p><div class="code-block-wrapper language-ps"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">PS C:\> choco uninstall dart-sdk</span></span></code></pre></div></div></li><li><p>Remove the Dart configuration files from your home directory.</p><div class="code-block-wrapper language-ps"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">PS C:\> </span><span style="color:#6200EE">Remove-Item</span><span style="color:#222222"> -Recurse -Force ^</span></span> <span class="line"><span style="color:#222222"> -Path $env:LOCALAPPDATA\.dartServer,$env:APPDATA\.dart,$env:APPDATA\.dart-tool</span></span></code></pre></div></div></li></ol></div><div id="tab-sdk-install-linux" class="tabs__content"><div class="header-wrapper"><h3 class="no_toc" id="install-using-a-linux-package-manager">Install using a Linux package manager</h3><a class="heading-link" href="#install-using-a-linux-package-manager" aria-label="Link to 'Install using a Linux package manager' section">#</a></div><p>You have two options to install the Dart SDK on Ubuntu or Debian:</p><ul><li>Use the <a href="#install-using-the-apt-get-package-manager">apt-get</a> command.</li><li>Download a <a href="#install-as-a-debian-package"><code>.deb</code></a> package and run the <code>dpkg</code> command.</li></ul><div class="header-wrapper"><h3 class="no_toc" id="install-using-the-apt-get-package-manager">Install using the <code>apt-get</code> package manager</h3><a class="heading-link" href="#install-using-the-apt-get-package-manager" aria-label="Link to 'Install using the apt-get package manager' section">#</a></div><p>To install Dart with <code>apt-get</code>, perform the following steps. You need steps 1 to 3 only for the first install.</p><ol><li><p>Update the package index files and install the secure HTTP package.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo apt-get update &#x26;&#x26; </span><span style="color:#6200EE">sudo</span><span style="color:#11796D"> apt-get</span><span style="color:#11796D"> install</span><span style="color:#11796D"> apt-transport-https</span></span></code></pre></div></div></li><li><p>Download and add the Google Linux GPG public key.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \</span></span> <span class="line"><span style="color:#222222"> | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg</span></span></code></pre></div></div></li><li><p>Add the Dart package repository to your Linux system.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ echo </span><span style="color:#11796D">'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main'</span><span style="color:#222222"> \</span></span> <span class="line"><span style="color:#222222"> | sudo tee /etc/apt/sources.list.d/dart_stable.list</span></span></code></pre></div></div></li><li><p>Use the following <code>sudo apt-get</code> commands.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo apt-get update &#x26;&#x26; </span><span style="color:#6200EE">sudo</span><span style="color:#11796D"> apt-get</span><span style="color:#11796D"> install</span><span style="color:#11796D"> dart</span></span></code></pre></div></div></li></ol><div class="header-wrapper"><h3 class="no_toc" id="install-as-a-debian-package">Install as a Debian package</h3><a class="heading-link" href="#install-as-a-debian-package" aria-label="Link to 'Install as a Debian package' section">#</a></div><p>To install the Dart SDK as a Debian package (<code>*.deb</code>), perform the following steps.</p><ol><li><p>Download the Dart SDK <a href="#" class="debian-link-stable">Debian package</a>.</p></li><li><p>Use the <code>sudo dpkg</code> command to install the <code>*.deb</code> package.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo dpkg -i dart_3.4.0-1_amd64.deb</span></span></code></pre></div></div><p>Substitute <code>dart_3.4.0-1_amd64.deb</code> with the current filename.</p></li></ol><div class="header-wrapper"><h2 class="no_toc" id="upgrade-the-dart-sdk">Upgrade the Dart SDK</h2><a class="heading-link" href="#upgrade-the-dart-sdk" aria-label="Link to 'Upgrade the Dart SDK' section">#</a></div><p>Use the same command that you used to install the SDK.</p><div class="header-wrapper"><h3 class="no_toc" id="upgrade-using-apt-get">Upgrade using <code>apt-get</code></h3><a class="heading-link" href="#upgrade-using-apt-get" aria-label="Link to 'Upgrade using apt-get' section">#</a></div><p>If you installed the Dart SDK with <code>apt-get</code>, use the following <code>sudo apt-get</code> commands.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo apt-get update &#x26;&#x26; </span><span style="color:#6200EE">sudo</span><span style="color:#11796D"> apt-get</span><span style="color:#11796D"> install</span><span style="color:#11796D"> dart</span></span></code></pre></div></div><div class="header-wrapper"><h3 class="no_toc" id="upgrade-using-dpkg">Upgrade using <code>dpkg</code></h3><a class="heading-link" href="#upgrade-using-dpkg" aria-label="Link to 'Upgrade using dpkg' section">#</a></div><p>If you installed the Dart SDK with <code>dpkg</code>, use the <code>sudo dpkg</code> command.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo dpkg -i dart_3.2.6-1_amd64.deb</span></span></code></pre></div></div><p>Substitute <code>dart_3.4.0-1_amd64.deb</code> with the new upgrade's filename.</p><div class="header-wrapper"><h2 class="no_toc" id="uninstall-the-dart-sdk">Uninstall the Dart SDK</h2><a class="heading-link" href="#uninstall-the-dart-sdk" aria-label="Link to 'Uninstall the Dart SDK' section">#</a></div><div class="header-wrapper"><h3 class="no_toc" id="uninstall-using-apt-get">Uninstall using <code>apt-get</code></h3><a class="heading-link" href="#uninstall-using-apt-get" aria-label="Link to 'Uninstall using apt-get' section">#</a></div><p>If you installed the Dart SDK with <code>apt-get</code>, use the <code>sudo apt-get remove</code> command.</p><ol><li><p>Use the <code>sudo apt-get remove</code> command.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo apt-get remove -y dart</span></span></code></pre></div></div></li><li><p>Remove the Dart configuration files from your home directory.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ rm -rf ~/.dart*</span></span></code></pre></div></div></li></ol><div class="header-wrapper"><h3 class="no_toc" id="uninstall-using-dpkg">Uninstall using <code>dpkg</code></h3><a class="heading-link" href="#uninstall-using-dpkg" aria-label="Link to 'Uninstall using dpkg' section">#</a></div><p>If you installed the Dart SDK with <code>dpkg</code>, use the <code>sudo dpkg --purge</code> command.</p><ol><li><p>Use the <code>sudo dpkg --purge</code> command.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ sudo dpkg --purge dart</span></span></code></pre></div></div><p>This removes the configuration files at the same time.</p></li><li><p>Verify the SDK has been removed.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ dpkg -l | </span><span style="color:#6200EE">grep</span><span style="color:#11796D"> dart</span></span></code></pre></div></div></li></ol></div><div id="tab-sdk-install-mac" class="tabs__content"><div class="header-wrapper"><h3 class="no_toc" id="install-using-homebrew">Install using Homebrew</h3><a class="heading-link" href="#install-using-homebrew" aria-label="Link to 'Install using Homebrew' section">#</a></div><p>To install the Dart SDK, use <a href="https://brew.sh">Homebrew</a>.</p><ol><li><p>Install Homebrew if needed.</p></li><li><p>Add the <a href="https://github.com/dart-lang/homebrew-dart">official tap</a>.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew tap dart-lang/dart</span></span></code></pre></div></div></li><li><p>Install the Dart SDK.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew install dart</span></span></code></pre></div></div></li></ol><div class="header-wrapper"><h3 class="no_toc" id="verify-path-includes-homebrew">Verify PATH includes Homebrew</h3><a class="heading-link" href="#verify-path-includes-homebrew" aria-label="Link to 'Verify PATH includes Homebrew' section">#</a></div><p>Verify that your <code>PATH</code> includes the <strong>Homebrew <code>bin</code> directory</strong>. Setting up the correct path simplifies using Dart SDK commands such as <code>dart run</code> and <code>dart format</code>.</p><p>To get help configuring your <code>PATH</code>, consult the <a href="https://docs.brew.sh/FAQ#my-mac-apps-dont-find-homebrew-utilities">Homebrew FAQ</a>.</p><div class="header-wrapper"><h3 class="no_toc" id="upgrade-using-homebrew">Upgrade using Homebrew</h3><a class="heading-link" href="#upgrade-using-homebrew" aria-label="Link to 'Upgrade using Homebrew' section">#</a></div><p>To upgrade when a new release of Dart is available:</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew upgrade dart</span></span></code></pre></div></div><div class="header-wrapper"><h3 class="no_toc" id="switch-dart-versions">Switch Dart versions</h3><a class="heading-link" href="#switch-dart-versions" aria-label="Link to 'Switch Dart versions' section">#</a></div><p>To switch between locally installed Dart releases:</p><ol><li><p>Install the version to which you want to switch.</p><p>For example, to install Dart 3.1:</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew install dart@3.1</span></span></code></pre></div></div></li><li><p>To switch between versions, unlink the current version and link the desired version.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew unlink dart@&#x3C;old> \</span></span> <span class="line"><span style="color:#222222"> &#x26;&#x26; brew unlink dart@&#x3C;new> \</span></span> <span class="line"><span style="color:#222222"> &#x26;&#x26; brew link dart@&#x3C;new></span></span></code></pre></div></div></li></ol><div class="header-wrapper"><h3 class="no_toc" id="list-installed-dart-versions">List installed Dart versions</h3><a class="heading-link" href="#list-installed-dart-versions" aria-label="Link to 'List installed Dart versions' section">#</a></div><p>To see which versions of Dart you've installed:</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew info dart</span></span></code></pre></div></div><div class="header-wrapper"><h3 class="no_toc" id="uninstall-using-homebrew">Uninstall using Homebrew</h3><a class="heading-link" href="#uninstall-using-homebrew" aria-label="Link to 'Uninstall using Homebrew' section">#</a></div><p>To uninstall the Dart SDK, use <a href="https://brew.sh">Homebrew</a>.</p><ol><li><p>Uninstall the Dart SDK.</p><div class="code-block-wrapper language-console"><div class="code-block-body"><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">$ brew uninstall dart</span></span></code></pre></div></div></li><li><p>Remove the Dart configuration files from your home directory.</p><div class="code-block-wrapper language-dart"><div class="code-block-body"><span class="code-block-language" title="Language dart">dart</span><pre class="shiki dash-light" tabindex="0"><code><span class="line"><span style="color:#222222">rm -rf ~/.dart*</span></span></code></pre></div></div></li></ol></div><div class="header-wrapper"><h2 id="release-channels">Release channel reference</h2><a class="heading-link" href="#release-channels" aria-label="Link to 'Release channel reference' section">#</a></div><div class="header-wrapper"><h3 id="stable-channel">Stable channel</h3><a class="heading-link" href="#stable-channel" aria-label="Link to 'Stable channel' section">#</a></div><p>Dart publishes a new release to the <em>stable</em> channel about every three months. The current stable version is <code class="build-rev-stable">[calculating]</code>.</p><p>Use <strong>stable</strong> channel releases for building and deploying production apps.</p><p><strong>Stable</strong> channel release version strings follow a <code>x.y.z</code> format:</p><ul><li><code>x</code> : major version</li><li><code>y</code> : minor version</li><li><code>z</code> : patch version</li></ul><p>Examples of stable channel version strings include <code>1.24.3</code> and <code>2.1.0</code>.</p><p>To install a stable channel release, follow the <a href="#install">instructions on this page</a>.</p><div class="header-wrapper"><h3 id="beta-channel">Beta channel</h3><a class="heading-link" href="#beta-channel" aria-label="Link to 'Beta channel' section">#</a></div><p>Dart publishes a new release to the <em>beta</em> channel about once a month. The current beta version is <code class="build-rev-beta">[calculating]</code>.</p><p>Use <strong>beta</strong> channel releases for testing your app's compatibility with future stable versions.</p><p><strong>Beta</strong> channel release version strings follow a <code>x.y.z-a.b.beta</code> format:</p><ul><li><code>x</code> : major version</li><li><code>y</code> : minor version</li><li><code>z</code> : patch version</li><li><code>a</code> : pre-release version</li><li><code>b</code> : pre-release patch version</li></ul><p>Examples of beta channel version strings include <code>2.8.0-20.11.beta</code> and <code>3.3.0-205.1.beta</code>.</p><p>To install a beta channel release, download the <a href="/get-dart/archive">SDK as a zip file</a>.</p><div class="header-wrapper"><h3 id="dev-channel">Dev channel</h3><a class="heading-link" href="#dev-channel" aria-label="Link to 'Dev channel' section">#</a></div><p>Dart publishes a new release to the <em>dev</em> channel about twice a week. The current dev version is <code class="build-rev-dev">[calculating]</code>.</p><p>Use <strong>dev</strong> channel releases for testing recent fixes and experimental features.</p><p><strong>Dev</strong> channel release version strings follow a <code>x.y.z-a.b.dev</code> format:</p><ul><li><code>x</code> : major version</li><li><code>y</code> : minor version</li><li><code>z</code> : patch version</li><li><code>a</code> : development version</li><li><code>b</code> : development patch version</li></ul><p>Examples of dev channel version strings include <code>2.8.0-20.11.dev</code> and <code>3.2.12-15.33.dev</code>.</p><p>To install a dev channel release, download the <a href="/get-dart/archive">SDK as a zip file</a>.</p><p id="page-github-links"><span>Unless stated otherwise, the documentation on this site reflects Dart 3.7.0. Page last updated on 2025-02-04.</span> <a href="https://github.com/dart-lang/site-www/tree/main/src/content/get-dart/index.md" target="_blank" rel="noopener">View source</a> <span>or </span><a href="https://github.com/dart-lang/site-www/issues/new?template=1_page_issue.yml&page-url=https://dart.dev/get-dart/&page-source=https://github.com/dart-lang/site-www/tree/main/src/content/get-dart/index.md" title="Report an issue with this page" target="_blank" rel="noopener">report an issue</a>.</p></div></article></main></div><footer id="page-footer"><div class="footer-section footer-main"><a href="/" class="brand" title="Dart"><img src="/assets/img/logo/logo-white-text.svg" alt="Dart" width="164"></a><div class="footer-social-links"><a href="https://medium.com/dartlang" target="_blank" rel="noopener" title="Dart's Medium publication"><svg><use href="/assets/img/social/medium.svg#medium"></use></svg> </a><a href="https://github.com/dart-lang" target="_blank" rel="noopener" title="Dart's GitHub organization"><svg><use href="/assets/img/social/github.svg#github"></use></svg> </a><a href="https://bsky.app/profile/dart.dev" target="_blank" rel="noopener" title="Dart's Bluesky profile"><svg><use href="/assets/img/social/bluesky.svg#bluesky"></use></svg> </a><a href="https://twitter.com/dart_lang" target="_blank" rel="noopener" title="Dart's X (Twitter) profile"><svg><use href="/assets/img/social/x.svg#x"></use></svg></a></div></div><div class="footer-section footer-tray"><div class="footer-licenses">Except as otherwise noted, this site is licensed under a <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>, and code samples are licensed under the <a href="https://opensource.org/licenses/BSD-3-Clause">3-Clause BSD License</a>.</div><div class="footer-utility-links"><ul><li><a href="/terms" title="Terms of use">Terms</a></li><li><a href="https://policies.google.com/privacy" target="_blank" rel="noopener" title="Privacy policy">Privacy</a></li><li><a href="/security" title="Security philosophy and practices">Security</a></li></ul></div></div></footer></div></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10