init Command
What It’s For
Set up a workspace so Arashi can track repositories and worktrees.
What It Does
- Creates Arashi configuration in the current project.
- Prepares workspace metadata used by other commands.
- Makes the workspace ready for repository registration.
Usage
arashi init [options]Key Options
--repos-dir <path>set a custom repos directory (default./repos).--forceoverwrite an existing Arashi config (with backup).--no-discoverskip automatic repository discovery.--auto-setupor--no-auto-setupcontrol setup hook behavior.--dry-runpreview changes without writing files.--verboseprint detailed initialization steps.
Examples
# Standard initializationarashi init
# Use a custom repositories directoryarashi init --repos-dir ../workspace-repos
# Reinitialize safely and preview file changesarashi init --force --dry-runNotes
- Run this command inside a Git repository.
initcreates.arashi/config.jsonand hook templates under.arashi/hooks/.- It updates
.gitignoreto exclude the configured repositories directory.