qmetrics.net

webpack CLI

Official command-line interface for webpack builds

Build & DeploymentDesktop/CLI app
webpack CLI screenshot

Webpack CLI is the official command-line front end for webpack. It exposes configuration options, development workflows, and project scaffolding commands.

Overview

Webpack CLI provides the command-line interface for webpack, mirroring options from webpack.config.js and letting flags override file-based settings. It is positioned as the standard way to run webpack from the terminal.

The tool ships commands for building bundles, watching files, validating configuration, printing environment information, and running webpack-dev-server for live reload. Shell completion is available for zsh, bash, fish, and PowerShell, driven from webpack's configuration schema.

The init flow integrates with create-webpack-app to generate new projects, with templates for default, React, Vue, and Svelte setups. Separate scaffold commands exist for custom loaders and plugins.

Starting from CLI v4 with webpack v5, many core configuration fields can be tuned directly from the command line without editing the config file. Exit codes distinguish successful builds, webpack errors, and configuration problems.

Key features

  • Build, watch, and serve webpack projects
  • Config validation via configtest command
  • create-webpack-app project scaffolding
  • Shell completion for major shells
  • Core webpack flags from the CLI
  • Info command for local environment details
  • Loader and plugin scaffold templates
  • Merges CLI flags with webpack.config.js

Use cases

  • Bundling front-end assets in CI or locally
  • Starting webpack-dev-server for development
  • Generating new webpack project layouts
  • Validating webpack configuration files

Tags

Similar software

nvm

POSIX shell version manager for Node.js

nvm installs and switches between Node.js versions from the command line on POSIX shells including bash and zsh.

★ 96.3k⟳ 2 days agoMIT
Build & DeploymentDesktop/CLI app

uv

Fast Python package and project manager

uv is a Rust-based tool that manages Python dependencies, virtual environments, scripts, and interpreters. It offers a pip-compatible interface and universal lockfiles for projects.

★ 92.7k⟳ 2 days agoApache-2.0
Build & DeploymentDesktop/CLI app

Hugo

Go-based static site generator with flexible templating

Hugo is a static site generator written in Go. It turns content and templates into deployable HTML sites with asset pipelines for CSS, JavaScript, Sass, and images.

★ 90.6k⟳ todayApache-2.0
Build & DeploymentDesktop/CLI app

Vite

Frontend build tool for modern web projects

Vite is a build tool for modern web projects, combining a development server with an optimized production build. It targets a faster, leaner local development workflow.

★ 84.2k⟳ yesterdayMIT
Build & DeploymentDesktop/CLI app

act

Local runner for GitHub Actions workflows

A command-line tool that executes GitHub Actions workflows on your machine using Docker. It mirrors GitHub’s environment for faster feedback while editing workflow files.

★ 72.8k⟳ 12 days agoMIT
Build & DeploymentDesktop/CLI app

Moby

Modular toolkit for assembling container systems

Moby bundles container build, runtime, registry, and orchestration components so integrators can craft custom container platforms instead of using a single fixed product.

★ 72.3k⟳ todayApache-2.0