Linux "rake" Command Line Options and Examples
make-like build utility for Ruby

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


Usage:

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




Command Line Options:

-m
Treat all tasks as multitasks.
rake -m ...
-B
Build all prerequisites, including those which are up-to-date.
rake -B ...
-j
Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).Modules
rake -j ...
-I
Include libdir in the search path for required modules.
rake -I ...
-r
Require module before executing rakefile.Rakefile location
rake -r ...
-f
Use filename as the rakefile to search for.
rake -f ...
-N
Do not search parent directories for the Rakefile.
rake -N ...
-G
Use standard project Rakefile search paths, ignore system wide rakefiles.
rake -G ...
-R
Auto-import any .rake files in rakelibdir (default is ‘rakelib’)
rake -R ...
-g
Use system-wide (global) rakefiles (usually ~/.rake/*.rake).Debugging
rake -g ...
--backtrace
Enable full backtrace. out can be stderr (default) or stdout.
rake --backtrace ...
-t
Turn on invoke/execute tracing, enable full backtrace. out can be stderr (default) or stdout.
rake -t ...
--suppress-backtrace
Suppress backtrace lines matching regexp pattern. Ignored if --trace is on.
rake --suppress-backtrace ...
--rules
Trace the rules resolution.
rake --rules ...
-n
Do a dry run without executing actions.
rake -n ...
-T
Display the tasks (matching optional pattern) with descriptions, then exit.
rake -T ...
-D
Describe the tasks (matching optional pattern), then exit.
rake -D ...
-W
Describe the tasks (matching optional pattern), then exit.
rake -W ...
-P
Display the tasks and dependencies, then exit.
rake -P ...
-e
Execute some Ruby code and exit.
rake -e ...
-p
Execute some Ruby code, print the result, then exit.
rake -p ...
-E
Execute some Ruby code, then continue with normal task processing.Information
rake -E ...
-v
Log message to standard output.
rake -v ...
-q
Do not log messages to standard output.
rake -q ...
-s
Like --quiet, but also suppresses the ‘in directory’ announcement.
rake -s ...
-X
Disable the deprecation warnings.
rake -X ...
--comments
Show commented tasks only
rake --comments ...
-A
Show all tasks, even uncommented ones (in combination with -T or -D)
rake -A ...
--job-stats
Display job statistics. If level is ‘history’, displays a complete job list.
rake --job-stats ...
-V
Display the program version.
rake -V ...
-h
Display a help message.
rake -h ...