emusoi

Commands

<worktree> is a name, path or branch; leave it out for the one you are in. mia <command> -h shows a command's usage.

Worktrees

commanddoes
mia new <branch>make a worktree
mia adopt <path>take over a worktree
mia lslist worktrees
mia shell [worktree]attach to its session
mia switch <worktree>cd there
mia path [worktree]print its path
mia open [worktree]open it in your editor
mia window …its session's windows
mia rename <worktree> <name>rename it
mia star [worktree]star or unstar it
mia setup [worktree]run setup again
mia run <worktree>[@machine] <cmd…>run a command in it, here or on a machine
mia rm <worktree>remove it
mia fork [worktree] <branch>a new worktree on a new branch from where that worktree is, its uncommitted and untracked work copied; the first stays as it is
mia archive [--stop-running] <worktree>put it away: everything in it, uncommitted and untracked work too, kept under refs/mia/archive/<name>; the worktree goes, its branch stays
mia archive lswhat is archived
mia unarchive <name>bring it back as it was, under its old name when that is free
mia recall <text…>the claude conversations of this repository and its worktrees that mention it, newest first: the words around it, and how to resume each
mia why <file:line|commit>the claude conversation that made a commit, or the line's last commit: what you asked, and how to resume it
mia resurrect [--dry-run] [--list] [<worktree>...]after tmux or the computer went down, open each session again — or any one named, closed on purpose or not: its windows in their folders, their programs restarted, each claude resuming its own conversation; --list shows every session remembered
mia gc [--apply|--ask] [--days N]find, or remove, idle worktrees: clean, no session, not starred, untouched for N days (14); --ask shows them and removes on y
mia gc --merged [--apply]find, or remove, clean worktrees whose branch the base already holds
mia gc --others [--apply|--ask] [path…]find, or remove, the clean worktrees mia did not make; branches stay

Stacks

commanddoes
mia up, mia downmove between layers
mia stackshow the stack
mia stack go|name|sync|merge|restack|diff|rmwork on it

Environments

commanddoes
mia env up [--wait] [--recreate]start; optionally wait for readiness or apply changed configuration
mia env down [--all]|rmstop one or all, or remove
mia env shella shell inside
mia env exec <cmd…>run a command inside
mia env run <worktree> <cmd…>run where its code runs
mia dev [worktree|off]lend main's dev server a worktree's files
mia env browse [--direct]open it in the browser, with optional no-setup HTTP
mia env status|ports|servicewhat it is doing
mia env host [machine]where it runs, or move it after a target preflight
mia env sync [worktree] [auto|manual|now|status|conflicts|preview|restart]control and inspect remote file synchronization
mia machine list|add|shell|rmmachines
mia gateway status|start|stop|setup|trustthe <name>.mia gateway

Other

commanddoes
mia radar [--new]find and switch to any worktree, or make one — prefix space and prefix n in tmux
mia dashthe radar, under its old name
mia config [show|validate]edit local overrides, or inspect the effective configuration
mia config [--global] <key> [<value>]say, or set, one setting: base staging, keys.quizzicle.quiz K, plugin.agent.default codex; one line edited, comments kept, and a setting mia would not load refused
mia plugin ls|enable|disableplugins
mia doctorcheck tools, config, gateway, machines, plugins and environment drift
mia api <query>state as JSON
mia api capabilitiesAPI version, queries and feature markers
mia help vocabularythe words
mia help tmuxwhat mia tmux install adds: the radar, a new worktree, the menu, the status line

Reading commands take --json.

Edit this page

    ↑↓ choose ⏎ open esc close