Entry points
Runningrefactron with no arguments (after authentication, when required) starts the interactive REPL: a terminal UI where you type commands at the ❯ prompt.
Fast paths that exit immediately:
/ (for example /analyze).
Authentication
Most commands require a valid login. Exceptions includelogin, logout, auth, help, clear, exit, quit, session, and issues (though issues still needs an active session from a prior analyze).
See Other commands for login, logout, and auth.
Project detection
On startup, Refactron picks a language adapter by scanning the project root for matching source files (Python*.py vs TypeScript *.ts / *.tsx), ignoring node_modules, .git, and dist. Ensure the intended language has the most matching files, or run from the correct subdirectory.
Configuration
Project settings are loaded fromrefactron.yaml in the current working directory when the CLI starts. See Configuration.
Command map
| Topic | Page |
|---|---|
| Scan and sessions | analyze |
| Interactive TUI | Issue browser |
| Apply fixes | autofix |
| Post-fix checks | verify |
| Saved sessions | session |
| Auth, status, diff, rollback | Other commands |
