{"id":18432222,"url":"https://github.com/jaywood/wordpress-block-report","last_synced_at":"2026-05-15T13:03:58.151Z","repository":{"id":150107957,"uuid":"530006351","full_name":"JayWood/wordpress-block-report","owner":"JayWood","description":"Get a full report of blocks for every post, post type, and post status you want without having to figure it out on your own. Even in CSV format.","archived":false,"fork":false,"pushed_at":"2022-08-29T00:30:26.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T08:56:06.123Z","etag":null,"topics":["gutenberg-blocks","wordpress","wpcli"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JayWood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-08-28T23:36:53.000Z","updated_at":"2022-11-03T19:42:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"72c37bb5-4c7c-49cd-96c0-a98cbe2375ea","html_url":"https://github.com/JayWood/wordpress-block-report","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JayWood/wordpress-block-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayWood%2Fwordpress-block-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayWood%2Fwordpress-block-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayWood%2Fwordpress-block-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayWood%2Fwordpress-block-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayWood","download_url":"https://codeload.github.com/JayWood/wordpress-block-report/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayWood%2Fwordpress-block-report/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277489030,"owners_count":25826632,"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-29T02:00:09.175Z","response_time":84,"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":["gutenberg-blocks","wordpress","wpcli"],"created_at":"2024-11-06T05:27:54.988Z","updated_at":"2025-09-29T08:56:10.324Z","avatar_url":"https://github.com/JayWood.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Block Report\nA [WordPress CLI](https://github.com/wp-cli/wp-cli) Script designed to provide a report of all Gutenberg Blocks on your site in CSV format ( or in the \nterminal ). Easy to use, multi-site compatible with options for post type and post status. Also, with the ability to customize the fields output.\n\n![PHP 7.4+](https://img.shields.io/badge/PHP-^7.4-green?style=for-the-badge\u0026logo=php)\n[![In](https://img.shields.io/static/v1?label=\u0026message=LinkedIn\u0026color=blue\u0026style=for-the-badge\u0026logo=linkedin)](https://www.linkedin.com/in/jerrywoodjr/)\n[![Twitter](https://img.shields.io/static/v1?label=\u0026message=Twitter\u0026color=cyan\u0026style=for-the-badge\u0026logo=twitter)](https://twitter.com/plugish/)\n[![Instagram](https://img.shields.io/static/v1?label=\u0026message=Instagram\u0026color=pink\u0026style=for-the-badge\u0026logo=instagram)](https://www.instagram.com/therealjaywood/)\n\n## Screenshots\n\n_Showing a simple table output excluding details_\n![](https://raw.githubusercontent.com/JayWood/wordpress-block-report/main/assets/table.png)\n\n_Showing the resulting CSV of a full export_\n![](https://raw.githubusercontent.com/JayWood/wordpress-block-report/main/assets/csv.png)\n\n## Installation\n\n### Composer\nAdd this repository to your composer.json\n```\n{\n    \"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"https://github.com/JayWood/wordpress-block-report\"\n        }\n    ]\n}\n```\n\nOr if you're fancy:   \n`composer config repositories.wp-block-report vcs https://github.com/JayWood/wordpress-block-report`\n\nRequire the package   \n`composer require jaywood/wordpress-block-report`\n\n\u003e If you happen to use the sweet [Composer Installers](https://github.com/composer/installers) library, this CLI script is\nmarked as a `wp-cli-package` for ease of use later.\n\n### Manual\n\n1. Download or clone the repository to `wp-content/mu-plugins/wordpress-block-report/` _( Name is up to you )_\n1. Create a new file in `wp-content/mu-plugins` call it whatever you want, I use `init.php`\n1. Require the file like so:\n```\n\u003c?php\n\nif ( defined( 'WP_CLI' ) \u0026\u0026 WP_CLI ) {\n    require_once 'wordpress-block-report/block-report.php';\n}\n```\n\nNow since your `init.php` file is in `wp-content/mu-plugins` it will always load.\n\n## Usage\n\n**Synopsis**:    \n`wp jwcli block report [--post-type=\u003cpost_type\u003e] [--fields=\u003cfields\u003e] [--post-status=\u003cpost-status\u003e] [--csv]`\n\n\u003e Multisite flags like --url are supported.\n\n### --post-type \nSupports any post type slug that's registered at run-time. Comma separated lists are supported as well.\n\n**Default:** `post,page`   \n**Example:**\n```\n$\u003e wp jwcli block report --post-type=article,publication\n```\n\n### --post-status\nSupports any post status slug that's registered at run-time. Comma separated lists are supported as well.\n\n**Default:** `any`   \n**Example:**\n```\n$\u003e wp jwcli block report --post-status=publish,in-review\n```\n\n### --fields\nSupports specific fields to return within the report.\n\n**Default:** `post_id,name,attributes,innerHtml,innerContent,innerBlocks`\n**Example:**   \n```\n$\u003e wp jwcli block report --fields=post_id,name,innerBlocks\n```\n\n### --csv\nPrints out the CSV data to the terminal instead of displaying a table.\n\n**Example:**\n```\n$\u003e wp jwcli block report --csv\n```\n\n#### File Output\nTo output to a file is quite easy with the proper terminal. Below is how you would do this with a unix terminal.\n```\n$\u003e wp jwcli block report --csv \u003e out.csv\n```\n\n_( A wp-cli plugin by [Jay Wood](https://twitter.com/plugish) )_\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywood%2Fwordpress-block-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaywood%2Fwordpress-block-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywood%2Fwordpress-block-report/lists"}