Scroll to navigation

RAKE(1) General Commands Manual RAKE(1)


rakemake-like build utility for Ruby


rake [-f rakefile] [options] targets ...


rake is a make(1)-like build utility for Ruby. Tasks and dependencies are specified in standard Ruby syntax.


, --multitask
Treat all tasks as multitasks.
, --build-all
Build all prerequisites, including those which are up-to-date.
, --jobs num_jobs
Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).


, --libdir libdir
Include libdir in the search path for required modules.
, --require module
Require module before executing rakefile.

Rakefile location

, --rakefile filename
Use filename as the rakefile to search for.
, --no-search, --nosearch
Do not search parent directories for the Rakefile.
, --no-system, --nosystem
Use standard project Rakefile search paths, ignore system wide rakefiles.
, --rakelib rakelibdir, --rakelibdir rakelibdir
Auto-import any .rake files in rakelibdir (default is ‘rakelib’)
, --system
Use system-wide (global) rakefiles (usually ~/.rake/*.rake).


Enable full backtrace. out can be stderr (default) or stdout.
, --trace=out
Turn on invoke/execute tracing, enable full backtrace. out can be stderr (default) or stdout.
Suppress backtrace lines matching regexp pattern. Ignored if --trace is on.
Trace the rules resolution.
, --dry-run
Do a dry run without executing actions.
, --tasks [pattern]
Display the tasks (matching optional pattern) with descriptions, then exit.
, --describe [pattern]
Describe the tasks (matching optional pattern), then exit.
, --where [pattern]
Describe the tasks (matching optional pattern), then exit.
, --prereqs
Display the tasks and dependencies, then exit.
, --execute code
Execute some Ruby code and exit.
, --execute-print code
Execute some Ruby code, print the result, then exit.
, --execute-continue code
Execute some Ruby code, then continue with normal task processing.


, --verbose
Log message to standard output.
, --quiet
Do not log messages to standard output.
, --silent
Like --quiet, but also suppresses the ‘in directory’ announcement.
, --no-deprecation-warnings
Disable the deprecation warnings.
Show commented tasks only
, --all
Show all tasks, even uncommented ones (in combination with -T or -D)
Display job statistics. If level is ‘history’, displays a complete job list.
, --version
Display the program version.
, -H, --help
Display a help message.


The complete documentation for rake has been installed at /usr/share/doc/rake-doc/html/index.html. It is also available online at


rake was written by Jim Weirich <>.

This manual was created by Caitlin Matos <> for the Debian project (but may be used by others). It was inspired by the manual by Jani Monoses <> for the Ubuntu project.

June 12, 2016 rake 11.2.2