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
{{ message }}
Repository navigation
Commit d49c016
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -466,16 +466,13 @@ Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and
466
466
[--porcelain]
467
467
Output filename for the exported database.
468
468
469
-
[--add-drop-table]
470
-
Include a `DROP TABLE IF EXISTS` statement before each `CREATE TABLE` statement.
471
-
472
469
[--defaults]
473
470
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
474
471
475
472
**EXAMPLES**
476
473
477
-
# Export database with drop query included
478
-
$ wp db export --add-drop-table
474
+
# Export database with `--skip-opt` and `--add-drop-table` mysqldump flags
475
+
$ wp db export --skip-opt --add-drop-table
479
476
Success: Exported to 'wordpress_dbase-db72bb5.sql'.
480
477
481
478
# Export certain tables
@@ -648,39 +645,39 @@ Defaults to searching through all tables registered to $wpdb. On multisite, this
648
645
- count
649
646
---
650
647
651
-
The percent color codes available are:
652
-
653
-
| Code | Color
654
-
| ---- | -----
655
-
| %y | Yellow (dark) (mustard)
656
-
| %g | Green (dark)
657
-
| %b | Blue (dark)
658
-
| %r | Red (dark)
659
-
| %m | Magenta (dark)
660
-
| %c | Cyan (dark)
661
-
| %w | White (dark) (light gray)
662
-
| %k | Black
663
-
| %Y | Yellow (bright)
664
-
| %G | Green (bright)
665
-
| %B | Blue (bright)
666
-
| %R | Red (bright)
667
-
| %M | Magenta (bright)
668
-
| %C | Cyan (bright)
669
-
| %W | White
670
-
| %K | Black (bright) (dark gray)
671
-
| %3 | Yellow background (dark) (mustard)
672
-
| %2 | Green background (dark)
673
-
| %4 | Blue background (dark)
674
-
| %1 | Red background (dark)
675
-
| %5 | Magenta background (dark)
676
-
| %6 | Cyan background (dark)
677
-
| %7 | White background (dark) (light gray)
678
-
| %0 | Black background
679
-
| %8 | Reverse
680
-
| %U | Underline
681
-
| %F | Blink (unlikely to work)
682
-
683
-
They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background `%3%k` can be made black on a bright yellow background with `%Y%0%8`.
648
+
The percent color codes available are:
649
+
650
+
| Code | Color
651
+
| ---- | -----
652
+
| %y | Yellow (dark) (mustard)
653
+
| %g | Green (dark)
654
+
| %b | Blue (dark)
655
+
| %r | Red (dark)
656
+
| %m | Magenta (dark)
657
+
| %c | Cyan (dark)
658
+
| %w | White (dark) (light gray)
659
+
| %k | Black
660
+
| %Y | Yellow (bright)
661
+
| %G | Green (bright)
662
+
| %B | Blue (bright)
663
+
| %R | Red (bright)
664
+
| %M | Magenta (bright)
665
+
| %C | Cyan (bright)
666
+
| %W | White
667
+
| %K | Black (bright) (dark gray)
668
+
| %3 | Yellow background (dark) (mustard)
669
+
| %2 | Green background (dark)
670
+
| %4 | Blue background (dark)
671
+
| %1 | Red background (dark)
672
+
| %5 | Magenta background (dark)
673
+
| %6 | Cyan background (dark)
674
+
| %7 | White background (dark) (light gray)
675
+
| %0 | Black background
676
+
| %8 | Reverse
677
+
| %U | Underline
678
+
| %F | Blink (unlikely to work)
679
+
680
+
They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background `%3%k` can be made black on a bright yellow background with `%Y%0%8`.
684
681
685
682
**AVAILABLE FIELDS**
686
683
@@ -759,7 +756,22 @@ Defaults to all tables registered to the $wpdb database handler.
759
756
List tables based on wildcard search, e.g. 'wp_*_options' or 'wp_post?'.
760
757
761
758
[--scope=<scope>]
762
-
Can be all, global, ms_global, blog, or old tables. Defaults to all.
759
+
List tables based on the scope.
760
+
761
+
- all: returns 'all' and 'global' tables. No old tables are returned.
762
+
- blog: returns the blog-level tables for the queried blog.
763
+
- global: returns the global tables for the installation, returning multisite tables only on multisite.
764
+
- ms_global: returns the multisite global tables, regardless if current installation is multisite.
765
+
- old: returns tables which are deprecated.
766
+
---
767
+
default: all
768
+
options:
769
+
- all
770
+
- blog
771
+
- global
772
+
- ms_global
773
+
- old
774
+
---
763
775
764
776
[--network]
765
777
List all the tables in a multisite install.
@@ -1020,6 +1032,10 @@ Want to contribute a new feature? Please first [open a new issue](https://github
1020
1032
1021
1033
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally.
1022
1034
1035
+
### License
1036
+
1037
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
1038
+
1023
1039
## Support
1024
1040
1025
1041
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
0 commit comments