wa CLI

CaseMgr Worktree Manager — manage Git worktrees, VS Code workspaces, cases, and files from the command line.

v1.0.0

Install

curl -fsSL https://casemgr.systems/cli/install.sh | bash click to copy

Requires Erlang/OTP runtime. Linux and macOS supported.
Need an account? Sign up free

Getting Started

Authenticate

wa login

List your worktrees

wa ls wt                  # local worktrees
wa ls wt --server          # all machines

Create a worktree with alias

wa add --bn=feature-x --alias=fx

Navigate and code

cdwa fx                   # cd to worktree by alias
wa code                    # open VS Code
home                       # back to worktree root

Commands

Worktrees

CommandDescription
wa ls wtList local worktrees
wa ls wt --serverList all worktrees (all machines)
wa add --bn=branch --alias=nameCreate worktree with branch and alias
wa get wt --worktreeGet current worktree root path
wa get wt --caseShow case linked to current worktree
wa set wt --alias=nameSet alias for current worktree
wa rm wt --wt=pathRemove a worktree
wa codeOpen VS Code workspace for current worktree

Aliases & Navigation

CommandDescription
wa ls wa --aliasesList all aliases
wa get wa --alias=nameGet worktree path by alias (fuzzy matching)
wa set wa --alias=nameSet alias for current workarea
wa export waExport workareas as JSON
wa import wa --file=backup.jsonImport workareas from backup

Branches

CommandDescription
wa ls brList branches
wa co br --bn=mainCheckout a branch
wa co br --bn=feature-x --bCreate and checkout new branch

Cases

CommandDescription
wa ls caseList all cases
wa ls case --caseStatus=activeFilter by status
wa add case --caseName="My Case"Create a new case
wa get case --caseId=#7:123Get case details
wa set wt --assignCase="Case Name"Link current worktree to a case (by name)

File Operations

CommandDescription
wa upload report.pdfUpload file to case (auto-resolved)
wa upload doc.pdf --caseId=#7:123Upload to specific case
wa download report.pdfDownload file from case
wa move invoice.pdfUpload, verify (SHA-256), delete local

MCP Passthrough

Call any of CaseMgr's 150+ MCP tools directly from the command line. Output is JSON.

wa mcp cases.list                          # list all cases
wa mcp cases.list status=active              # filter by status
wa mcp items.list case_id="#7:123"            # list items in a case
wa mcp items.semantic_search query="invoice"  # semantic search
wa mcp preferences.get                       # user preferences

Authentication

CommandDescription
wa loginAuthenticate with CaseMgr
wa logoutClear stored token
wa whoamiShow current user

Shell Helpers

The installer adds shell functions to your profile for interactive use:

FunctionDescription
cdwa <alias>Navigate to worktree by alias
codewa <alias>Navigate and open VS Code
homeNavigate to current worktree root
mainCheckout the main branch
aliasesList all worktree aliases

Additional git helpers and project navigation examples are installed to ~/.config/wa/.

Environment Variables

VariableDefaultPurpose
CASEMGR_URLhttps://casemgr.systems/mcpMCP server URL
CASEMGR_EMAILPre-fill login email
CASEMGR_PASSWORDPre-fill login password
CASEMGR_TOKENOverride stored auth token
WORKAREAS_DIR~/.workareasBase data directory
WORKAREAS_WORKSPACE_DIR~/.workareas/workspacesVS Code workspace files

Manual Download

wa
Escript binary (Linux/macOS, requires Erlang/OTP)
Download
workarea-functions.sh
Core shell functions (cdwa, home, aliases)
Download
git-helpers.sh
Git shortcut functions
Download
project-functions.sh
Example project navigation functions
Download
install.sh
Automated install script
Download
← casemgr.systems  ·  Documentation  ·  Sign Up Free