OS Manuals

/usr/bin/pry

A runtime developer console and IRB alternative with powerful introspection capabilities

From ruby3.4-pry 0.16.1-r0 (os), captured 2026-11-05 by running pry --help (exit 0). permalink

Usage: pry [OPTIONS]
Start a Pry session.
See http://pry.github.io/ for more information.
Copyright (c) 2010 John Mair (banisterfiend)
    -e, --exec                A line of code to execute in context before the session starts
        --no-pager            Disable pager for long output
        --no-history          Disable history loading
        --no-color            Disable syntax highlighting for session
        --no-multiline        Disables multiline (defaults to true with Reline)
    -f,                       Suppress loading of pryrc
    -s, --select-plugin       Only load specified plugin (and no others).
    -d, --disable-plugin      Disable a specific plugin.
        --no-plugins          Suppress loading of plugins.
        --plugins             List installed plugins.
        --simple-prompt       Enable simple prompt mode
        --noprompt            No prompt mode
    -r, --require             `require` a Ruby script at startup
    -I,                       Add a path to the $LOAD_PATH
        --gem                 Shorthand for -I./lib -rgemname
    -v, --version             Display the Pry version
    -c, --context             Start the session in the specified context. Equivalent to `context.pry` in a session.
    -h, --help                Display this help message.
Options (18)
OptionDescriptionSource
-e, --execA line of code to execute in context before the session startshelp
--no-pagerDisable pager for long outputhelp
--no-historyDisable history loadinghelp
--no-colorDisable syntax highlighting for sessionhelp
--no-multilineDisables multiline (defaults to true with Reline)help
-fSuppress loading of pryrchelp
-s, --select-pluginOnly load specified plugin (and no others).help
-d, --disable-pluginDisable a specific plugin.help
--no-pluginsSuppress loading of plugins.help
--pluginsList installed plugins.help
--simple-promptEnable simple prompt modehelp
--nopromptNo prompt modehelp
-r, --require`require` a Ruby script at startuphelp
-IAdd a path to the $LOAD_PATHhelp
--gemShorthand for -I./lib -rgemnamehelp
-v, --versionDisplay the Pry versionhelp
-c, --contextStart the session in the specified context.help
-h, --helpDisplay this help message.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.