batuta init
Initialize a new Batuta project by scanning the source codebase and generating batuta.toml.
Synopsis
batuta init [OPTIONS]
Description
The init command analyzes a source project (Python, C, Shell, or mixed-language) and creates a batuta.toml configuration file with detected languages, dependencies, and recommended transpilation settings.
Options
| Option | Description |
|---|---|
--source <PATH> | Source project path (default: .) |
--output <DIR> | Output directory for generated Rust project |
-v, --verbose | Enable verbose output |
-h, --help | Print help |
What It Does
- Scans the source directory for supported languages
- Detects dependency managers (pip, npm, cmake, etc.)
- Identifies ML frameworks (NumPy, sklearn, PyTorch)
- Generates
batuta.tomlwith project metadata and defaults - Creates initial workflow state
Examples
Initialize Current Directory
$ batuta init
🚀 Initializing Batuta project...
Detected languages: Python (85%), Shell (15%)
Detected frameworks: numpy, scikit-learn
Dependency manager: pip (requirements.txt)
Created: batuta.toml
Specify Output Directory
$ batuta init --source ./my-python-project --output ./my-rust-project
See Also
batuta analyze- Deeper analysis- Configuration Overview
Previous: Command Overview
Next: batuta analyze