Commands
Full reference for the pear CLI and interactive TUI slash commands.
CLI commands
| Command | Description |
|---|---|
pear init | Initialize configuration — name, languages, level, API key |
pear watch | Watch files and teach proactively in an interactive TUI |
pear ask "question" | Ask a question with full codebase context |
pear review | Review uncommitted changes with teaching feedback |
pear teach [topic] | Deep-dive teaching on a topic (optional) |
pear doctor | Check config, API keys, and provider connectivity |
pear hooks install | Install post-commit git hook |
pear hooks uninstall | Remove post-commit git hook |
pear progress | Show learning progress across sessions |
TUI slash commands
These commands are available inside the interactive TUI during pear watch.
| Command | Description |
|---|---|
/help | Show all available commands |
/watch | Start the file watcher |
/review | Review current changes |
/settings | Configure provider and model |
/status | Show session info |
/copy | Copy last response to clipboard |
/export | Export conversation to file |
/clear | Reset conversation history |
/quit | Exit pear |