Installation
Using Homebrew (macOS/Linux)
Using shell script
Verify installation
Prerequisites
- Node.js 18+ - For TypeScript/JavaScript projects
- Python 3 - For Python projects (optional)
- iii engine - The Rust-based runtime that powers Motia (auto-installed during project creation)
Available commands
The Motia CLI provides commands for both the standalone CLI tool and the framework-level commands:Standalone CLI (motia-cli)
| Command | Description |
|---|---|
motia-cli create | Create a new Motia project with iii configuration |
Framework commands (motia/motia-iii)
These commands are available within a Motia project:| Command | Description |
|---|---|
motia dev | Build and run the project in development mode |
motia build | Build the project for production deployment |
motia typegen | Generate TypeScript types from steps and streams |
Python-specific commands
When working with Python projects, use themotia command:
| Command | Description |
|---|---|
motia run | Discover and run steps and streams |
motia dev | Run in development mode with optional file watching |
motia build | Generate production build at dist/index.py |
motia typegen | Generate schema manifest from steps and streams |
Quick start
Create your first Motia application:- Auto-detect and install the iii engine if needed
- Prompt you to select a language (TypeScript, JavaScript, or Python)
- Download the appropriate template
- Install dependencies
- Generate an
iii-config.yamlconfiguration file
Terminal output example
Environment configuration
All CLI commands automatically load environment variables from.env files in your project root.
GitHub token (optional)
When creating projects, you can set aGITHUB_TOKEN to increase API rate limits:
Next steps
Create command
Learn about project creation and templates
Development commands
Build and run your project locally
Build commands
Create production-ready builds
Quick start guide
Complete tutorial for new projects