{"id":20742645,"url":"https://github.com/itinerisltd/wp-cli-post-meta-import","last_synced_at":"2025-03-11T12:27:34.809Z","repository":{"id":220971528,"uuid":"745890369","full_name":"ItinerisLtd/wp-cli-post-meta-import","owner":"ItinerisLtd","description":"Bulk import meta data for posts.","archived":false,"fork":false,"pushed_at":"2024-11-15T12:15:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-07T03:17:02.560Z","etag":null,"topics":["wp-cli","wp-cli-command","wp-cli-package"],"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/ItinerisLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2024-01-20T13:10:53.000Z","updated_at":"2024-11-15T12:15:26.000Z","dependencies_parsed_at":"2024-02-05T13:55:07.039Z","dependency_job_id":null,"html_url":"https://github.com/ItinerisLtd/wp-cli-post-meta-import","commit_stats":null,"previous_names":["itinerisltd/wp-cli-post-meta-import"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Fwp-cli-post-meta-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Fwp-cli-post-meta-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Fwp-cli-post-meta-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Fwp-cli-post-meta-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItinerisLtd","download_url":"https://codeload.github.com/ItinerisLtd/wp-cli-post-meta-import/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243033567,"owners_count":20225186,"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","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":["wp-cli","wp-cli-command","wp-cli-package"],"created_at":"2024-11-17T07:06:44.836Z","updated_at":"2025-03-11T12:27:34.773Z","avatar_url":"https://github.com/ItinerisLtd.png","language":"PHP","readme":"itinerisltd/wp-cli-post-meta-import\n===================================\n\n\n\n[![Build Status](https://travis-ci.org/itinerisltd/wp-cli-post-meta-import.svg?branch=master)](https://travis-ci.org/itinerisltd/wp-cli-post-meta-import)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)\n\n## Using\n\n~~~\nwp post meta import \u003cfile\u003e [--[no-]dry-run] [--yes]\n~~~\n\nImports post meta for URLs from CSV or JSON files.\nURLs will be passed to [url_to_postid()](https://developer.wordpress.org/reference/functions/url_to_postid/) to find a post ID.\n\nIf providing a CSV file, the first row will be used as a header row for meta keys.\nIf providing a JSON file, each object key:value pair will be used for meta_key:meta_value.\n\nKeys and values will be whitespace trimmed and skipped if empty.\n\nDoes not support terms.\n\n**OPTIONS**\n\n\t\u003cfile\u003e\n\t\tThe input file to parse. Path must be relative to ABSPATH.\n\n\t[--[no-]dry-run]\n\t\tWhether to just report on changes or also save changes to database.\n\t\t--\n\t\tdefault: --dry-run\n\t\t--\n\n\t[--yes]\n\t\tConfirm running without prompt.\n\n**SAMPLE JSON**\n\n    [\n      {\n        \"url\": \"https://example.com/sample-page\",\n        \"my_meta_field\": \"My new value!\",\n        \"_yoast_wpseo_title\": \"My new SEO title\",\n        \"_yoast_wpseo_metadesc\": \"My new SEO description\",\n        \"_yoast_wpseo_canonical\": \"https://example.co.uk/sample-page\"\n      },\n      {\n        \"url\": \"https://example.com/hello-world\",\n        \"my_meta_field\": \"My new value!\",\n        \"_yoast_wpseo_title\": \"My new SEO title\",\n        \"_yoast_wpseo_metadesc\": \"\",\n        \"_yoast_wpseo_canonical\": \"https://example.co.uk/foo-bar\"\n      }\n    ]\n\n**SAMPLE CSV**\n\n    url,my_meta_field,_yoast_wpseo_title,_yoast_wpseo_metadesc,_yoast_wpseo_canonical\n    https://example.com/sample-page,My new value!,My new SEO title,My new SEO description,https://example.co.uk/sample-page\n    https://example.com/hello-world,My new value!,My new SEO title,,https://example.co.uk/foo-bar\n\n**EXAMPLES**\n\n    $ wp post meta import wp-content/uploads/post-meta.csv --dry-run\n    350 detected records to process\n    Are you ready to process 350 records? [y/n]\n    ...\n    Finished.\n    Rows processed: 350. Meta processed: 981.\n    ---\n    $ wp post meta import wp-content/uploads/post-meta.json --yes --no-dry-run\n    350 detected records to process\n    ...\n    Finished.\n    Rows processed: 350. Meta processed: 981. Meta updated: 440. Meta skipped: 535. Meta unchanged: 6. Meta failed 0.\n\n## Installing\n\nInstalling this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.\n\nOnce you've done so, you can install the latest stable version of this package with:\n\n```bash\nwp package install itinerisltd/wp-cli-post-meta-import:@stable\n```\n\nTo install the latest development version of this package, use the following command instead:\n\n```bash\nwp package install itinerisltd/wp-cli-post-meta-import:dev-master\n```\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.\n\nFor a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\n\nBefore you create a new issue, you should [search existing issues](https://github.com/itinerisltd/wp-cli-post-meta-import/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\nOnce you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/itinerisltd/wp-cli-post-meta-import/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/itinerisltd/wp-cli-post-meta-import/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See \"[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)\" for details specific to working on this package locally.\n\n## Support\n\nGitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support\n\n\n*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Fwp-cli-post-meta-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinerisltd%2Fwp-cli-post-meta-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Fwp-cli-post-meta-import/lists"}