repoctl Execution Model
repoctl is a task layer over pnpm, Turborepo, repository scripts, and managed assets. It coordinates those systems without replacing them.
Entrypoints
The recommended binary is repo. repoctl is an equivalent public bin. Generated workspaces also expose repo:init, repo:new, repo:doctor, and repo:check root scripts.
Command Lifecycle
- Resolve locale from
--lang, thenREPOCTL_LANG, then English. - Find the pnpm workspace root and load
repoctl.config.tswhen present. - Build a deterministic plan from workspace state and command options.
- Prompt only when the terminal is interactive and the command needs a choice.
- Execute the plan or emit text, Markdown, or JSON output.
- Set a non-zero exit code for blocking diagnostics or command failures.
Output Contracts
Text and Markdown are localized. JSON keys, status values, check IDs, command names, and option names are stable across locales.
Configuration
Configuration supplies repository defaults. Explicit CLI options take precedence. Non-interactive automation should use --yes, explicit template keys, and report output options instead of relying on prompts.
