The following guide assumes that you already have Drush installed and running. If Drush is not installed in your system pleas read Specific instructions for installing Drush on different platforms.
In previous versions, the Omega theme Drush integration was provided by a module (Omega Tools). However, the maintainers of Drush recently added command discovery for themes which now allows us to ship the Drush integration directly with the Omega theme instead of maintaining a separate module. Omega Tools has consequently been deprecated and will no longer be maintained for the 4.x version of Omega.
Please do not install Omega Tools when running Omega 4.x. It might overlap/collide with the Drush integration provided by the theme.
Once you have Drush installed and working you can download Omega 4.x by navigating into your Drupal directory and issues the following command.
drush dl omega
This will automatically download and place Omega 4.x in
Drush has an internal cache that you may have to clear in order to make use of the Omega related commands. The following command clears the internal Drush cache.
drush cc drush
Now, you can list the available commands.
Or, in order to just show the commands provided by Omega:
drush help --filter=omega
If you can see Omega related commands in the list, you are done. You are now ready to generate your first Omega sub-theme.
If you don't see the Omega related commands, please check your Drush installation and make sure that you are using the latest version.
If you have the latest version of Drush installed and are still unable to access the Omega related commands, please check your server's PHP version:
Upgrading to a version of PHP greater than 5.3.3 on your server may help resolve this issue.
For those with centOS / RHEL servers, these instructions may prove helpful for upgrading your version of PHP.
- omega-export (oexp)
Exports the theme settings of a given theme from the database to the .info file.
- omega-guard (ogrd)
Runs guard for the given theme including Compass and LiveReload by default.
- omega-revert (orev)
Reverts the theme settings of a given theme by deleting them from the database.
- omega-subtheme (osub)
Creates a Omega subtheme.
- omega-wizard (owiz)
Guides you through a wizard for generating a subtheme.
When generating a new sub-theme it is recommended that you use the "omega-wizard" (owiz) command. It guides you through the process and internally invokes the "omega-subtheme" (osub) command when finished with gathering the necessary information and therefore is much more convenient.