{
    "mode": "man",
    "parameter": "rake",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/rake/1/json",
    "generated": "2026-06-15T14:23:07Z",
    "synopsis": "rake [-f rakefile] [options] targets ...",
    "sections": {
        "NAME": {
            "content": "rake — make-like build utility for Ruby\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rake [-f rakefile] [options] targets ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "rake is a make(1)-like build utility for Ruby.  Tasks and dependencies are specified in stan‐\ndard Ruby syntax.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-m --multitask",
                    "content": "Treat all tasks as multitasks.\n",
                    "flag": "-m",
                    "long": "--multitask"
                },
                {
                    "name": "-B --build-all",
                    "content": "Build all prerequisites, including those which are up-to-date.\n",
                    "flag": "-B",
                    "long": "--build-all"
                },
                {
                    "name": "-j --jobs",
                    "content": "Specifies the maximum number of tasks to execute in parallel (default is number of CPU\ncores + 4).\n",
                    "flag": "-j",
                    "long": "--jobs"
                },
                {
                    "name": "Modules",
                    "content": ""
                },
                {
                    "name": "-I --libdir",
                    "content": "Include libdir in the search path for required modules.\n",
                    "flag": "-I",
                    "long": "--libdir"
                },
                {
                    "name": "-r --require",
                    "content": "Require module before executing rakefile.\n",
                    "flag": "-r",
                    "long": "--require"
                },
                {
                    "name": "Rakefile location",
                    "content": ""
                },
                {
                    "name": "-f --rakefile",
                    "content": "Use filename as the rakefile to search for.\n",
                    "flag": "-f",
                    "long": "--rakefile"
                },
                {
                    "name": "-N --no-search --nosearch",
                    "content": "Do not search parent directories for the Rakefile.\n",
                    "flag": "-N",
                    "long": "--nosearch"
                },
                {
                    "name": "-G --no-system --nosystem",
                    "content": "Use standard project Rakefile search paths, ignore system wide rakefiles.\n",
                    "flag": "-G",
                    "long": "--nosystem"
                },
                {
                    "name": "-R --rakelib --rakelibdir",
                    "content": "Auto-import any .rake files in rakelibdir (default is ‘rakelib’)\n",
                    "flag": "-R",
                    "long": "--rakelibdir"
                },
                {
                    "name": "-g --system",
                    "content": "Use system-wide (global) rakefiles (usually ~/.rake/*.rake).\n",
                    "flag": "-g",
                    "long": "--system"
                },
                {
                    "name": "Debugging",
                    "content": "--backtrace=out\nEnable full backtrace.  out can be stderr (default) or stdout.\n"
                },
                {
                    "name": "-t --trace",
                    "content": "Turn on invoke/execute tracing, enable full backtrace.  out can be stderr (default) or\nstdout.\n\n--suppress-backtrace pattern\nSuppress backtrace lines matching regexp pattern.  Ignored if --trace is on.\n",
                    "flag": "-t",
                    "long": "--trace"
                },
                {
                    "name": "--rules",
                    "content": "Trace the rules resolution.\n",
                    "long": "--rules"
                },
                {
                    "name": "-n --dry-run",
                    "content": "Do a dry run without executing actions.\n",
                    "flag": "-n",
                    "long": "--dry-run"
                },
                {
                    "name": "-T --tasks",
                    "content": "Display the tasks (matching optional pattern) with descriptions, then exit.\n",
                    "flag": "-T",
                    "long": "--tasks"
                },
                {
                    "name": "-D --describe",
                    "content": "Describe the tasks (matching optional pattern), then exit.\n",
                    "flag": "-D",
                    "long": "--describe"
                },
                {
                    "name": "-W --where",
                    "content": "Describe the tasks (matching optional pattern), then exit.\n",
                    "flag": "-W",
                    "long": "--where"
                },
                {
                    "name": "-P --prereqs",
                    "content": "Display the tasks and dependencies, then exit.\n",
                    "flag": "-P",
                    "long": "--prereqs"
                },
                {
                    "name": "-e --execute",
                    "content": "Execute some Ruby code and exit.\n",
                    "flag": "-e",
                    "long": "--execute"
                },
                {
                    "name": "-p --execute-print",
                    "content": "Execute some Ruby code, print the result, then exit.\n",
                    "flag": "-p",
                    "long": "--execute-print"
                },
                {
                    "name": "-E --execute-continue",
                    "content": "Execute some Ruby code, then continue with normal task processing.\n",
                    "flag": "-E",
                    "long": "--execute-continue"
                },
                {
                    "name": "Information",
                    "content": ""
                },
                {
                    "name": "-v --verbose",
                    "content": "Log message to standard output.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-q --quiet",
                    "content": "Do not log messages to standard output.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-s --silent",
                    "content": "Like --quiet, but also suppresses the ‘in directory’ announcement.\n",
                    "flag": "-s",
                    "long": "--silent"
                },
                {
                    "name": "-X --no-deprecation-warnings",
                    "content": "Disable the deprecation warnings.\n",
                    "flag": "-X",
                    "long": "--no-deprecation-warnings"
                },
                {
                    "name": "--comments",
                    "content": "Show commented tasks only\n",
                    "long": "--comments"
                },
                {
                    "name": "-A --all",
                    "content": "Show all tasks, even uncommented ones (in combination with -T or -D)\n\n--job-stats [level]\nDisplay job statistics.  If level is ‘history’, displays a complete job list.\n",
                    "flag": "-A",
                    "long": "--all"
                },
                {
                    "name": "-V --version",
                    "content": "Display the program version.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-h -H --help",
                    "content": "Display a help message.\n",
                    "flag": "-H",
                    "long": "--help"
                }
            ]
        },
        "SEE ALSO": {
            "content": "The complete documentation for rake has been installed at\n/usr/share/doc/rake-doc/html/index.html.  It is also available online at\nhttps://ruby.github.io/rake.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "rake was written by Jim Weirich <jim@weirichhouse.org>.\n\nThis manual was created by Caitlin Matos <caitlin.matos@zoho.com> for the Debian project (but\nmay be used by others).  It was inspired by the manual by Jani Monoses <jani@iv.ro> for the\nUbuntu project.\n\nrake 11.2.2                      June 12, 2016                     rake 11.2.2",
            "subsections": []
        }
    },
    "summary": "rake — make-like build utility for Ruby",
    "flags": [
        {
            "flag": "-m",
            "long": "--multitask",
            "arg": null,
            "description": "Treat all tasks as multitasks."
        },
        {
            "flag": "-B",
            "long": "--build-all",
            "arg": null,
            "description": "Build all prerequisites, including those which are up-to-date."
        },
        {
            "flag": "-j",
            "long": "--jobs",
            "arg": null,
            "description": "Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4)."
        },
        {
            "flag": "-I",
            "long": "--libdir",
            "arg": null,
            "description": "Include libdir in the search path for required modules."
        },
        {
            "flag": "-r",
            "long": "--require",
            "arg": null,
            "description": "Require module before executing rakefile."
        },
        {
            "flag": "-f",
            "long": "--rakefile",
            "arg": null,
            "description": "Use filename as the rakefile to search for."
        },
        {
            "flag": "-N",
            "long": "--nosearch",
            "arg": null,
            "description": "Do not search parent directories for the Rakefile."
        },
        {
            "flag": "-G",
            "long": "--nosystem",
            "arg": null,
            "description": "Use standard project Rakefile search paths, ignore system wide rakefiles."
        },
        {
            "flag": "-R",
            "long": "--rakelibdir",
            "arg": null,
            "description": "Auto-import any .rake files in rakelibdir (default is ‘rakelib’)"
        },
        {
            "flag": "-g",
            "long": "--system",
            "arg": null,
            "description": "Use system-wide (global) rakefiles (usually ~/.rake/*.rake)."
        },
        {
            "flag": "-t",
            "long": "--trace",
            "arg": null,
            "description": "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 --trace is on."
        },
        {
            "flag": "",
            "long": "--rules",
            "arg": null,
            "description": "Trace the rules resolution."
        },
        {
            "flag": "-n",
            "long": "--dry-run",
            "arg": null,
            "description": "Do a dry run without executing actions."
        },
        {
            "flag": "-T",
            "long": "--tasks",
            "arg": null,
            "description": "Display the tasks (matching optional pattern) with descriptions, then exit."
        },
        {
            "flag": "-D",
            "long": "--describe",
            "arg": null,
            "description": "Describe the tasks (matching optional pattern), then exit."
        },
        {
            "flag": "-W",
            "long": "--where",
            "arg": null,
            "description": "Describe the tasks (matching optional pattern), then exit."
        },
        {
            "flag": "-P",
            "long": "--prereqs",
            "arg": null,
            "description": "Display the tasks and dependencies, then exit."
        },
        {
            "flag": "-e",
            "long": "--execute",
            "arg": null,
            "description": "Execute some Ruby code and exit."
        },
        {
            "flag": "-p",
            "long": "--execute-print",
            "arg": null,
            "description": "Execute some Ruby code, print the result, then exit."
        },
        {
            "flag": "-E",
            "long": "--execute-continue",
            "arg": null,
            "description": "Execute some Ruby code, then continue with normal task processing."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Log message to standard output."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Do not log messages to standard output."
        },
        {
            "flag": "-s",
            "long": "--silent",
            "arg": null,
            "description": "Like --quiet, but also suppresses the ‘in directory’ announcement."
        },
        {
            "flag": "-X",
            "long": "--no-deprecation-warnings",
            "arg": null,
            "description": "Disable the deprecation warnings."
        },
        {
            "flag": "",
            "long": "--comments",
            "arg": null,
            "description": "Show commented tasks only"
        },
        {
            "flag": "-A",
            "long": "--all",
            "arg": null,
            "description": "Show all tasks, even uncommented ones (in combination with -T or -D) --job-stats [level] Display job statistics. If level is ‘history’, displays a complete job list."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Display the program version."
        },
        {
            "flag": "-H",
            "long": "--help",
            "arg": null,
            "description": "Display a help message."
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "A Make-like program for Ruby.",
        "examples": [
            {
                "description": "Run the `default` Rakefile task",
                "command": "rake"
            },
            {
                "description": "Run a specific task",
                "command": "rake {{task}}"
            },
            {
                "description": "Execute `n` jobs at a time in parallel (number of CPU cores + 4 by default)",
                "command": "rake --jobs {{n}}"
            },
            {
                "description": "Use a specific Rakefile",
                "command": "rake --rakefile {{path/to/Rakefile}}"
            },
            {
                "description": "Execute `rake` from another directory",
                "command": "rake --directory {{path/to/directory}}"
            }
        ]
    }
}