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

FlagDescription
-templateTemplate to use (code-review)
-iInteractive config setup
-dDirect 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 .gitignore

Code 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-4

Created Structure

text
.shiro/
├── workflow.json          # Default workflow
├── config.yaml           # AI/model configuration
├── modules/
│   └── registry.yaml     # Module registry
└── workflows/            # Additional workflows