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).--no-default-launchignore configured switch launch defaults for one invocation.
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 --sesh
# Ignore configured launch defaults for one runarashi switch --no-default-launchNotes
- 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. - Configure default launch mode in
.arashi/config.jsonunderdefaults.switch.launchMode.