A Ballerina CLI tool for searching and retrieving library information. It enables AI copilots and developers to discover Ballerina packages and retrieve detailed API information including functions, connectors, types, and parameters.
Search for libraries by keywords. Returns a ranked list ordered by relevance.
bal library search http client
bal library search kafka messaging
bal library search fhir healthcareRetrieve full API details of one or more libraries including functions, connectors, and type definitions.
bal library get ballerina/http
bal library get ballerina/http ballerinax/githubGrab the latest bal-library-tool-<version>.zip from the
Releases page,
unzip it, and run the installer for your platform.
macOS / Linux:
unzip bal-library-tool-<version>.zip
cd bal-library-tool-<version>
./install.shWindows (PowerShell):
Expand-Archive bal-library-tool-<version>.zip -DestinationPath .
Set-Location bal-library-tool-<version>
.\install.ps1Both installers are fully offline and only need bal on your PATH.
-
OpenJDK 21 (Adopt OpenJDK or any other OpenJDK distribution)
Info: You can also use Oracle JDK. Set the JAVA_HOME environment variable to the pathname of the directory into which you installed JDK.
-
Export GitHub credentials to pull build dependencies from GitHub Packages:
export packageUser=<GitHub username> export packagePAT=<GitHub personal access token with read:packages scope>
Execute the commands below to build from the source.
-
To build the tool:
./gradlew clean build -
To build without running checks:
./gradlew clean build -x check -
To run the tests:
./gradlew :native:test -
To install locally as a
baltool:./install-local.sh -
To build against a specific language server version:
./gradlew clean build -PlsVersion=<x.y.z> -
To build against a locally built language server JAR:
./gradlew clean build -PlsLocalJar=<path/to/ballerina-language-server.jar>
As an open-source project, Ballerina welcomes contributions from the community.
You can also check for open issues that interest you. We look forward to receiving your contributions.
For more information, go to the contribution guidelines.
All contributors are encouraged to read the Ballerina Code of Conduct.
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.