File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -240,9 +240,21 @@ for future authorization requests.
240240 # Install the latest stable version of a package.
241241 $ wp package install runcommand/hook
242242
243+ # Install a specific version.
244+ $ wp package install wp-cli/server-command:2.0.0
245+
246+ # Install with caret operator (allows non-breaking updates).
247+ $ wp package install wp-cli/server-command:^1.0
248+
249+ # Install with tilde operator (allows patch-level updates).
250+ $ wp package install wp-cli/server-command:~1.2
251+
243252 # Install the latest stable version (explicitly specified).
244253 $ wp package install wp-cli/server-command:@stable
245254
255+ # Install from a development branch.
256+ $ wp package install wp-cli/server-command:dev-main
257+
246258 # Install a package hosted at a GitLab.com URL.
247259 $ wp package install https://gitlab.com/foo/wp-cli-bar-command.git
248260
You can’t perform that action at this time.
0 commit comments