{
    "id": "drush_cheat_sheet",
    "name": "Drush",
    "description": "Shell scripting interface for Drupal",
    "metadata": {
        "sourceName": "Drush Commands",
        "sourceUrl": "http://drushcommands.com"
    },
    "template_type": "terminal",
    "section_order": [
        "Project manager commands",
        "User commands",
        "SQL commands",
        "Core drush commands",
        "Field commands",
        "Runserver commands",
        "Config commands",
        "Other commands"
    ],
    "sections": {
        "Other commands": [
            {
                "key": "make",
                "val": "Turns a makefile into a working Drupal codebase."
            },
            {
                "key": "make-generate",
                "val": "Generate a makefile from the current Drupal site."
            }
        ],
        "Runserver commands" : [
            {
                "key": "runserver",
                "val": "Runs a lightweight built in http server for development."
            }
        ],
        "Field commands": [
            {
                "key": "field-clone",
                "val": "Clone a field and all its instances."
            },
            {
                "key": "field-create",
                "val": "Create fields and instances. Returns urls for field editing."
            },
            {
                "key": "field-delete",
                "val": "Delete a field and its instances."
            },
            {
                "key": "field-info",
                "val": "View information about fields, field_types, and widgets."
            },
            {
                "key": "field-update",
                "val": "Return URL for field editing web page."
            }
        ],
        "Core drush commands": [ 
            {
                "key": "archive-dump",
                "val": "Backup your code, files, and database into a single file."
            },
            {
                "key": "archive-restore",
                "val": "Expand a site archive into a Drupal web site."
            },
            {
                "key": "cache-clear",
                "val": "Clear a specific cache, or all drupal caches."
            },
            {
                "key": "cache-get",
                "val": "Fetch a cached object and display it."
            },
            {
                "key": "cache-set",
                "val": "Cache an object expressed in JSON or var_export() format."
            },
            {
                "key": "cache-rebuild",
                "val": "Rebuild a Drupal 8 site and clear all its caches."
            },
            {
                "key": "core-config",
                "val": "Edit drushrc, site alias, and Drupal settings.php files."
            },
            {
                "key": "core-cron",
                "val": "Run all cron hooks in all active modules for specified site."
            },
            {
                "key": "core-execute",
                "val": "Execute a shell command. Usually used with a site alias."
            },
            {
                "key": "core-quick-drupal",
                "val": "Download, install, serve and login to Drupal with minimal configuration and dependencies."
            },
            {
                "key": "core-requirements",
                "val": "Provides information about things that may be wrong in your Drupal installation, if any."
            },
            {
                "key": "core-rsync",
                "val": "Rsync the Drupal tree to/from another server using ssh."
            },
            {
                "key": "core-status",
                "val": "Provides a birds-eye view of the current Drupal installation, if any."
            },
            {
                "key": "core-topic",
                "val": "Read detailed documentation on a given topic."
            },
            {
                "key": "drupal-directory",
                "val": "Return path to a given module/theme directory."
            },
            {
                "key": "help",
                "val": "Print this help message. See `drush help help` for more options."
            },
            {
                "key": "image-flush",
                "val": "Flush all derived images for a given style."
            }
        ],
        "SQL commands": [
            {
                "key": "sql-cli",
                "val": "Open a SQL command-line interface using Drupal's credentials."
            },
            {
                "key": "sql-connect",
                "val": "A string for connecting to the DB."
            },
            {
                "key": "sql-create",
                "val": "Create a database."
            },
            {
                "key": "sql-drop",
                "val": "Drop all tables in a given database."
            },
            {
                "key": "sql-dump",
                "val": "Exports the Drupal DB as SQL using mysqldump or equivalent."
            },
            {
                "key": "sql-query",
                "val": "Execute a query against the site database."
            },
            {
                "key": "sql-sync",
                "val": "Copy and import source database to target database. Transfers via rsync."
            }
        ],
        "User commands": [
            {
                "key": "user-add-role",
                "val": "Add a role to the specified user accounts."
            },
            {
                "key": "user-block",
                "val": "Block the specified user(s)."
            },
            {
                "key": "user-cancel",
                "val": "Cancel a user account with the specified name."
            },
            {
                "key": "user-create",
                "val": "Create a user account with the specified name."
            },
            {
                "key": "user-information",
                "val": "Print information about the specified user(s)."
            },
            {
                "key": "user-login",
                "val": "Display a one time login link for the given user account (defaults to uid 1)."
            },
            {
                "key": "user-password",
                "val": "(Re)Set the password for the user account with the specified name."
            },
            {
                "key": "user-remove-role",
                "val": "Remove a role from the specified user accounts."
            },
            {
                "key": "user-unblock",
                "val": "Unblock the specified user(s)."
            }
        ],
        "Project manager commands": [
            {
                "key": "pm-disable",
                "val": "Disable one or more extensions (modules or themes)."
            },
            {
                "key": "pm-download",
                "val": "Download projects from drupal.org or other sources."
            },
            {
                "key": "pm-enable",
                "val": "Enable one or more extensions (modules or themes)."
            },
            {
                "key": "pm-info",
                "val": "Show detailed info for one or more extensions (modules or themes)."
            },
            {
                "key": "pm-list",
                "val": "Show a list of available extensions (modules and themes)."
            },
            {
                "key": "pm-refresh",
                "val": "Refresh update status information."
            },
            {
                "key": "pm-releasenotes",
                "val": "Print release notes for given projects."
            },
            {
                "key": "pm-releases",
                "val": "Print release information for given projects."
            },
            {
                "key": "pm-uninstall",
                "val": "Uninstall one or more modules."
            },
            {
                "key": "pm-update",
                "val": "Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb)."
            },
            {
                "key": "pm-updatecode",
                "val": "Update Drupal core and contrib projects to latest recommended releases."
            }
        ],
        "Config commands": [
            {
                "key": "config-edit",
                "val": "Open a config file in a text editor"
            },
            {
                "key": "config-export",
                "val": "Export configuration to a directory"
            },
            {
                "key": "config-get",
                "val": "Display a config value, or a whole configuration object"
            },
            {
                "key": "config-list",
                "val": "List config names by prefix"
            },
            {
                "key": "config-pull",
                "val": "Export and transfer config from one environment to another"
            },
            {
                "key": "config-set",
                "val": "Set config value directly"
            },
            {
                "key": "config-import",
                "val": "Import config from a config directory"
            }
        ]
    }
}

