diff --git a/swan-lake/learn-the-platform/ballerina-tooling/cli-documentation/cli-commands.md b/swan-lake/learn-the-platform/ballerina-tooling/cli-documentation/cli-commands.md index e9b0646463b..b53afbe1e49 100644 --- a/swan-lake/learn-the-platform/ballerina-tooling/cli-documentation/cli-commands.md +++ b/swan-lake/learn-the-platform/ballerina-tooling/cli-documentation/cli-commands.md @@ -43,6 +43,7 @@ COMMANDS test Run package tests doc Generate current package's documentation pack Create distribution format of the current package + tool Manage Ballerina tools Package Commands: new Create a new Ballerina package @@ -60,15 +61,15 @@ COMMANDS format Format Ballerina source files grpc Generate the Ballerina sources for a given Protocol Buffer definition - graphql Generate the Ballerina client sources for a given GraphQL config - file, generate the GraphQL schema for a given Ballerina - GraphQL service, and generate the Ballerina service sources for a given GraphQL schema file. + graphql Generate the Ballerina client sources for a GraphQL config file, + generate the GraphQL schema for a Ballerina GraphQL service, and + generate the Ballerina GraphQL service for a GraphQL schema openapi Generate the Ballerina sources for a given OpenAPI definition and vice versa asyncapi Generate the Ballerina sources for a given AsyncAPI definition persist Manage data persistence bindgen Generate the Ballerina bindings for Java APIs - shell Run Ballerina interactive REPL + shell Run Ballerina interactive REPL [Experimental] version Print the Ballerina version Update Commands: @@ -142,7 +143,12 @@ These everyday commands are your best friends! They address the very basics of p pack -Create the distribution format (.bala) of the current package +Create the distribution format (.bala) of the current package. + + + +tool +Pull, remove, update, switch between versions, and search Ballerina command line tools. @@ -247,6 +253,45 @@ These powerful supporting tools extend Ballerina to various ecosystem technologi +## Tool commands + +These tools extend the Ballerina CLI to support additional functionalities and are not installed by default. They can be pulled from the Ballerina Central and are managed using the `bal tool` command. + +The following tool sub commands can be used to manage the tools. + + + + + + + + + + + + + + + + + + + + + + + + + + +
pullPull a tool from Ballerina Central. +
removeRemove a tool from the local bal tool chain. +
updateUpdate to the latest patch version of the currently active version. +
useSet the specified version of a tool as the active version. +
listList the tool IDs and the versions of all locally available tools. +
searchSearch Ballerina Central for tools using a given keyword. +
+ ## Update commands