sprawl init
📌 1. The Target Problem
When setting up Sprawl for the first time or moving to a new workstation, developers need to clone and link their team's centralized context registries and guidelines. Doing this manually is prone to directory mismatches and layout drift.
⚙️ 2. Usage & Options
sprawl init <GIT_URL> [target_dir]
Options & Flags
-h, --help: Show this help message and exit.--verbose: Engages strict logging mode dumping tracking execution outputs.--dry-run: Safety mode; simulates structural file logic without destroying paths.
🔍 3. How it Works (Under the Hood)
- Clones the remote DNA git repository directly to your global Sprawl storage path (default:
~/.sprawl/core/). - Registers the DNA source alias globally.
- Validates the directory hierarchy structure of the cloned DNA guidelines to ensure compliance with the Sprawl standard.
🩺 4. Troubleshooting
- Error: Authentication failed during git clone
- Resolution: Sprawl init relies on local SSH keys or git credentials to pull private DNA repositories. Ensure your workstation has SSH access configured for the target repository.