Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created April 24, 2016 19:52
Show Gist options
  • Save ahmadawais/401f941c4a9a676a8822ad3a34b2cbfd to your computer and use it in GitHub Desktop.
Save ahmadawais/401f941c4a9a676a8822ad3a34b2cbfd to your computer and use it in GitHub Desktop.
WP CLI Plugin & Theme Install/Activate Aliases for ZSH/BASH
# WP Plugin: Install & Acticate
# Usage: wpp plugin-slug
alias wpp="wp plugin install $* --activate"
# WP Theme: Install
# Usage: wpt plugin-slug
alias wpt="wp theme install $* --activate"
# WP Theme: Activate
# Usage: wpta plugin-slug
alias wpt="wp theme activate $*"
# Activate all WP Plugins
alias wppaall="wp plugin activate --all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment