dev

⚠️ In Development: The rumi dev command is currently in development. The content in this section is subject to change.

The rumi dev commands help you perform development activities on your Rumi applications, allowing you to incrementally evolve your applications by adding, removing, and modifying components.

Overview

The rumi dev commands provide a structured way to manage your application's components without manually editing configuration files or writing boilerplate code. These commands follow Rumi's best practices and conventions.

Command Categories

The rumi dev commands are organized into the following categories:

Service Management

Manage microservices in your application:

# Add a new service
rumi dev service add <service-name>

# Remove an existing service
rumi dev service remove <service-name>

Message Management

Manage messages and message definitions:

Handler Management

Manage message handlers:

State Management

Manage state entities:

Configuration Management

Manage application configuration:

Command Structure

All rumi dev commands follow the hierarchical structure:

Where:

  • <category> is a noun representing the component type (service, message, handler, state, config)

  • <action> is the operation to perform (add, remove, update, etc.)

  • [options] are command-specific options and arguments

Best Practices

When using rumi dev commands:

  1. Start from the top down - Add services first, then messages, then handlers

  2. Use descriptive names - Follow naming conventions for your components

  3. Test incrementally - Test each component addition before moving on

  4. Use version control - Commit changes after each component addition

Common Workflows

Creating a New Microservice

Adding Functionality to an Existing Service

For more information about developing Rumi applications, see the Core Documentation.

Last updated