Show Menu
Cheatography

Bower API Cheat Sheet by

Command Line Reference for Bower API

cache

$ bower cache <command> [<args>]
Manage bower cache

cache clean

$ bower cache clean
$ bower cache clean <name> [<name> ...]
$ bower cache clean <name>#<version> [<name>#<version> ..]
Cleans cached packages

cache list

$ bower cache list
$ bower cache list <name> [<name> ...]
Lists cached packages

help

$ bower help <command>
Display help inform­ation about Bower

home

$ bower home
$ bower home <package>
$ bower home <package>#<version>
Opens a package homepage into your favorite browser.

init

$ bower init
Intera­ctively create a bower.json file
 

info

$ bower info <package>
$ bower info <package> [<property>]
$ bower info <package>#<version> [<property>]
Displays overall inform­ation of a package or of a particular version.

install

$ bower install [<options>]
$ bower install <endpoint> [<endpoint> ..] [<options>]
Installs the project depend­encies or a specific set of endpoints.

link

$ bower link
$ bower link <name> [<local name>]
The link functi­onality allows developers to easily test their packages.

login

$ bower login
Authen­ticate with GitHub and store creden­tials. Required to unregister packages.

list

$ bower list [<options>]
List local packages and possible updates.

lookup

$ bower lookup <name>
Look up a package URL by name
 

prune

$ bower prune
Uninstalls local extraneous packages

register

$ bower register <name> <url>
Register a package

search

$ bower search
$ bower search <name>
Finds all packages or a specific package.

uninstall

$ bower uninstall <name> [<name> ..] [<options>]
Uninstalls a package locally from your bower_­com­ponents directory

update

$ bower update <name> [<name> ..] [<options>]
Updates installed packages to their newest version according to bower.json

unregister

$ bower unregister <package>
Unregi­sters a package

version

$ bower version [<newversion> | major | minor | patch]
Run this in a package directory to bump the version and write the new data back to the bower.json file
 

Options

 

allow-root

--allow-root
Allows running commands as root.

force

-f, --force
Makes various commands more forceful

json

-j, --json
Output consumable JSON

log-level

-l, --log-level
What level of logs to report

offline

-o, --offline
Do not use network connection

quiet

-q, --quiet
Only output important inform­ation

silent

-s, --silent
Do not output anything, besides errors

verbose

-V, --verbose
Makes output more verbose

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.