Step 1 - Install Ballerina Swan Lake

If you are new to Ballerina, download the relevant Ballerina distribution based on your operating system and install it.

2201.10.1 (Swan Lake Update 10)

  • macOS Users: Install quickly with brew install bal.
  • Installation Options: Check out various methods in our guide.
  • Artifact Signature Verification: Ensure authenticity using our verification guide.
  • Previous Releases: Find older versions in Archived versions.

Step 2 - Verify the installation

To verify that Ballerina was successfully installed, execute the bal version command in the Terminal/Shell. Refer to the CLI commands page to learn about more commands.

Step 3 - Run a sample program

You will be prompted to install the Ballerina Visual Studio Code extension.

For more information, see the Ballerina Visual Studio Code extension.

Run the program by using the Run CodeLens of Visual Studio Code. For more information, see Run a program.

Now, you are all set! For more guides, see Learn.