CLI Reference

All commands, flags, and environment variables for the grut command-line interface.

Root Command

grut [flags] [command]

AI-native terminal file explorer, git client, and agent orchestrator. Running grut with no arguments launches the interactive TUI in the current directory.

Global Flags

KeyAction
--no-aiDisable AI features for this operation
--demoLaunch with a demo project to explore grüt
-h, --helpShow help information
-v, --versionShow version information

Environment Variables

KeyAction
GRUT_LOGPath to a log file (enables debug logging)
# Enable debug logging
export GRUT_LOG=/tmp/grut-debug.log
grut

Commands

version

Print the current grüt version.

grut version

update

Update grüt to the latest release. Downloads are SHA-256 verified to ensure integrity.

grut update

mcp

Run grüt as an MCP (Model Context Protocol) server, communicating via stdin/stdout JSON-RPC.

# Standard MCP mode (stdin/stdout)
grut mcp

# TUI + MCP mode (socket transport)
grut mcp --socket
KeyAction
--socketUse socket transport for TUI+MCP mode

run

Execute an AI-powered git workflow shortcut. Shortcuts are predefined sequences of git operations that can be invoked by name.

# Run a shortcut
grut run pr-review

# List available shortcuts
grut run --list

# Describe what a shortcut does
grut run --describe pr-review

# Preview without executing
grut run --dry-run pr-review

# Skip confirmation prompts
grut run --no-confirm pr-review
KeyAction
--listList all available shortcuts
--describe <name>Show what a shortcut does without running it
--dry-runPreview the operations without executing them
--no-confirmSkip confirmation prompts

ext

Manage grüt extensions. Extensions add new panels, commands, and integrations to the TUI.

# Create a new extension scaffold
grut ext create my-extension

# Install an extension
grut ext install my-extension

# Remove an extension
grut ext remove my-extension

# List installed extensions
grut ext list

# Enable / disable an extension
grut ext enable my-extension
grut ext disable my-extension

# Show extension details
grut ext info my-extension
KeyAction
createScaffold a new extension project
installInstall an extension
removeRemove an installed extension
listList all installed extensions
enableEnable a disabled extension
disableDisable an extension without removing it
infoShow details about an extension

Examples

# Launch grüt in the current directory
grut

# Launch with AI features disabled
grut --no-ai

# Try grüt with a demo project
grut --demo

# Update to the latest version
grut update

# Use as an MCP server in your AI toolchain
grut mcp --socket