Command reference

Setup

CommandDescription
slice setupTransform a git repo into a managed thinslice workspace

Worktrees

CommandDescription
slice local <name> [-b ref] [--from state] [hook] [args...]Create a worktree for your own work at local/<name>
slice tmp <name> [-b ref] [--from state] [hook] [args...]Create a throwaway worktree at tmp/<name>
slice pr checkout <number> [--from state] [hook] [args...]Fetch a PR and create a worktree at pr/<number>
slice rm <worktree>Stop processes, remove worktree, delete branch, clean up throwaway state
slice gcRemove all tmp/ worktrees that aren't running

The worktree path is also the git branch name. slice local feature-auth creates both the directory local/feature-auth and the branch local/feature-auth.

See Worktrees for details.

State

CommandDescription
slice state new <name> [--from existing]Create a new state directory
slice state lsList state directories with bindings and status
slice state rm <name>Remove a state directory (refuses if bound or running)

See State for details.

Lifecycle

CommandDescription
slice use <state>Bind the current worktree to a state directory
slice up [profile]Start processes (optional tmux profile)
slice downStop processes, keep binding
slice detachStop processes and unbind worktree from state
slice restart [profile]Stop and restart processes
slice statusShow all worktrees, states, bindings, ports, and status

Config and inspection

CommandDescription
slice editOpen the slice config in $EDITOR (stored in state directory)
slice configPrint resolved configuration to stdout
slice portsShow port allocations for the current slice
slice logs [process]Tail process logs

Utility

CommandDescription
slice give-me-a-portAllocate and return a free port (for use inside thinslice.new-state). See Port Registry
slice debug port <number>Look up what owns a specific port
slice doctorFull reconciliation of the port registry