Create simple modules with Drush.

Usage:

drush modulesmith-forge modulename
drush msf modulename sites/all/modules/custom

By default, it will try to put it in the following paths:

sites/all/modules/custom
sites/all/modules
profiles/INSTALLPROFILE/modules/custom
profiles/INSTALLPROFILE/modules

Install

Via drush:

drush dl drush_modulesmith

Manually:

cd ~/.drush/
git clone git@github.com:robballou/drush_modulesmith.git

Why this command?

You can use module_builder to build modules. It's a great tool and fully featured. module_builder normally installs into your project though (but it doesn't have to). And it does quite a lot (which is good ... unless you need something simple). This just adds a module skeleton for you and you can then add your code as needed.

Project information

  • chart icon896 downloads
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Downloads