Skip to content

Getting Started

This page assumes you have Ballerina installed. For installation instructions, refer to the official Ballerina Swan Lake documentation.

Hello World

Create a file named main.bal with the following content:

import ballerina/io;

public function main() {
    io:println("Hello, World!");
}

Run it with:

bal run main.bal

Alternatively, you can use the online playground to try Ballerina without installing anything.