HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bower — A package manager optimized for front-end web development. A package can be a GitHub user/repo short

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandoptimizedclibowerpackageforfrontmanager

Problem

How to use the bower command: A package manager optimized for front-end web development. A package can be a GitHub user/repo shorthand, a Git endpoint, a URL or a registered package. More information: <https://bower.io/#getting-started>.

Solution

bower — A package manager optimized for front-end web development. A package can be a GitHub user/repo shorthand, a Git endpoint, a URL or a registered package. More information: <https://bower.io/#getting-started>.

Install a project's dependencies, listed in its bower.json:
bower install


Install one or more packages to the bower_components directory:
bower install {{package}} {{package}}


Uninstall packages locally from the bower_components directory:
bower uninstall {{package}} {{package}}


List local packages and possible updates:
bower list


Create a bower.json file for your package:
bower init


Install a specific dependency version, and add it to bower.json:
bower install {{local_name}}={{package}}#{{version}} --save


Display help for a specific command:
bower help {{command}}

Code Snippets

Install a project's dependencies, listed in its bower.json

bower install

Install one or more packages to the bower_components directory

bower install {{package}} {{package}}

Uninstall packages locally from the bower_components directory

bower uninstall {{package}} {{package}}

List local packages and possible updates

bower list

Create a `bower.json` file for your package

bower init

Context

tldr-pages: common/bower

Revisions (0)

No revisions yet.