motia-cli create command scaffolds a new Motia project with pre-configured templates, dependencies, and the iii engine configuration.
Usage
Interactive prompts
The create command guides you through an interactive setup:1. Project folder name
- Creates a new directory with the specified name
- Validates that the directory doesn’t already exist
- Press Enter twice to cancel project creation
2. iii engine check
- Checks if you have the iii engine installed
- If you answer “no”, provides installation instructions
- Links to https://iii.dev/docs for setup
What gets created
The command creates a complete project structure:Template selection
Currently, the CLI automatically selects the Node.js template, which supports:- TypeScript - Fully typed development experience
- JavaScript - ES modules with modern syntax
- Example steps - Pre-configured HTTP and queue examples
Examples
Basic project creation
Interactive mode
Run without arguments to be prompted for all inputs:Cancel during creation
Press Enter twice when prompted for project name to cancel:Post-creation steps
After creating a project:1. Navigate to project directory
2. Review the configuration
Checkiii-config.yaml to understand the engine settings:
3. Start the iii engine
4. Access the iii Console
Open your browser to view the dashboard:Dependency installation
The create command automatically runsnpm install to set up dependencies:
Troubleshooting
Directory already exists
GitHub API rate limit
Connection timeout
Failed dependency installation
Advanced usage
Using with GitHub token
For faster template downloads and avoiding rate limits:Custom package manager
After project creation, you can switch to your preferred package manager:Template details
Files excluded from templates
The following files are automatically excluded when downloading templates:package-lock.json- Regenerated during installationREADME.md- Project-specific documentation is generated
Package.json customization
The CLI automatically updatespackage.json with your project name:
Next steps
Development commands
Run your project in development mode
Build commands
Create production builds
Defining steps
Learn how to create Motia steps
iii configuration
Configure the iii engine for your project