CLI Command
shiro init
Initialize a new Shiro project in the current directory. Creates the .shiro folder structure.
Usage
bash
shiro init [flags]
shiro init -template <name> [flags]Flags
| Flag | Description |
|---|---|
| -template | Template to use (code-review) |
| -i | Interactive config setup |
| -d | Direct config mode (pass config values) |
Examples
Basic Init
bash
shiro init
# Output:
# Created directory: .shiro
# Created directory: .shiro/workflows
# Created directory: modules
# Created workflow: .shiro/workflow.json
# Created config: .shiro/config.yaml
# Initialized module registry
# Updated .gitignoreCode Review Template
Initialize with AI-powered code review workflow:
bash
# Interactive mode
shiro init -template code-review -i
# Direct config mode
shiro init -template code-review -d provider=openai -d api_key=sk-... -d model=gpt-4Created Structure
text
.shiro/
├── workflow.json # Default workflow
├── config.yaml # AI/model configuration
├── modules/
│ └── registry.yaml # Module registry
└── workflows/ # Additional workflows