WP-CLI

A command line interface for WordPress

Commands » cli » alias

wp cli alias - List available WP-CLI aliases.

Quick links: Github issues


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 visibility in what registered aliases you have available.

OPTIONS

[--format=<format>]
Render output in a particular format. -– default: yaml options:
  • yaml
  • json -–

EXAMPLES

# List all available aliases.
$ wp cli alias
---
@all: Run command against every registered alias.
@prod:
  ssh: [email protected]~/webapps/production
@dev:
  ssh: [email protected]/srv/www/runcommand.dev
@both:
  - @prod
  - @dev