Ruby on Rails/Built-In Rails Tools/Command-Line Reference

Rake can be executed with the following command-line options:


 * --dry-run or -n: Do a dry run without executing actions
 * --help or -H: Display a help message
 * --libdir=LIBDIR or -I LIBDIR: Include LIBDIR in the search path for required modules
 * --rakelibdir=RAKELIBDIR or -R RAKELIBDIR: Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
 * <tt>--nosearch</tt> or <tt>-N</tt>: Do not search parent directories for the Rakefile
 * <tt>--prereqs</tt> or <tt>-P</tt>: Display the tasks and dependencies, then exit
 * <tt>--quiet</tt> or <tt>-q</tt>: Do not log messages to standard output
 * <tt>--rakefile=FILE</tt> or <tt>-f FILE</tt>: Use FILE as the rakefile
 * <tt>--require=MODULE</tt> or <tt>-r MODULE</tt>: Require MODULE before executing rakefile
 * <tt>--silent</tt> or <tt>-s</tt>: Like <tt>--quiet</tt>, but also suppresses the 'in directory' announcement
 * <tt>--tasks[=PATTERN]</tt> or <tt>-T [PATTERN]</tt>: Display the tasks (matching optional PATTERN) with descriptions, then exit
 * <tt>--trace</tt> or <tt>-t</tt>: Turn on invoke/execute tracing, enable full backtrace
 * <tt>--usage</tt> or <tt>-h</tt>: Display usage
 * <tt>--verbose</tt> or <tt>-v</tt>: Log message to standard output (default)
 * <tt>--version</tt> or <tt>-V</tt>: Display the program version
 * <tt>--classic-namespace</tt> or <tt>-C</tt>: Put Task and FileTask in the top level namespace