Cheat Sheet
Usage, detaild features, commands and keybindings of crush
CLI Overview
Crush comes with useful CLI that have good flags that will help you while you use it.
Usage
crush [command] [--flags]Examples
# Run in interactive mode
crush
# Run with debug logging
crush -d
# Run with debug logging in a specific directory
crush -d -c /path/to/project
# Print version
crush -v
# Run a single non-interactive prompt
crush run "Explain the use of context in Go"
# Run in dangerous mode (auto-accept all permissions)
crush -yCommands
| Command | Description |
|---|---|
completion [command] | Generate the autocompletion script for the specified shell |
help [command] | Help about any command |
logs [--flags] | View crush logs |
run [prompt...] | Run a single non-interactive prompt |
Global Flags
| Flag | Alias | Description |
|---|---|---|
--cwd | -c | Current working directory |
--debug | -d | Enable debug mode |
--help | -h | Show help |
--version | -v | Print version for Crush |
--yolo | -y | Automatically accept all permissions (dangerous mode) |
Sub commands
# completion sub-command
You can add crush cli commands auto completion for your shell and we support those right now:
crush completion bash crush completion fish crush completion powershell crush completion zsh Usage
crush completion [command] --flags
Flags:
| Flag | Alias | Description |
|---|---|---|
--cwd | -c | Current working directory |
--debug | -d | Enable debug mode |
--help | -h | Show help for completion command |
# run sub-command
If you don't want to run the whole TUI and just need a quick single prompt, the run command is for you.
Run a simple prompt:
ask a question directly
crush run Explain the use of context in GoPipe input from stdin:
If you want to run it using echo
echo "What is this code doing?" | crush runRun with quiet mode (no spinner)
This will disable the response spinner
crush run -q "Generate a README for this project"Usage
crush run [prompt ...] [--flags]
Flags
| Flag | Alias | Description |
|---|---|---|
--cwd | -c | Current working directory |
--debug | -d | Enable debug mode |
--help | -h | Show help for run command |
--quiet | -q | Hide spinner |
# logs sub-command
You can view the logs generated by Crush.
This command allows you to monitor and debug by inspecting the log output.
Usage
crush logs [--flags]
Flags
| Flag | Alias | Description |
|---|---|---|
--cwd | -c | Current working directory |
--debug | -d | Enable debug mode |
--follow | -f | Follow log output |
--help | -h | Show help for logs command |
--tail | -t | Show only the last N lines (default: 1000) |
TUI Overview
The Crush TUI provides a set of keyboard shortcuts and commands that make it faster and easier to interact with the assistant directly from your terminal.
Below you can find the main keybindings and the available commands you can trigger inside the TUI.
Keybindings
Keybindings are the main shortcuts you can use inside the TUI to quickly perform actions without leaving the keyboard.
General
These are basic shortcuts that help you interact with the chat smoothly.
| Keybinding | Action |
|---|---|
Tab | Focus the chat panel |
Shift+Enter | Insert a newline without sending the message |
Navigation
Use these shortcuts to move around the interface or trigger quick navigation features.
| Keybinding | Action |
|---|---|
Ctrl+G | Toggle between less (when opened) and more (when closed) |
Ctrl+P | Open the commands palette |
Ctrl+F | Add an image to the chat |
Sessions
Manage and organize your sessions (chat contexts) using these shortcuts.
| Keybinding | Action |
|---|---|
Ctrl+S | Manage sessions / add a file |
Ctrl+N | Create a new session |
Ctrl+O | Open the editor |
Commands
The commands palette (opened with Ctrl+P) allows you to access higher-level actions inside the TUI.
Think of it like a quick menu where you can start sessions, switch models, or toggle features without remembering all the shortcuts.
| Command | Keybinding | Description |
|---|---|---|
New Session | Ctrl+N | Create a new session |
Switch Session | Ctrl+S | Switch between sessions |
Switch Model | — | Change the active AI model |
Summarize Session | — | Generate a summary of the session |
Toggle Sidebar | — | Show or hide the sidebar |
Open File Picker | Ctrl+F | Open the file picker |
Toggle Yolo Mode | Ctrl+G | Enable/disable dangerous mode |
Toggle Help | — | Show or hide help inside the TUI |
Initialize Project | — | Initialize project in current folder |
Quit | Ctrl+C | Exit Crush |
How is this guide?