{"id":13490108,"url":"https://github.com/wp-media/wp-rocket-cli","last_synced_at":"2025-09-07T00:34:31.768Z","repository":{"id":17338063,"uuid":"20109343","full_name":"wp-media/wp-rocket-cli","owner":"wp-media","description":"WP CLI interface for the WP Rocket plugin","archived":false,"fork":false,"pushed_at":"2023-09-05T13:51:51.000Z","size":45,"stargazers_count":73,"open_issues_count":26,"forks_count":38,"subscribers_count":16,"default_branch":"trunk","last_synced_at":"2025-08-28T21:23:56.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/wp-media.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}},"created_at":"2014-05-23T18:13:08.000Z","updated_at":"2025-07-28T00:00:02.000Z","dependencies_parsed_at":"2024-01-14T02:37:36.090Z","dependency_job_id":"260339a3-f1bd-45b9-80cc-e8b9032f1926","html_url":"https://github.com/wp-media/wp-rocket-cli","commit_stats":{"total_commits":31,"total_committers":17,"mean_commits":"1.8235294117647058","dds":0.7741935483870968,"last_synced_commit":"4499a101a5fbe35595d2ca01377a3e4639a7825b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/wp-media/wp-rocket-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-media%2Fwp-rocket-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-media%2Fwp-rocket-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-media%2Fwp-rocket-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-media%2Fwp-rocket-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-media","download_url":"https://codeload.github.com/wp-media/wp-rocket-cli/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-media%2Fwp-rocket-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983043,"owners_count":25202092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-07-31T19:00:40.914Z","updated_at":"2025-09-07T00:34:31.717Z","avatar_url":"https://github.com/wp-media.png","language":"PHP","funding_links":[],"categories":["PHP","WP-CLI Commands and Packages"],"sub_categories":[],"readme":"\n## WP CLI interface for WP Rocket\n\nThis repository contains a [WP-CLI command](https://github.com/wp-cli/wp-cli)  for the [WP Rocket](http://wp-rocket.me) plugin. After installing this plugin, you will have access to a `wp rocket` command.\n\n## Supported commands\n\n* `wp rocket activate-cache --htaccess=\u003ctrue|false\u003e` -- Set WP_CACHE to true and clean WP Rocket cache. To also update the htaccess on Apache, use the additional `htaccess` parameter.\n* `wp rocket deactivate-cache --htaccess=\u003ctrue|false\u003e` -- Set WP_CACHE to false and clean WP Rocket cache. To also update the htaccess on Apache, use the additional `htaccess` parameter.\n* `wp rocket clean --post_id=\u003cpost_id\u003e --permalink=\u003cpermalink\u003e --lang=\u003clang\u003e --blog_id=\u003cblog_id\u003e` -- Purge cache files.\n* `wp rocket clean --confirm` -- Purge cache files without prompting for confirmation (usefull for automation tools/scripts)\n* `wp rocket preload` -- Preload cache files.\n* `wp rocket regenerate --file=\u003cfile\u003e` -- Regenerate .htaccess, advanced-cache.php or the WP Rocket config file.\n* `wp rocket regenerate --file=config --nginx=true` -- regenerate the config file on Nginx hosts.\n* `wp rocket cdn --enable=\u003cenable\u003e --host=\u003chost\u003e --zone=\u003czone\u003e` -- Enable / Disable CDN with the specified host and zone.\n* `wp rocket export` -- Exports the WP Rocket settings as a json file to the current directory.\n* `wp rocket import --file=settings.json` -- Imports the settings contained in the provided json file.\n\n## Installing\n\nIf you're using WP-CLI v0.23.0 or later, you can install this package with:\n\n`wp package install wp-media/wp-rocket-cli`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-media%2Fwp-rocket-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-media%2Fwp-rocket-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-media%2Fwp-rocket-cli/lists"}