{"repo":"wp-cli/dist-archive-command","free":true,"listed":false,"github":"https://github.com/wp-cli/dist-archive-command","clone":"git clone https://github.com/wp-cli/dist-archive-command.git","description":"Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file","language":"PHP","stars":54,"topics":["wp-cli","wordpress","cli","distribution","archive","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"wp-cli/dist-archive-command =========================== Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file. Quick links: Using Installing Contributing Support Using wp dist-archive [ ] [--create-target-dir] [--force] [--plugin-dirname= ] [--format= ] [--filename-format= ] For a plugin in a directory 'wp-content/plugins/hello-world', this command creates a distribution archive 'wp-content/plugins/hello-world.zip'. You can specify files or directories you'd like to exclude from the archive with a .distignore file in your project repository: Use one distribution archive command for many projects, instead of a bash script in each project. OPTIONS Path to the project that includes a .distignore file. [ ] Path and optional file name for the distribution archive. If only a path is provided, the file name defaults to the project directory name plus the version, if discoverable. Also, if only a path is given, the directory that it points to has to already exist for the command to function correctly. [--create-target-dir] Automatically create the target directory as needed. [--force] Forces overwriting of the archive file if it already exists. [--plugin-dirname= ] Set the archive extract directory name. Defaults to project directory name. [--format= ] Choose the format for the archive. --- default: zip options: - zip - targz --- [--filename-format= ] Use a custom format for archive filename. Available substitutions: {name}, {version}. This is ignored if","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/dist-archive-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}