wp cli alias

Aliases are shorthand references to WordPress installs. For instance, @dev could refer to a development install and @prod could refer to a production install. This command gives you and option to add, update and delete, the registered aliases you have available.

EXAMPLES EXAMPLES

# List alias information.
$ wp cli alias list
list
---
@all: Run command against every registered alias.
@local:
  user: wpcli
  path: /Users/wpcli/sites/testsite

# Get alias information.
$ wp cli alias get @dev
ssh: dev@somedeve.env:12345/home/dev/

# Add alias.
$ wp cli alias add @prod --set-ssh=login@host --set-path=/path/to/wordpress/install/ --set-user=wpcli
Success: Added '@prod' alias.

# Update alias.
$ wp cli alias update @prod --set-user=newuser --set-path=/new/path/to/wordpress/install/
Success: Updated 'prod' alias.

# Delete alias.
$ wp cli alias delete @prod
Success: Deleted '@prod' alias.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp cli alias add

Creates an alias.

wp cli alias delete

Deletes an alias.

wp cli alias get

Gets the value for an alias.

wp cli alias list

Lists available WP-CLI aliases.

wp cli alias update

Updates an alias.

[shortcodehub id="4383"]
%d bloggers like this: