rake1
Make-like build utility for ruby
Usage
rake [-f
rakefile]
[options]
targets ...
Overview
rake is a make(1)-like build utility for Ruby. Tasks and dependencies are specified in standard Ruby syntax.
Options
-
-m, --multitask -
Treat all tasks as multitasks.
-
-B, --build-all -
Build all prerequisites, including those which are up-to-date.
-
-j, --jobs num_jobs -
Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).
Modules
-
-I, --libdir libdir -
Include libdir in the search path for required modules.
-
-r, --require module -
Require module before executing rakefile.
Rakefile location
-
-f, --rakefile filename -
Use filename as the rakefile to search for.
-
-N, --no-search, --nosearch -
Do not search parent directories for the Rakefile.
-
-G, --no-system, --nosystem -
Use standard project Rakefile search paths, ignore system wide rakefiles.
-
-R, --rakelib rakelibdir, --rakelibdir rakelibdir -
Auto-import any .rake files in rakelibdir (default is ‘rakelib’)
-
-g, --system -
Use system-wide (global) rakefiles (usually ~/.rake/*.rake).
Debugging
-
--backtrace=out -
Enable full backtrace. out can be stderr (default) or stdout.
-
-t, --trace=out -
Turn on invoke/execute tracing, enable full backtrace. out can be stderr (default) or stdout.
-
--suppress-backtrace pattern -
Suppress backtrace lines matching regexp pattern. Ignored if
--traceis on. -
--rules -
Trace the rules resolution.
-
-n, --dry-run -
Do a dry run without executing actions.
-
-T, --tasks [pattern] -
Display the tasks (matching optional pattern) with descriptions, then exit.
-
-D, --describe [pattern] -
Describe the tasks (matching optional pattern), then exit.
-
-W, --where [pattern] -
Describe the tasks (matching optional pattern), then exit.
-
-P, --prereqs -
Display the tasks and dependencies, then exit.
-
-e, --execute code -
Execute some Ruby code and exit.
-
-p, --execute-print code -
Execute some Ruby code, print the result, then exit.
-
-E, --execute-continue code -
Execute some Ruby code, then continue with normal task processing.
Information
-
-v, --verbose -
Log message to standard output.
-
-q, --quiet -
Do not log messages to standard output.
-
-s, --silent -
Like
--quiet, but also suppresses the ‘in directory’ announcement. -
-X, --no-deprecation-warnings -
Disable the deprecation warnings.
-
--comments -
Show commented tasks only
-
-A, --all -
Show all tasks, even uncommented ones (in combination with
-Tor-D) -
--job-stats [level] -
Display job statistics. If level is ‘history’, displays a complete job list.
-
-V, --version -
Display the program version.
-
-h, -H, --help -
Display a help message.
Releases
103 releases since Mac OS X 10.5; the text changed 3 times.
--all since macOS 10.13;
--backtrace since macOS 10.13;
--build-all since macOS 10.13;
--comments since macOS 10.13;
--describe since OS X 10.9;
--dry-run since OS X 10.9;
--execute since OS X 10.9;
--execute-continue since OS X 10.9;
--execute-print since OS X 10.9;
--help since OS X 10.9;
--job-stats since macOS 10.13;
--jobs since macOS 10.13;
--libdir since OS X 10.9;
--multitask since macOS 10.13;
--no-deprecation-warnings since macOS 10.13;
--no-search since OS X 10.9;
--no-system since OS X 10.9;
--nosearch since OS X 10.9;
--nosystem since OS X 10.9;
--prereqs since OS X 10.9;
--quiet since OS X 10.9;
--rakefile since OS X 10.9;
--rakelib since macOS 10.15;
--rakelibdir since OS X 10.9;
--require since OS X 10.9;
--rules since OS X 10.9;
--silent since OS X 10.9;
--suppress-backtrace since macOS 10.13;
--system since OS X 10.9;
--tasks since OS X 10.9;
--trace since OS X 10.9;
--verbose since OS X 10.9;
--version since OS X 10.9;
--where since macOS 10.13;
-A since macOS 10.13;
-B since macOS 10.13;
-D since OS X 10.9;
-E since OS X 10.9;
-G since OS X 10.9;
-H since macOS 10.13;
-I since OS X 10.9;
-N since OS X 10.9;
-P since OS X 10.9;
-R since OS X 10.9;
-T since OS X 10.9;
-V since macOS 10.13;
-W since macOS 10.13;
-X since macOS 10.13;
-e since OS X 10.9;
-f since OS X 10.9;
-g since OS X 10.9;
-h since OS X 10.9;
-j since macOS 10.13;
-m since macOS 10.13;
-n since OS X 10.9;
-p since OS X 10.9;
-q since OS X 10.9;
-r since OS X 10.9;
-s since OS X 10.9;
-t since OS X 10.9;
-v since OS X 10.9.
--classic-namespace until macOS 10.12.6;
-C until macOS 10.12.6.