You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DB_Command.php
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,9 @@ public function query( $args, $assoc_args ) {
269
269
* [--exclude_tables=<tables>]
270
270
* : The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database.
271
271
*
272
+
* [--stdout]
273
+
* : Output database to STDOUT.
274
+
*
272
275
* [--porcelain]
273
276
* : Output filename for the exported database.
274
277
*
@@ -302,6 +305,15 @@ public function query( $args, $assoc_args ) {
302
305
* $ wp db export --exclude_tables=$(wp db tables --all-tables-with-prefix --format=csv)
303
306
* Success: Exported to 'wordpress_dbase-db72bb5.sql'.
304
307
*
308
+
* # Export database to STDOUT.
309
+
* $ wp db export --stdout
310
+
* -- MySQL dump 10.13 Distrib 5.7.19, for osx10.12 (x86_64)
0 commit comments