DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Chaos Engineering and Kafka In Action: Topic Level Idempotence and Retry Check
  • Part 4: Multi-Agent Orchestration — Pairing Goose With Quarkus Flow State Machines
  • Agentic Workflows Without LLMs? How I Cut a 14-Hour Engineering Workflow to 2 Hours
  • The Hidden Production Risks of Third-Party SDKs

Trending

  • Testing Java and Spring Applications With Kotlin: Low-Risk to Adoption
  • Building a Windows App for a Resilient SSH SOCKS Proxy and Selective Browser Routing
  • A Software Factory on Kubernetes: Gemini Builds, jev Decides (Genkit + senro in Go)
  • Decoupling a Data Pipeline From the Tables It Was Never Supposed to Depend On

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

Introducing Kumologica CLI

Now you can develop your serverless flows using Kumologica CLI.

By 
Pranav K
DZone Core CORE ·
Oct. 03, 22 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
3.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Kumologica SDK release is a major milestone for Kumologica products to be used in an enterprise environment. It combines all products into a single npm package. It elevates the command line interface as a primary interface for running designer, building binaries, testing and deployments.

Kumologica SDK consists of 4 products:

  • Kumologica Designer
  • Kumologica Runtime
  • Kumologica CLI
  • Kumologica Node Development Kit

This article introduces Kumologica CLI commands to use Kumologica Designer.

Dependencies

Kumologica SDK is packaged and distributed as an npm module. The only dependencies are node js and npm.

Refer to your cloud provider documentation to what Node JS versions are supported by their serverless computing services.

SDK Installation

Kumologica SDK is available as an npm module. It is recommended to install it globally using the following command:

Shell
 
npm install -g @kumologica/sdk

Once installed, Kumologica CLI is available under kl command:

Shell
 
$ klkl <command>Commands:
kl build <provider> Build kumologica flow binaries
kl create Create a kumologica project
kl deploy <provider> Deploy kumologica flow binaries
kl doc <format> Generate documentation for kumologica flow
kl export <language> Export deployment scripts for kumologica flow
kl open [project_directory] Open Kumologica Designer
kl test [project_directory] Run test suiteOptions:
 — version Show version number [boolean]
 — help Show help [boolean]Not enough non-option arguments: got 0, need at least 1

Upgrading Kumologica SDK to the latest version is as simple as repeating the installation command.

Installing a specific version of SDK, for example, version 3.0.25:

Shell
 
npm install -g @kumologica/[email protected]

Creating Sample Project

There are 2 ways of creating a sample Kumologica project.

1. Using Kumologica CLI

To create a sample project using Kumologica CLI go to the directory where you would like to create a project and type the ‘create’ command:

Shell
 
# Create new Kumologica project
kl create -p example-project

This command creates a subdirectory: ‘example-project’ with kumologica project artefacts:

Shell
 
example-project-flow.json
package.json

2. Using Kumologica Designer

You can always create a sample project using Kumologica Designer. Simply press the ‘Home’ button on the toolbar and then ‘Create a new Kumologica project’. You will be prompted for the project name and root directory.

A new project will always use the fixed latest runtime version. For example at the time of writing this article latest version of Kumologica Runtime is 3.0.26 and the example-project has the following dependencies in the package.json file:

JSON
 
"dependencies": {
  "@kumologica/runtime": "3.0.26"
}

Opening Designer

Kumologica Designer can be opened using the ‘open’ command:

Shell
 
# Open Kumologica Designer
kl open

If Kumologica Designer is opened for the first time, this command will ask for acceptance of terms and conditions and then open the welcome screen. This screen allows the creation of a new project or the opening of existing ones. Otherwise Kumologica Designer will automatically open the most recent project.

You can also open projects from the specified directory. Using the sample project example go to the example-project directory and run the command:

Shell
 
# Go to example-project directory
cd example-project# Open project in Kumologica Designer
kl open .

This will open an example project in Kumologica Designer regardless of what previous project was opened.

You can also use relative or fixed paths to open projects in Kumologica Designer:

Shell
 
kl open /Users/user/projects/example-project

Kumologica Runtime

Kumologica Designer automatically runs Kumologica Runtime in the background. This allows local testing of flows within the designer or outside, for example using the Postman tool or curl commands.

By default the Kumologica Runtime is running locally on port 1880, this allows to test example project API:

Shell
 
curl http://localhost:1880/hello
{"hello":"world"}

One of the enhancements introduced in the SDK release is the capability to run multiple instances of Kumologica Designer.

In such a case each embedded Kumologica Runtime will try to acquire the following available port numbers: 1881, 1882, etc.

The project panel in Kumologica Designer shows the port number, running status and version of the associated Kumologica Runtime.

Conclusion

Kumologica SDK is a major update of Kumologica products that simplifies the management of all components and also takes advantage of the rich capabilities of npm. The next articles will explore other CLI capabilities that enable the use of Kumologica in enterprise environments.

Command-line interface Software development kit

Opinions expressed by DZone contributors are their own.

Related

  • Chaos Engineering and Kafka In Action: Topic Level Idempotence and Retry Check
  • Part 4: Multi-Agent Orchestration — Pairing Goose With Quarkus Flow State Machines
  • Agentic Workflows Without LLMs? How I Cut a 14-Hour Engineering Workflow to 2 Hours
  • The Hidden Production Risks of Third-Party SDKs

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook