Loading...

Site Studio drush commands

Site Studio includes some useful Drush commands which are available to use within your terminal application.

General

CommandDescription
$ drush cohesion:importRuns a Site Studio asset import from the API, this is a required step when upgrading or installing Site Studio.
$ drush cohesion:rebuildRuns a Site Studio rebuild, this will re-save Site Studio settings, styles and templates.

Package management

Requires cohesion_sync sub-module

CommandDescription
$ drush sitestudio:package:exportExport Site Studio package files to a specified or default directory.
$ drush sitestudio:package:importImport Site Studio packages from specified or default directory.
$ drush sitestudio:package:multi-importImport multiple packages from a package list file.
$ drush sitestudio:package:listList sync packages

The following package management commands are provided for legacy purposes but are considered deprecated for performance reasons:

CommandDescription
$ drush sync:exportExports all Site Studio configuration to the sync folder as a .yml_ file.
$ drush sync:export --filename-prefix=myfilenamehereExports all Site Studio configuration to the sync folder as a .yml_ file with a custom file name rather than using the websites name.
$ drush sync:import --overwrite-allImports all Site Studio configuration from the sync folder and overwrite existing Site Studio configuration.
$ drush sync:import --keep-allImports all Site Studio configuration from the sync folder and keeps existing Site Studio configuration and only imports new configuration.

Other

CommandDescription
$ drush sitestudio:templates:regenerateRegenerate the list of template suggestions in Site Studio
 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation