{"id":28619627,"url":"https://github.com/wp-cli/dist-archive-command","last_synced_at":"2025-06-12T04:40:50.067Z","repository":{"id":8746382,"uuid":"59611807","full_name":"wp-cli/dist-archive-command","owner":"wp-cli","description":"Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file","archived":false,"fork":false,"pushed_at":"2025-04-11T09:38:21.000Z","size":211,"stargazers_count":50,"open_issues_count":5,"forks_count":24,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-11T21:44:05.426Z","etag":null,"topics":["archive","cli","distribution","hacktoberfest","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":"https://developer.wordpress.org/cli/commands/dist-archive/","language":"Gherkin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-cli.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-24T22:04:30.000Z","updated_at":"2025-04-11T09:38:24.000Z","dependencies_parsed_at":"2023-01-14T11:49:37.424Z","dependency_job_id":"e5fa5c8e-9e3f-4bf4-b9cf-02d6ab1936e1","html_url":"https://github.com/wp-cli/dist-archive-command","commit_stats":{"total_commits":112,"total_committers":14,"mean_commits":8.0,"dds":0.7232142857142857,"last_synced_commit":"8b645c91cda3ffb45da16f03b3e7909a836053af"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/wp-cli/dist-archive-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fdist-archive-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fdist-archive-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fdist-archive-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fdist-archive-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-cli","download_url":"https://codeload.github.com/wp-cli/dist-archive-command/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fdist-archive-command/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259400436,"owners_count":22851810,"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":["archive","cli","distribution","hacktoberfest","wordpress","wp-cli"],"created_at":"2025-06-12T04:40:47.219Z","updated_at":"2025-06-12T04:40:50.056Z","avatar_url":"https://github.com/wp-cli.png","language":"Gherkin","readme":"wp-cli/dist-archive-command\n===========================\n\nCreate a distribution .zip or .tar.gz based on a plugin or theme's .distignore file.\n\n[![Testing](https://github.com/wp-cli/dist-archive-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/dist-archive-command/actions/workflows/testing.yml)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)\n\n## Using\n\n~~~\nwp dist-archive \u003cpath\u003e [\u003ctarget\u003e] [--create-target-dir] [--force] [--plugin-dirname=\u003cplugin-slug\u003e] [--format=\u003cformat\u003e] [--filename-format=\u003cfilename-format\u003e]\n~~~\n\nFor a plugin in a directory 'wp-content/plugins/hello-world', this command\ncreates a distribution archive 'wp-content/plugins/hello-world.zip'.\n\nYou can specify files or directories you'd like to exclude from the archive\nwith a .distignore file in your project repository:\n\n```\n.distignore\n.editorconfig\n.git\n.gitignore\n.travis.yml\ncircle.yml\n```\n\nUse one distribution archive command for many projects, instead of a bash\nscript in each project.\n\n**OPTIONS**\n\n\t\u003cpath\u003e\n\t\tPath to the project that includes a .distignore file.\n\n\t[\u003ctarget\u003e]\n\t\tPath and optional file name for the distribution archive.\n\t\tIf only a path is provided, the file name defaults to the project directory name plus the version, if discoverable.\n\t\tAlso, if only a path is given, the directory that it points to has to already exist for the command to function correctly.\n\n\t[--create-target-dir]\n\t\tAutomatically create the target directory as needed.\n\n\t[--force]\n\t\tForces overwriting of the archive file if it already exists.\n\n\t[--plugin-dirname=\u003cplugin-slug\u003e]\n\t\tSet the archive extract directory name. Defaults to project directory name.\n\n\t[--format=\u003cformat\u003e]\n\t\tChoose the format for the archive.\n\t\t---\n\t\tdefault: zip\n\t\toptions:\n\t\t  - zip\n\t\t  - targz\n\t\t---\n\n\t[--filename-format=\u003cfilename-format\u003e]\n\t\tUse a custom format for archive filename. Available substitutions: {name}, {version}.\n\t\tThis is ignored if the \u003ctarget\u003e parameter is provided or the version cannot be determined.\n\t\t---\n\t\tdefault: \"{name}.{version}\"\n\t\t---\n\n## Installing\n\nInstalling this package requires WP-CLI v2 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 wp-cli/dist-archive-command:@stable\n```\n\nTo install the latest development version of this package, use the following command instead:\n\n```bash\nwp package install wp-cli/dist-archive-command:dev-main\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/wp-cli/dist-archive-command/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/wp-cli/dist-archive-command/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/wp-cli/dist-archive-command/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%2Fwp-cli%2Fdist-archive-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-cli%2Fdist-archive-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fdist-archive-command/lists"}