@@ -726,6 +726,57 @@ wp plugin status [<plugin>]
726726
727727
728728
729+ ### wp plugin check-update
730+
731+ Checks for plugin updates without performing them.
732+
733+ ~~~
734+ wp plugin check-update [<plugin>...] [--all] [--field=<field>] [--fields=<fields>] [--format=<format>]
735+ ~~~
736+
737+ Lists the available plugin updates. Similar to ` wp core check-update ` .
738+
739+ ** OPTIONS**
740+
741+ [<plugin>...]
742+ One or more plugins to check for updates.
743+
744+ [--all]
745+ If set, all plugins will be checked for updates.
746+
747+ [--field=<field>]
748+ Prints the value of a single field for each update.
749+
750+ [--fields=<fields>]
751+ Limit the output to specific object fields. Defaults to name,status,version,update_version.
752+
753+ [--format=<format>]
754+ Render output in a particular format.
755+ ---
756+ default: table
757+ options:
758+ - table
759+ - csv
760+ - json
761+ - yaml
762+ ---
763+
764+ ** EXAMPLES**
765+
766+ # Check for plugin updates
767+ $ wp plugin check-update
768+ +-----------+--------+---------+----------------+
769+ | name | status | version | update_version |
770+ +-----------+--------+---------+----------------+
771+ | akismet | active | 4.1.0 | 4.1.1 |
772+ +-----------+--------+---------+----------------+
773+
774+ # List plugins with available updates in JSON format
775+ $ wp plugin check-update --format=json
776+ [{"name":"akismet","status":"active","version":"4.1.0","update_version":"4.1.1"}]
777+
778+
779+
729780### wp plugin toggle
730781
731782Toggles a plugin's activation state.
@@ -1558,6 +1609,57 @@ wp theme status [<theme>]
15581609
15591610
15601611
1612+ ### wp theme check-update
1613+
1614+ Checks for theme updates without performing them.
1615+
1616+ ~~~
1617+ wp theme check-update [<theme>...] [--all] [--field=<field>] [--fields=<fields>] [--format=<format>]
1618+ ~~~
1619+
1620+ Lists the available theme updates. Similar to ` wp core check-update ` .
1621+
1622+ ** OPTIONS**
1623+
1624+ [<theme>...]
1625+ One or more themes to check for updates.
1626+
1627+ [--all]
1628+ If set, all themes will be checked for updates.
1629+
1630+ [--field=<field>]
1631+ Prints the value of a single field for each update.
1632+
1633+ [--fields=<fields>]
1634+ Limit the output to specific object fields. Defaults to name,status,version,update_version.
1635+
1636+ [--format=<format>]
1637+ Render output in a particular format.
1638+ ---
1639+ default: table
1640+ options:
1641+ - table
1642+ - csv
1643+ - json
1644+ - yaml
1645+ ---
1646+
1647+ ** EXAMPLES**
1648+
1649+ # Check for theme updates
1650+ $ wp theme check-update
1651+ +------------+----------+---------+----------------+
1652+ | name | status | version | update_version |
1653+ +------------+----------+---------+----------------+
1654+ | twentytwelve | inactive | 2.0 | 2.1 |
1655+ +------------+----------+---------+----------------+
1656+
1657+ # List themes with available updates in JSON format
1658+ $ wp theme check-update --format=json
1659+ [{"name":"twentytwelve","status":"inactive","version":"2.0","update_version":"2.1"}]
1660+
1661+
1662+
15611663### wp theme update
15621664
15631665Updates one or more themes.
0 commit comments