Skip to content

Commit 4dea7a6

Browse files
committed
Add Readme
1 parent ce86994 commit 4dea7a6

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,52 @@ $ wp sqlite export [<file>] [--tables=<tables>] [--exclude-tables] [--porcelain]
4242
[--porcelain]
4343
Output filename for the exported database.
4444

45+
### wp sqlite tables
46+
47+
Lists the SQLite database tables.
48+
49+
```
50+
$ wp sqlite tables [--pattern=<pattern>] [--format=<list|csv>]
51+
```
52+
53+
**OPTIONS**
54+
55+
[--pattern=<pattern>]
56+
Filter the list of tables by a wildcard pattern.
57+
58+
[--format=<format>]
59+
Render output in a specific format.
60+
---
61+
Default: list
62+
Options:
63+
- list
64+
- csv
65+
---
66+
67+
**EXAMPLES**
68+
69+
```
70+
# List all tables
71+
$ wp sqlite tables
72+
wp_users
73+
wp_usermeta
74+
wp_termmeta
75+
wp_terms
76+
wp_term_taxonomy
77+
wp_term_relationships
78+
wp_commentmeta
79+
wp_comments
80+
wp_links
81+
wp_options
82+
wp_postmeta
83+
wp_posts
84+
85+
# List all tables matching a wildcard
86+
$ wp sqlite tables "wp_post*"
87+
wp_postmeta
88+
wp_posts
89+
90+
* List all tables in CSV format
91+
$ wp sqlite tables --format=csv
92+
wp_users,wp_usermeta,wp_termmeta,wp_terms,wp_term_taxonomy,wp_term_relationships,wp_commentmeta,wp_comments,wp_links,wp_options,wp_postmeta,wp_posts
93+
```

0 commit comments

Comments
 (0)