Skip to content

Instantly share code, notes, and snippets.

@iqbalrony
Last active September 9, 2022 08:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iqbalrony/4eb0ef7ae0f17aaf55c26317ea18ecd4 to your computer and use it in GitHub Desktop.
Save iqbalrony/4eb0ef7ae0f17aaf55c26317ea18ecd4 to your computer and use it in GitHub Desktop.
WP-CLI Commands which is necessary & most frequently used.
Commands
--------------
Wordpress Download = wp core download
Config.php file create = wp config create --dbname=database_name --dbuser=database_username --dbpass=database_password
Wordpress Install = wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com
Theme or Plugin Install = wp theme/plugin install theme_slug/plugin_slug
Theme or Plugin Activate = wp theme/plugin activate theme_slug/plugin_slug
Theme or Plugin Install & Activate = wp theme/plugin install theme_slug/plugin_slug --activate
Theme or Plugin Deactivate = wp theme/plugin deactivate theme_slug/plugin_slug
Theme or Plugin Update = wp theme/plugin update theme_slug/plugin_slug --version=1.0.0
Theme or Plugin Delete = wp theme/plugin delete theme_slug/plugin_slug
Help Link = https://developer.wordpress.org/cli/commands/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment