A Raycast extension that lets you run and manage your favorite CLI commands in a fast and keyboard-first way with LRU (Least Recently Used) history.
- Command Execution: Execute any CLI command directly from Raycast
- LRU History: Commands are automatically stored and sorted by least recently used
- Search & Filter: Quickly find commands in your history
- Keyboard Shortcuts: Full keyboard navigation and shortcuts
- Command Management: Delete individual commands or clear entire history
- Configurable: Customize shell and history size preferences
- Launch Commander from Raycast
- Type a command in the search bar (e.g.,
brew update,ls -la,git status) - Press Cmd+Enter to execute the command
- Browse history - previously executed commands appear below
- Select from history - click or use arrow keys to select and execute
Cmd+Enter- Execute the typed command or selected history itemCmd+C- Copy selected command to clipboardCmd+Delete- Delete selected command from historyCmd+Shift+Delete- Clear entire command history
You can customize the extension behavior in Raycast preferences:
- Maximum History Size: Set how many commands to keep in history (default: 50)
- Default Shell: Specify which shell to use for command execution (default: /bin/zsh)
- Shell Profile: Specify a shell profile to source (e.g.,
~/.zshrc,~/.bash_profile) to ensure your PATH and environment variables are loaded
If you get "command not found" errors (like with node, npm, brew, etc.), try:
- Set the Shell Profile preference to your shell configuration file (e.g.,
~/.zshrc) - Make sure the command is installed and available in your shell
- Check that your PATH environment variable includes the necessary directories
Some commands may require elevated permissions. The extension runs commands with your user permissions.
Commands are automatically sorted by "Least Recently Used" order:
- New commands are added to the end of the list
- When you execute an existing command, it moves to the end (most recently used)
- Commands that haven't been used in a while appear at the top
- This helps you quickly access commands you haven't used recently
Common commands you might use:
brew update- Update Homebrew packagesgit status- Check git repository statusls -la- List all files with detailsnpm install- Install npm packagesdocker ps- List running Docker containersssh user@server- Connect to remote server
This extension is built with:
- React
- TypeScript
- Raycast API
- Node.js child_process for command execution
src/
components/ # React components
utils/ # Helper utilities
types.ts # Shared TypeScript types
commandor.tsx # Entry point exporting the Commander component
MIT