Install the Ralph CLI to your system PATH for easy terminal access
Installs the Ralph CLI to system PATH for terminal access.
/plugin marketplace add eumemic/ralph/plugin install ralph@ralph-marketplaceHelp the user install the ralph CLI command to their system so they can run ralph plan and ralph build from any project directory.
Detect the user's environment:
~/.local/bin exists and is in PATHOffer installation options based on what's available:
Option A: ~/.local/bin (Recommended for most users)
~/.local/bin if it doesn't existOption B: Symlink to /usr/local/bin
Option C: Shell alias
Execute the chosen installation:
For Option A (recommended):
mkdir -p ~/.local/bin
ln -sf "${CLAUDE_PLUGIN_ROOT}/scripts/ralph" ~/.local/bin/ralph
chmod +x ~/.local/bin/ralph
Then check if ~/.local/bin is in PATH. If not, tell them to add:
# For bash (~/.bashrc):
export PATH="$HOME/.local/bin:$PATH"
# For zsh (~/.zshrc):
export PATH="$HOME/.local/bin:$PATH"
# For fish (~/.config/fish/config.fish):
fish_add_path ~/.local/bin
For Option B:
sudo ln -sf "${CLAUDE_PLUGIN_ROOT}/scripts/ralph" /usr/local/bin/ralph
For Option C:
# Add to shell config:
alias ralph='${CLAUDE_PLUGIN_ROOT}/scripts/ralph'
Verify the installation:
which ralph
ralph --help
Tell the user they may need to restart their terminal or run source ~/.bashrc (or equivalent) for changes to take effect.
${CLAUDE_PLUGIN_ROOT}/scripts/ralph is the main entry pointloop.sh and handles the plan/build subcommands${CLAUDE_PLUGIN_ROOT} for paths - never hardcode the plugin location