microkit-cli 0.35.0

MicroKit CLI tool for managing your services
microkit-cli-0.35.0 is not a library.

MicroKit CLI

CLI tool for creating and managing MicroKit services.

Installation

cargo install microkit-cli

Or build from source:

cargo install --path crates/microkit-cli

Usage

The CLI is available as mk after installation.

Create a new service

mk new <service-name>

Options:

  • -d, --description <DESCRIPTION> - Description of the service
  • -p, --port-offset <PORT_OFFSET> - Port offset for running multiple services (default: 0)
  • -t, --tag <TAG> - MicroKit git tag to create the service from

Setup environment

mk setup

Run services with Dapr

Run all services:

mk run

Run a specific binary:

mk run <binary-name>

Database commands

Generate entities from database schema:

mk db entity

Create a new migration:

mk db migrate <migration-name>

Drop and recreate database:

mk db fresh