LinuxCommandLibrary

bower

Manage front-end web dependencies.

TLDR

Install package

$ bower install [jquery]
copy
Install from bower.json
$ bower install
copy
Search for packages
$ bower search [bootstrap]
copy
Update packages
$ bower update
copy
List installed packages
$ bower list
copy

SYNOPSIS

bower command [options]

DESCRIPTION

bower is a package manager for web development, managing front-end dependencies like JavaScript libraries, CSS frameworks, and web components. It downloads and installs packages from Git repositories.
The tool was popular for front-end dependency management but is now deprecated in favor of npm and yarn.

PARAMETERS

install package

Install package
update package
Update package
uninstall package
Remove package
search query
Search for packages
list
List installed packages
info package
Show package information
init
Create bower.json
--save
Add to dependencies
--save-dev
Add to devDependencies

CONFIGURATION

bower.json:

$ {
  "name": "my-project",
  "dependencies": {
    "jquery": "^3.6.0",
    "bootstrap": "^5.1.0"
  }
}
copy

WORKFLOW

$ # Initialize project
bower init

# Install package
bower install jquery --save

# Install all dependencies
bower install

# Update all
bower update
copy

CAVEATS

DEPRECATED - No longer actively maintained. Use npm or yarn instead for new projects. Flat dependency tree can cause version conflicts. Requires .bowerrc for configuration. Most packages now available on npm.

HISTORY

Bower was created by Twitter in 2012 to manage front-end dependencies, but was officially deprecated in 2017 as npm adopted similar functionality.

SEE ALSO

npm(1), yarn(1), pnpm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community