Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to download the latest WordPress package using WP-CLI.
Wordpress
wp [1] core download Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'download' causes an error.
Using 'update' tries to update existing files, not download fresh ones.
✗ Incorrect
The wp core download command downloads the latest WordPress files.
2fill in blank
mediumComplete the command to create the WordPress configuration file with database details.
Wordpress
wp config [1] --dbname=wordpress_db --dbuser=admin --dbpass=secret Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'generate' or 'make' causes WP-CLI to not recognize the command.
Forgetting to specify database details leads to config errors.
✗ Incorrect
The wp config create command generates the wp-config.php file with database info.
3fill in blank
hardFix the error in the command to install WordPress with site details.
Wordpress
wp core install --url=[1] --title='My Site' --admin_user=admin --admin_password=pass123 --admin_email=admin@example.com
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the protocol in the URL.
Using 'http://' instead of 'https://' when site requires secure connection.
✗ Incorrect
The --url parameter should include the protocol like https:// for proper installation.
4fill in blank
hardFill both blanks to activate a plugin and then clear the cache.
Wordpress
wp plugin [1] akismet && wp cache [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'deactivate' instead of 'activate' disables the plugin.
Using 'clear' instead of 'flush' for cache does not work.
✗ Incorrect
First, activate the plugin with activate. Then clear cache with flush.
5fill in blank
hardFill all three blanks to update WordPress core, plugins, and themes.
Wordpress
wp core [1] && wp plugin [2] && wp theme [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade' causes command not found errors.
Mixing 'update' and 'upgrade' leads to inconsistent behavior.
✗ Incorrect
The correct WP-CLI command to update core, plugins, and themes is update.