---
title: "CLI, MailKaro Docs"
description: "CLI in MailKaro: render, export, validate and migrate designs straight from your terminal or CI."
---

# CLI

Tooling

# CLI

Render, export, validate and migrate designs straight from your terminal or CI.

bash

```
npm install -g mailkaro-cli

mailkaro render design.json > email.html
mailkaro export design.json --format=mjml
mailkaro validate design.json
mailkaro migrate old-design.json > design.json
```

## Commands

- `render `, email-safe HTML.
- `export --format=`, `html` / `mjml` / `amp` / `text` / `document`.
- `validate `, check a design against the [schema](https://docs.mailkaro.com/design-schema).
- `migrate `, upgrade to the latest schema version.
- `starter`, print a fresh starter design.

✦ Every command reads a design JSON and writes to stdout, so it composes with your build scripts and pipes cleanly.

Source: https://docs.mailkaro.com/cli
