Skip to content

Commit 3c18a7b

Browse files
authored
Merge pull request #141 from wp-cli/regenerate-readme
Regenerate README file
2 parents cc38427 + 4d70b35 commit 3c18a7b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This package implements the following commands:
1616
Verifies WordPress files against WordPress.org's checksums.
1717

1818
~~~
19-
wp core verify-checksums [--include-root] [--version=<version>] [--locale=<locale>] [--insecure] [--exclude=<files>]
19+
wp core verify-checksums [--include-root] [--version=<version>] [--locale=<locale>] [--insecure] [--exclude=<files>] [--format=<format>]
2020
~~~
2121

2222
Downloads md5 checksums for the current version from WordPress.org, and
@@ -46,6 +46,19 @@ site.
4646
[--exclude=<files>]
4747
Exclude specific files from the checksum verification. Provide a comma-separated list of file paths.
4848

49+
[--format=<format>]
50+
Render output in a specific format. When provided, messages are displayed in the chosen format.
51+
---
52+
default: plain
53+
options:
54+
- plain
55+
- table
56+
- json
57+
- csv
58+
- yaml
59+
- count
60+
---
61+
4962
**EXAMPLES**
5063

5164
# Verify checksums
@@ -71,6 +84,11 @@ site.
7184
$ wp core verify-checksums --exclude="readme.html"
7285
Success: WordPress installation verifies against checksums.
7386

87+
# Verify checksums with formatted output
88+
$ wp core verify-checksums --format=json
89+
[{"file":"readme.html","message":"File doesn't verify against checksum"}]
90+
Error: WordPress installation doesn't verify against checksums.
91+
7492

7593

7694
### wp plugin verify-checksums

0 commit comments

Comments
 (0)