CLI Reference

Ralph provides a comprehensive set of commands for managing PRD-driven development sessions. This page gives an overview of all available commands.

Basic Usage

ralph                     # Open the Ralph UI
ralph <command> [options] # Run a specific command

Core Commands

CommandDescription
initInitialize a new PRD project
run [n]Run n iterations (default: 10)
resumeResume a previously interrupted session
stopStop a running Ralph process
statusShow current session state and progress

Task Commands

CommandDescription
task listList all tasks with status
task currentShow the next pending task
task done <id>Mark a task as done
task undone <id>Mark a task as not done
task addAdd a new task
task edit <id>Edit an existing task
task show <id>Show task details
task remove <id>Remove a task

Progress Commands

CommandDescription
progressShow progress notes
progress add <text>Add a progress note
progress clearClear all progress notes

Session Commands

CommandDescription
sessionShow session information
archiveArchive completed tasks and progress
clearClear session data (archives first)

Configuration Commands

CommandDescription
configView current configuration
setupConfigure global preferences

Guardrails Commands

CommandDescription
guardrailsList all guardrails
guardrails add <text>Add a new guardrail
guardrails remove <id>Remove a guardrail
guardrails toggle <id>Enable/disable a guardrail
guardrails generateAuto-generate guardrails

Dependency Commands

CommandDescription
dependencyShow dependency graph
dependency graphShow dependency graph
dependency validateValidate task dependencies
dependency readyShow tasks ready to start
dependency blockedShow blocked tasks
dependency orderShow execution order
dependency show <id>Show dependencies for a task
dependency set <id> [deps...]Set dependencies for a task
dependency add <id> <dep>Add a dependency to a task
dependency remove <id> <dep>Remove a dependency from a task

Analysis Commands

CommandDescription
analyzeShow failure pattern analysis
analyze debtShow technical debt review
analyze exportExport analysis as JSON
analyze clearClear failure history
memoryShow session memory
memory exportExport memory as markdown
memory clearClear session memory

GitHub Commands

CommandDescription
authShow authentication status
auth loginAuthenticate with GitHub
auth logoutDisconnect from GitHub
githubShow GitHub integration status

Project Commands

CommandDescription
projectsList all registered projects
projects currentShow current project details
projects pruneRemove invalid projects
migrateMigrate local .ralph to global storage

Utility Commands

CommandDescription
usageView usage statistics
updateCheck for and install updates
helpShow help message

Global Options

OptionDescription
-b, --backgroundRun in background/daemon mode
--dry-runSimulate without running agents
--jsonOutput in JSON format

Next Steps