Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
layout title description keywords permalink active intro redirect_from
ballerina-installing-ballerina-left-nav-pages-swanlake
Setting up Ballerina
Let's get started.
ballerina, quick tour, programming language, http service
/learn/installing-ballerina/setting-up-ballerina/
setting-up-ballerina
Let's get started.
/learn/quick-tour
/learn/quick-tour/
/swan-lake/learn/getting-started/quick-tour/
/swan-lake/learn/getting-started/quick-tour
/learn/getting-started/quick-tour/
/learn/getting-started/quick-tour
/learn/getting-started/
/learn/getting-started
/learn/user-guide/getting-started
/learn/user-guide/getting-started/
/learn/user-guide/getting-started/setting-up-ballerina
/learn/user-guide/
/learn/user-guide
/learn/user-guide/getting-started/setting-up-ballerina
/learn/user-guide/getting-started/setting-up-ballerina/
/learn/getting-started/installing-ballerina/setting-up-ballerina
/learn/getting-started/installing-ballerina/setting-up-ballerina/
/learn/installing-ballerina/setting-up-ballerina
/learn/installing-ballerina/
/learn/installing-ballerina

Trying Ballerina in the Playground

You can use the Ballerina Playground to write Ballerina programs without installing anything.

<style>a.cMobileLogo img {display: block;}</style>

Downloading Ballerina

Download Ballerina based on the operating system you are using and install it.

<script src="/js/download-page.js"></script>

For more download options, see Downloads.

Installing Ballerina

Double-click on the package file you downloaded above to launch the installer. The installer guides you through the installation process and installs the Ballerina distribution.

For more installation options, see Installation Options.

Updating Ballerina

Once you have Ballerina installed, you can use the Update Tool to update it to the latest version. To do this, execute the command below in a new CLI tab.

bal dist update

Info: If you want to pull a specific Ballerina version, execute the bal dist pull <VERSION> command (e.g., bal dist pull slbeta3).

Info: You might need to first update the Update Tool to its latest version. If you have an Update Tool version below 0.8.14, execute the ballerina update command or else execute the bal update command to do this.

For more information, see Update Tool.

Installing the VSCode Extension

Ballerina provides an extension to try out its development capabilities in Visual Studio Code. For instructions on setting it up, see Quick Start.

What's Next?

Now, that your environment for Ballerina is all set up and running, let's write your first Ballerina program.