Installation
This guide covers installing the Motia CLI and iii engine, the two components you need to build Motia applications.Prerequisites
- TypeScript/JavaScript
- Python
- Node.js 18+ — Required for TypeScript and JavaScript Steps
- npm, yarn, or pnpm — Package manager of your choice
Install the Motia CLI
The Motia CLI helps you create new projects and manage your Motia applications.Install the iii engine
The iii engine is the Rust-based runtime that powers Motia. It manages queues, state, streams, cron, and observability.The Motia CLI will automatically install the iii engine when you create a new project if it’s not already installed.
Install Motia packages
After creating a project withmotia-cli create, you’ll need to install the Motia SDK packages.
- TypeScript/JavaScript
- Python
Create your first project
Now that you have the CLI and iii engine installed, create your first project:- Prompt you to choose a language (TypeScript, JavaScript, or Python)
- Prompt you to select a template (basic, api, or full-stack)
- Generate project files and configuration
- Install dependencies
- Create an
iii-config.yamlconfiguration file
Start the iii engine
Start the iii engine to run your Motia application:- Start the HTTP server (default:
http://localhost:3111) - Start the WebSocket server for streams (default:
ws://localhost:3112) - Start the iii Console (default:
http://localhost:3113) - Auto-discover and register your Steps
- Set up queues, state, and observability
Development workflow
- TypeScript/JavaScript
- Python
For development with hot reloading:The
motia dev command will:- Watch your Step files for changes
- Rebuild automatically with esbuild
- The iii engine will hot-reload your Steps
Verify installation
Test that everything is working:Troubleshooting
iii engine not found
iii engine not found
If the iii engine is not found, try:
-
Install it manually:
-
Add it to your PATH:
Port already in use
Port already in use
If ports 3111, 3112, or 3113 are already in use, you can change them in
iii-config.yaml:Node.js version too old
Node.js version too old
Motia requires Node.js 18 or higher. Update Node.js:
Python version too old
Python version too old
Motia requires Python 3.10 or higher. Update Python:
Next steps
Quickstart
Build your first Motia app in under 60 seconds
Core concepts
Learn about Steps, triggers, and handlers
Configuration
Configure the iii engine for your needs
Examples
Explore real-world examples