{"id":20440902,"url":"https://github.com/marceltannich/wceu_2021","last_synced_at":"2026-06-11T09:31:33.818Z","repository":{"id":130761958,"uuid":"368305911","full_name":"marceltannich/wceu_2021","owner":"marceltannich","description":"Workshop slides \u0026 learning resource for my workshop at WordCamp Europe 2021","archived":false,"fork":false,"pushed_at":"2022-09-19T16:26:43.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T07:45:52.687Z","etag":null,"topics":["slides","wordcamp","wordpress","workshop","wp-cli"],"latest_commit_sha":null,"homepage":"https://www.tannich.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marceltannich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-17T19:52:52.000Z","updated_at":"2022-09-19T16:26:18.000Z","dependencies_parsed_at":"2023-05-23T15:45:32.150Z","dependency_job_id":null,"html_url":"https://github.com/marceltannich/wceu_2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marceltannich/wceu_2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceltannich%2Fwceu_2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceltannich%2Fwceu_2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceltannich%2Fwceu_2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceltannich%2Fwceu_2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marceltannich","download_url":"https://codeload.github.com/marceltannich/wceu_2021/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceltannich%2Fwceu_2021/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34192870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["slides","wordcamp","wordpress","workshop","wp-cli"],"created_at":"2024-11-15T09:27:36.464Z","updated_at":"2026-06-11T09:31:33.799Z","avatar_url":"https://github.com/marceltannich.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![WP-CLI - How to manage WordPress from the command-line](https://i.ibb.co/tZY34qK/wp-cli-github.pngg)\n\n## Workshop \"WP-CLI - How to manage WordPress from the command-line\" \n\n@ [WordCamp Europe 2021](https://europe.wordcamp.org/2021/session/wp-cli-how-to-manage-wordpress-from-the-command-line/)\n\nWP-CLI is the official command-line interface for WordPress. It provides a collection of commands that can be used to perform various WordPress actions such as plugin \u0026 theme installations, core updates, configurations or backups without using a browser.\n\nIn this workshop, I will teach you the basics of WP-CLI and present useful commands to learn more about this powerful WordPress management and development tool. This workshop is aimed at beginner \u0026 advanced WordPress users who are not familiar with the command line yet and are looking for an easy way to get started.\n\n---\n#### Slides\nYou can find the slides of this workshop on [https://speakerdeck.com/](https://speakerdeck.com/marceltannich/wp-cli-how-to-manage-wordpress-from-the-command-line)\n\n#### WP-CLI Handbook\n- https://make.wordpress.org/cli/handbook/\n- https://wp-cli.org/de/\n#### How to install WP-CLI\n- Windows: https://www.youtube.com/watch?v=sd6MWc29G84\n- Mac: https://wpbeaches.com/installing-wordpress-wp-cli-macos/\n- Linux: https://www.linode.com/docs/websites/cms/install-wordpress-using-wp-cli-on-ubuntu-18-04/\n\n#### Want to try WP-CLI locally in an easy way?\n- Download https://localwp.com/\n- Create a new site\n- Right click on the site name\n- Click on \"Open Site Shell\" \n\n![](https://i.ibb.co/YbPLj80/local.png)\n\n---\n#### Global parameters\n- --prompt\n- --quite\n- --path\n- --dry_run\n---\n\n#### Help\n`$ wp help`\n\nOpens the general help\n\n`$ wp help plugin`\n\nOpens the help for the respective command (e.g. plugin)\n\n---\n#### Core\n`$ wp core download`\n\nDownloads the WordPress core\n\n`$ wp core version`\n\nShows the current WordPress version\n\n`$ wp core update`\n\nUpdates the WordPress core to a newer version\n\n`$ wp core install`\n\nStarts the standard WordPress installation process\n\n`$ wp core install --url=mysite.server.com --title=title --admin_user=you --admin_password=Password1 --admin_email=your@email.address`\n\nStarts the standard WordPress installation process with each parameter\n\n`$ wp core install --prompt`\n\nThe identical command without parameters; prompts the user to enter values for all command arguments\n\n---\n#### Set WordPress options\n`$ wp option update blogname \"My awesome website\"`\n\nUpdates your blog title\n\n`$ wp option update blogdescription \"This is the website from Marcel\"`\n\nUpdates your blog description\n\n---\n#### Themes\n`$ wp theme install astra --activate`\n\nInstalls \u0026 activates the Astra Theme\n\n`$ wp theme activate astra`\n\nIf Astra Theme is already installed you can activate it using the “activate” sub command\n\n`$ wp theme update astra`\n\nUpdates a theme\n\n`$ wp theme update --all`\n\nUpdates all installed themes\n\n---\n#### Plugins\n`$ wp plugin install wordpress-seo --activate`\n\nInstalls Yoast SEO and activates the plugin.\n\n`$ wp plugin list`\n\nShows all installed plugins\n\n`$ wp plugin install duplicate-post woocommerce elementor contact-form-7 --activate`\n\nInstalls several plugins in bulk and activates them\n\n`$ wp plugin update wordpress-seo`\n\nUpdates Yoast SEO\n\n`$ wp plugin update --all`\n\nUpdates all plugins\n\n---\n#### Menus\n`$ wp menu create “Top-Menu”`\n\nCreates a menu with the name “Top Menu”\n\n`$ wp menu location list`\n\nShows all menus\n\n---\n#### Maintenance mode\n`$ wp maintenance-mode activate`\n\nUpdates Activates the WordPress maintenance mode\n\n`$ wp maintenance-mode status`\n\nShows the current status\n\n`$ wp maintenance-mode deactivate`\n\nDeactivates the maintenance mode\n\n---\n#### Search \u0026 Replace\n`$ wp search-replace \"Jack\" \"Paco\" --dry-run`\n\nSearches all rows for a string and replaces it - Global Parameter --dry-run will show us first the output before making changes in our tables\n\n`$ wp search-replace \"Jack\" \"Paco\"`\n\nSearches all rows for a string and replaces it\n\n---\n#### Cache\n`$ wp cache flush`\n\nClears the WordPress object cache\n\n---\n#### Media \n`$ wp media regenerate`\n\nRegenerates thumbnails \n\n`$ seq 500 1000 | xargs wp media regenerate`\n\nRegenerates thumbnails from IDs 500 - 1000\n\n---\n#### User Management\n`$ wp user create`\n\nCreates a new WordPress user and shows all available parameters\n\n`$ wp user create --prompt`\n\nTip: Use the global parameter --prompt to not have to remember the specific parameters\n\n`$ wp user add-role 2 administrator`\n\nAssigns admin rights to the user with ID “2”\n\n`$ wp user get 2`\n\nReturns details about the user with ID “2”\n\n`$ wp user delete 2 --reassign=1`\n\nDeletes the user with ID “2” and reassign all posts to user with ID “1”\n\n---\n#### Posts\n`$ wp post generate`\n\nGenerates 100 dummy posts\n\n`$ wp post generate --count=10 --post_date=2021_06_15`\n\nGenerates 10 Posts with date 2021-06-15\n\n`$ curl -N http://loripsum.net/api/5 | wp post generate --post_content --count=10`\n\nGenerates 10 posts with 5 paragraphs of Lorem Ipsum text\n\n---\n#### Database\n`$ wp db export`\n\nExports the database as .sql file\n\n`$ wp db import database.sql`\n\nImports the database\n\n`$ wp help db`\n\nShows the help for \"db\" command\n\n---\n#### Languages \n`$ wp language core list`\n\nShows all available languages\n\n`$ wp language core install es_ES --activate`\n\nInstalls Spanish language file and activates the language\n\n---\n#### Scaffold\n`$ wp scaffold _s my-theme --theme_name=\"Test\" --author=\"Marcel\"`\n\nCreates a Custom Theme based on Underscores (_s)\n\n`$ wp scaffold plugin my-plugin`\n\nCreates a plugin boilerplate     \n\n`$ wp scaffold block team --title=\"Team\" --theme=astra`\n\nCreates a new \"Team\" block for the \"Astra\" theme\n\n---\n### Let's connect!\n\n[![Linkedin Badge](https://img.shields.io/badge/-LinkedIn-blue?style=flat-square\u0026logo=Linkedin\u0026logoColor=white\u0026link=https://www.linkedin.com/in/marceltannich/)](https://www.linkedin.com/in/marceltannich/)  [![Twitter Badge](https://img.shields.io/badge/-Twitter-1ca0f1?style=flat-square\u0026labelColor=1ca0f1\u0026logo=twitter\u0026logoColor=white\u0026link=https://twitter.com/MarcelTannich)](https://twitter.com/MarcelTannich) \n\n**[tannich.com](https://www.tannich.com/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceltannich%2Fwceu_2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarceltannich%2Fwceu_2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceltannich%2Fwceu_2021/lists"}