switch Command
What It’s For
Move into the right worktree quickly without manually changing directories.
What It Does
- Selects an existing worktree and opens a new terminal context there.
- Supports parent-only, child-repo-only, or combined worktree scopes.
- Uses terminal-aware launch behavior (tmux, VS Code, and common terminal apps).
Usage
arashi switch [filter] [options]Key Options
--repostarget child repositories in the current workspace only.--alltarget parent workspaces and nested child repo worktrees.--seshrun sesh mode in tmux (requires active tmux session andsesh).
Examples
# Pick from parent workspace worktreesarashi switch
# Match child repos by repository name firstarashi switch --repos docs
# Include parent workspaces plus child repo worktreesarashi switch --all
# Use sesh/tmux switching modearashi switch --seshNotes
- Default scope is parent repository worktrees only.
- In
--reposmode, filter text matches repository names first:- exact repo match wins
- otherwise a unique partial repo match is selected
- If
--reposhas no repo matches, Arashi prints available child repositories.