{"id":13452628,"url":"https://github.com/webpack/webpack-cli","last_synced_at":"2025-05-12T04:58:52.521Z","repository":{"id":14476902,"uuid":"76603199","full_name":"webpack/webpack-cli","owner":"webpack","description":"Webpack's Command Line Interface","archived":false,"fork":false,"pushed_at":"2025-05-09T02:02:39.000Z","size":29912,"stargazers_count":2585,"open_issues_count":16,"forks_count":627,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-05-09T02:44:53.180Z","etag":null,"topics":["cli","scaffold","webpack"],"latest_commit_sha":null,"homepage":"https://webpack.js.org/api/cli","language":"JavaScript","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/webpack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"webpack"}},"created_at":"2016-12-15T23:05:08.000Z","updated_at":"2025-05-08T11:15:00.000Z","dependencies_parsed_at":"2023-10-14T17:08:11.583Z","dependency_job_id":"7ce5b6f3-6d24-44d3-8f6a-d2169395cc8f","html_url":"https://github.com/webpack/webpack-cli","commit_stats":{"total_commits":3595,"total_committers":132,"mean_commits":"27.234848484848484","dds":0.7201668984700973,"last_synced_commit":"5a6a70b8dfe38e147ee158018dd154e49a5a0c0d"},"previous_names":[],"tags_count":326,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpack","download_url":"https://codeload.github.com/webpack/webpack-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253342299,"owners_count":21893558,"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":["cli","scaffold","webpack"],"created_at":"2024-07-31T07:01:29.641Z","updated_at":"2025-05-11T02:43:31.263Z","avatar_url":"https://github.com/webpack.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/webpack/webpack-cli\"\u003e\n        \u003cimg width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003ewebpack CLI\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  The official Command Line Interface of webpack\n\u003c/p\u003e\n\u003cbr\u003e\n\n[![npm][npm]][npm-url]\n[![Build Status][build-status]][build-status-url]\n[![codecov][codecov-badge]][codecov-url]\n[![Install Size][size]][size-url]\n[![GitHub Discussions][discussion]][discussion-url]\n[![Discord][discord-invite]][discord-url]\n\n## Table of Contents\n\n- [Introduction](#introduction)\n  - [How to install](#how-to-install)\n- [Supported arguments and commands](#supported-arguments-and-commands)\n- [Packages](#packages)\n  - [Commands](#commands)\n- [Getting started](#getting-started)\n- [Exit codes and their meanings](#exit-codes-and-their-meanings)\n- [Contributing and Internal Documentation](#contributing-and-internal-documentation)\n- [Funding](#funding)\n\n## Introduction\n\nWebpack CLI provides the interface of options webpack uses in its configuration file. The CLI options override options passed in the configuration file.\n\nThe CLI provides a rich set of commands that helps you develop your application faster.\n\n### How to install\n\nIf you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed!\n\nOtherwise `npm install --save-dev webpack-cli`, `yarn add webpack-cli --dev` or `pnpm add --D webpack-cli` will install it.\n\n## Supported arguments and commands\n\nGet to know what are the available commands and arguments [here](./packages/webpack-cli/README.md).\n\n## Packages\n\nWe organize webpack CLI as a multi-package repository using [lerna](https://github.com/lerna/lerna). The main CLI logic using options, resides in [`packages/webpack-cli`](https://github.com/webpack/webpack-cli/tree/master/packages/webpack-cli), while commands supported by the CLI, has dedicated subfolders in the folder [`packages`](https://github.com/webpack/webpack-cli/tree/master/packages).\n\nA summary of supported commands is described below.\n\n### Commands\n\nSupporting developers is an important task for webpack CLI.\nThus, webpack CLI provides different commands for many common tasks.\n\n- [`build|bundle|b [entries...] [options]`](https://webpack.js.org/api/cli/#build) - Run webpack (default command, can be omitted).\n- [`configtest|t [config-path]`](https://webpack.js.org/api/cli/#configtest) - Validate a webpack configuration.\n- [`help|h [command] [option]`](https://webpack.js.org/api/cli/#help) - Display help for commands and options.\n- [`info|i [options]`](https://webpack.js.org/api/cli/#info) - Returns information related to the local environment.\n- [`serve|server|s [entries...] [options]`](https://webpack.js.org/api/cli/#serve) - Use webpack with a development server that provides live reloading.\n- [`version|v [commands...]`](https://webpack.js.org/api/cli/#version) - Output the version number of `webpack`, `webpack-cli`, `webpack-dev-server`, and commands.\n- [`watch|w [entries...] [options]`](https://webpack.js.org/api/cli/#watch) - Run webpack and watch for files changes.\n\n## Getting started\n\nIf you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack, then webpack CLI is already installed!\n\nOtherwise, you would need to install webpack CLI and the packages you want to use.\n\nIf you want to create a fresh webpack project run the command as stated below:\n\n```sh\nnpx create-webpack-app init\n```\n\nYou will then be prompted for some questions about which features you want to use, such as `scss`, `typescript`, `PWA` support or other features.\n\n## Exit codes and their meanings\n\n| Exit Code | Description                                        |\n| --------- | -------------------------------------------------- |\n| `0`       | Success                                            |\n| `1`       | Errors from webpack                                |\n| `2`       | Configuration/options problem or an internal error |\n\n## Contributing and Internal Documentation\n\nThe webpack family welcomes any contributor, small or big. We are happy to elaborate, guide you through the source code and find issues you might want to work on! To get started have a look at our [contribution documentation](./.github/CONTRIBUTING.md).\n\n## Funding\n\nIf you like **webpack**, please consider donating through [Open Collective](https://opencollective.com/webpack) to help us keep the project relevant.\n\n[npm]: https://img.shields.io/npm/v/webpack-cli.svg\n[npm-url]: https://www.npmjs.com/package/webpack-cli\n[build-status]: https://github.com/webpack/webpack-cli/workflows/webpack-cli/badge.svg?branch=master\n[build-status-url]: https://github.com/webpack/webpack-cli/actions\n[codecov-badge]: https://codecov.io/gh/webpack/webpack-cli/branch/master/graph/badge.svg?token=6B6NxtsZc3\n[codecov-url]: https://codecov.io/gh/webpack/webpack-cli\n[size]: https://packagephobia.com/badge?p=webpack-cli\n[size-url]: https://packagephobia.com/result?p=webpack-cli\n[discussion]: https://img.shields.io/github/discussions/webpack/webpack\n[discussion-url]: https://github.com/webpack/webpack/discussions\n[discord-invite]: https://img.shields.io/discord/1180618526436888586?style=flat\u0026logo=discord\u0026logoColor=white\u0026label=discord\n[discord-url]: https://discord.gg/ARKBCXBu\n\n## Code of Conduct\n\nGuidelines to how the webpack organization expects you to behave is documented under [Code of Conduct](./CODE_OF_CONDUCT.md)\n","funding_links":["https://opencollective.com/webpack"],"categories":["TypeScript","JavaScript","cli"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fwebpack-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpack%2Fwebpack-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fwebpack-cli/lists"}