Last Updated: March 03, 2016
·
3.843K
· steveniseki

bower commands

Bower is a package manager, which makes it easy to manage all of your application’s front-end dependencies

Installing Bower

npm install -g bower

Finding Packages

bower search
bower search backbone

Installing Packages

bower install backbone
bower install http://backbonejs.org/backbone-min.js

Updating packages

bower update

Uninstalling Packages

bower uninstall backbone

List the bower packages currently installed

bower list

Show versions of a package

bower info backbone

Remove cached packages

bower cache-clean

Installing packages using a bower.json file

// this bower.json file is used to define a Bower package

{
  "name": "app-name",
  "version": "0.0.1",
  "dependencies": {
    "sass-bootstrap": "~3.0.0",
    "modernizr": "~2.6.2",
    "jquery": "~1.10.2"
  },
  "private": true
}

Utility for creating a bower.json file for your project.

bower init

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside