Setting up Ballerina
Now, that you know a little bit of Ballerina, let's take it for a spin!
Trying Ballerina in the Playground
You can use the Ballerina Playground to write Ballerina programs without installing anything.
Download Ballerina based on the operating system you are using and install it.
For more download options, see Downloads.
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.
Once you have Ballerina installed, you can use the Update Tool to update it to the latest version. For this, execute the command below in a new CLI tab.
bal dist pull slalpha2
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 updatecommand or else execute the
bal updatecommand 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 Stusio Code. For instructions on setting it up, see Installing the VS Code Extension.
Now, that your environment for Ballerina is all set up and running, let’s write your first Ballerina program.