最近更新的页面
Then /^STDOUT should end with a table containing rows:$/
Expect STDOUT to end with a table containing the given rows. Usage Useful when the table is prece...
Then /^STDOUT should be YAML containing:$/
Expect STDOUT to be YAML containing certain content. Usage Scenario: My example scenario When I...
Then /^STDOUT should be JSON containing:$/
Expect valid JSON output in STDOUT. Usage Scenario: My example scenario When I run `wp post met...
Then /^STDOUT should be CSV containing:$/
Expect STDOUT to be CSV containing certain values. Usage Scenario: My example scenario When I r...
Then /^STDOUT should be a table containing rows:$/
Expect STDOUT to be a table containing the given rows. Usage Scenario: My example scenario Give...
Then /^STDOUT should be a JSON array containing:$/
Expect valid JSON array output in STDOUT. Usage Errors when some items are missing from the expec...
Then /^an email should (be sent|not be sent)$/
Expect an email to be sent (or not). Usage Scenario: My example scenario When I run `wp user re...
Then /^(STDOUT|STDERR) should( strictly)? (be|contain|not contain):$/
Check the contents of STDOUT or STDERR. Usage Scenario: My example scenario Given an empty dire...
Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/
Match STDOUT or STDERR against a regex. Usage Scenario: My example scenario When I run `wp dist...
Then /^(STDOUT|STDERR) should not be empty$/
Expect STDOUT or STDERR not to be empty. Usage Scenario: My example scenario When I run `wp use...
Then /^(STDOUT|STDERR) should not be a number$/
Expect STDOUT or STDERR to not be a numeric value. Usage Scenario: My example scenario Given a ...
Then /^(STDOUT|STDERR) should be empty$/
Expect STDOUT or STDERR to be empty. Usage Scenario: My other scenario Given a WP install Whe...
Then /^(STDOUT|STDERR) should be a version string (<|<=|>|>=|==|=|!=|<>) ([+\w.{}-]+)$/
Expect STDOUT or STDERR to be a version string comparing to the given version. Usage Scenario: My...
Then /^(STDOUT|STDERR) should be a number$/
Expect STDOUT or STDERR to be a numeric value. Usage Scenario: My example scenario Given a WP i...
Internal API
WP-CLI includes a number of utilities which are considered stable and meant to be used by command...
Given wp-config.php
Create a wp-config.php file using wp config create. Usage Scenario: My example scenario Given ...
Given WP files
Download WordPress files without installing. Usage Scenario: My example scenario Given an empty...
Given these installed and active plugins:
Installs and activates one or more plugins. Usage Scenario: My example scenario Given a WP inst...
Given download:
Download multiple files into the given destinations. Usage Scenario: My example scenario Given ...
Given an empty directory
Creates an empty directory. Usage Scenario: My example scenario Given an empty directory ... ...