drush makefor drush 8x


Turns a makefile into a working Drupal codebase.

drush make

  • Arguments


    make accepts 2 argument/s:


    makefile : Filename of the makefile to use for this build.

    build path : The path at which to build the makefile.

  • Options


    make accepts 35 option/s:


    --version : Print the make API version and exit.

    --concurrency : Set the number of concurrent projects that will be processed at the same time. The default is 1.

    --contrib-destination : Specify a path under which modules and themes should be placed. Defaults to sites/all for Drupal 6,7 and the corresponding directory in the Drupal root for Drupal 8 and above.

    --force-complete : Force a complete build even if errors occur.

    --ignore-checksums : Ignore md5 checksums for downloads.

    --md5 : Output an md5 hash of the current build after completion. Use --md5=print to print to stdout.

    --make-update-default-url : The default location to load the XML update information from.

    --no-build : Do not build a codebase. Makes the `build path` argument optional.

    --no-cache : Do not use the pm-download caching (defaults to cache enabled).

    --no-clean : Leave temporary build directories in place instead of cleaning up after completion.

    --no-core : Do not require a Drupal core project to be specified.

    --no-recursion : Do not recurse into the makefiles of any downloaded projects; you can also set [do_recursion] = 0 on a per-project basis in the makefile.

    --no-patch-txt : Do not write a PATCHES.txt file in the directory of each patched project.

    --no-gitinfofile : Do not modify .info files when cloning from Git.

    --force-gitinfofile : Force a modification of .info files when cloning from Git even if repository isn't hosted on Drupal.org.

    --no-gitprojectinfo : Do not inject project info into .info files when cloning from Git.

    --overwrite : Overwrite existing directories. Default is to merge.

    --prepare-install : Prepare the built site for installation. Generate a properly permissioned settings.php and files directory.

    --tar : Generate a tar archive of the build. The output filename will be [build path].tar.gz.

    --test : Run a temporary test build and clean up.

    --translations : Retrieve translations for the specified comma-separated list of language(s) if available for all projects.

    --working-copy : Preserves VCS directories, like .git, for projects downloaded using such methods.

    --download-mechanism : How to download files. Should be autodetected, but this is an override if it doesn't work. Options are "curl" and "make" (a native download method).

    --projects : Restrict the make to this comma-separated list of projects. To specify all projects, pass *.

    --libraries : Restrict the make to this comma-separated list of libraries. To specify all libraries, pass *.

    --allow-override : Restrict the make options to a comma-separated list. Defaults to unrestricted.

    --lock : Generate a makefile, based on the one passed in, with all versions *resolved*. Defaults to printing to the terminal, but an output file may be provided.

    --shallow-clone : For makefile entries which use git for downloading, this option will utilize shallow clones where possible (ie. by using the git-clone's depth=1 option). If the "working-copy" option is not desired, this option will significantly speed up makes which involve modules stored in very large git repos. In fact, if "working-copy" option is enabled, this option cannot be used.

    --bundle-lockfile : Generate a lockfile for this build and copy it into the codebase (at sites/all/drush/platform.lock). An alternate path (relative to the Drupal root) can also be specified

    --format : The format for generated lockfiles. Options are "yaml" or "ini". Defaults to "yaml".

    --core-quick-drupal : Return project info for use by core-quick-drupal.

    --includes : A list of makefiles to include at build-time.

    --overrides : A list of makefiles to that can override values in other makefiles.

    --source : The base URL which provides project release history in XML. Defaults to http://updates.drupal.org/release-history.

    --dev : Work with development releases solely.

  • Examples


    Build the example.make makefile in the example directory.

    drush make example.make example

    Build an installation profile within an existing Drupal site

    drush make --no-core --contrib-destination=. installprofile.make

    Build the remote example.make makefile in the example directory.

    drush make http://example.com/example.make example

    Write a new makefile to example.lock. All project versions will be resolved.

    drush make example.make --no-build --lock=example.lock

  • Comments


    comments powered by Disqus