Skip to content

CLI Reference

In addition to its interactive TUI, Crush provides a full command-line interface for automation, scripting, and management tasks.

Global Flags

These flags work with most Crush commands:

FlagShortDescription
--session-sContinue a previous session by ID
--continue-CContinue the most recent session
--host-HConnect to a specific Crush server host
--data-dir-DCustom Crush data directory
--cwd-cSet the current working directory
--debug-dEnable debug logging
--yolo-yEnable YOLO mode (no permission prompts)

Commands

CommandDescription
crush runRun a single non-interactive prompt
crush sessionManage sessions (list, show, delete, rename)
crush modelsList all available models
crush loginAuthenticate with a platform
crush logoutSign out from a platform
crush statsShow usage statistics
crush logsView application logs
crush update-providersUpdate provider model listings
crush projectsList project directories
crush dirsShow config and data directories
crush serverStart the Crush server

crush projects

List all project directories where Crush has stored data:

bash
crush projects

Use --json for machine-readable output.

crush dirs

Show where Crush stores its configuration and data:

bash
crush dirs

crush server

Start a Crush server for remote connections:

bash
crush server --host localhost:8080

The server allows multiple clients to connect to a shared Crush instance.