File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,6 +125,70 @@ There are no optionally available fields.
125125
126126
127127
128+ ### wp package get
129+
130+ Gets information about an installed WP-CLI package.
131+
132+ ~~~
133+ wp package get <name> [--fields=<fields>] [--format=<format>] [--skip-update-check]
134+ ~~~
135+
136+ ** OPTIONS**
137+
138+ <name>
139+ Name of the package to get information for.
140+
141+ [--fields=<fields>]
142+ Limit the output to specific fields. Defaults to all fields.
143+
144+ [--format=<format>]
145+ Render output in a particular format.
146+ ---
147+ default: table
148+ options:
149+ - table
150+ - csv
151+ - json
152+ - yaml
153+ ---
154+
155+ [--skip-update-check]
156+ Skip checking for updates. This is faster and avoids authentication issues with GitHub or Composer repositories.
157+
158+ ** AVAILABLE FIELDS**
159+
160+ These fields will be displayed by default for each package:
161+
162+ * name
163+ * authors
164+ * version
165+ * update
166+ * update_version
167+
168+ These fields are optionally available:
169+
170+ * description
171+
172+ ** EXAMPLES**
173+
174+ # Get information about an installed package.
175+ $ wp package get wp-cli/scaffold-package-command *
176+ +----------------+---------------------------------+
177+ | Field | Value |
178+ +----------------+---------------------------------+
179+ | name | wp-cli/scaffold-package-command |
180+ | authors | Daniel Bachhuber |
181+ | version | dev-main |
182+ | update | available |
183+ | update_version | 2.x-dev |
184+ +----------------+---------------------------------+
185+
186+ # Get the version of a package.
187+ $ wp package get wp-cli/server-command --fields=version --format=json
188+ {"version":"dev-main"}
189+
190+
191+
128192### wp package install
129193
130194Installs a WP-CLI package.
You can’t perform that action at this time.
0 commit comments