description: 'Dump structure and contents of a database' arguments: database: 'Database key from settings.php' options: file: 'The filename for your database backup' gz: 'Pass this option if you want the sql result file gzipped' messages: success: 'Database exported to:' examples: - description: 'Dump default database or the one specified on the argument' execution: | drupal database:dump \ - description: 'Dump in gz compressed format' execution: | drupal database:dump \ --gz