Skip to main content
devw init
Creates the .dwf/ directory structure with configuration and empty rule files.

Behavior

  1. Detects AI tools configured in the project (looks for .cursor/, CLAUDE.md, GEMINI.md, .windsurf/, .github/copilot-instructions.md)
  2. Asks which tools to include (detected tools are pre-selected)
  3. Asks output mode: copy (default) or link
  4. Generates .dwf/config.yml + empty rule files with example comments
  5. Creates .dwf/assets/ directory for commands, templates, and hooks
  6. Adds .dwf/.cache/ to .gitignore
  7. If --preset is specified, installs the preset after initialization

Generated Structure

.dwf/
  config.yml
  rules/
    architecture.yml
    conventions.yml
    security.yml
    workflow.yml
    testing.yml
  assets/

Flags

FlagDescription
--tools claude,cursor,geminiSkip interactive tool selection
--mode copy|linkSkip interactive mode selection
--preset <name>Install a preset after initialization (e.g., spec-driven)
-y, --yesAccept all defaults

Examples

# Interactive
devw init

# Non-interactive with specific tools
devw init --tools claude,cursor --mode copy

# Accept all defaults
devw init -y

# Initialize with the spec-driven workflow preset
devw init --preset spec-driven -y