Scroll to navigation

RAKE(1) General Commands Manual RAKE(1)

NAME

rakemake-like build utility for Ruby

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

, --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).

Modules

, --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).

Debugging

=out
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.
pattern
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.

Information

, --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)
[level]
Display job statistics. If level is ‘history’, displays a complete job list.
, --version
Display the program version.
, -H, --help
Display a help message.

SEE ALSO

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

AUTHORS

rake was written by Jim Weirich <jim@weirichhouse.org>.

This manual was created by Caitlin Matos <caitlin.matos@zoho.com> for the Debian project (but may be used by others). It was inspired by the manual by Jani Monoses <jani@iv.ro> for the Ubuntu project.

June 12, 2016 rake 11.2.2