|
| 1 | +--- |
| 2 | +title: Install Kendo UI as a Bower Package |
| 3 | +page_title: Install Kendo UI as a Bower Package |
| 4 | +description: "Use Kendo UI in your project by installing it as a Bower package" |
| 5 | +position: 2 |
| 6 | +--- |
| 7 | + |
| 8 | +# Install Kendo UI as a Bower Package |
| 9 | + |
| 10 | +[Bower](http://bower.io/) is a popular package manager for the web. Kendo UI maintains two bower packages, Kendo UI Core and Kendo UI Professional. |
| 11 | +Official releases, service packs and internal builds are uploaded to both. |
| 12 | + |
| 13 | +## Install Kendo UI Core Bower Package |
| 14 | + |
| 15 | +The Kendo UI Core bower package is is available as a [public GitHub repository](https://github.com/kendo-labs/bower-kendo-ui). It is also registered as `kendo-ui-core` in the bower registry. |
| 16 | + |
| 17 | +```sh |
| 18 | +bower install kendo-ui-core |
| 19 | +``` |
| 20 | + |
| 21 | +## Install Kendo UI Professional Bower Package |
| 22 | + |
| 23 | +The Kendo UI Professional bower package is hosted as a username/password protected Git repository on `bower.telerik.com`. To access it, you need an active Telerik account. |
| 24 | + |
| 25 | +```sh |
| 26 | +bower install https://bower.telerik.com/bower-kendo-ui.git |
| 27 | +``` |
| 28 | + |
| 29 | +You can also add the package in the `bower.json` file: |
| 30 | + |
| 31 | +```json |
| 32 | +"dependencies": { |
| 33 | + "kendo-ui": "https://bower.telerik.com/bower-kendo-ui.git#~2014.3.1425" |
| 34 | +} |
| 35 | +``` |
| 36 | + |
| 37 | +Upon install/update you will be prompted for your Telerik username and password. |
| 38 | + |
| 39 | +## Automate Kendo UI Professional package install on production servers |
| 40 | + |
| 41 | +To avoid retyping the user name/password entry when deploying, store the credentials in a [.netrc file](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-File.html) |
| 42 | + |
| 43 | +### .netrc file contents |
| 44 | + |
| 45 | +```sh |
| 46 | +machine bower.telerik.com |
| 47 | + |
| 48 | + password mysecret |
| 49 | +``` |
| 50 | + |
| 51 | +> Make sure that you set the `.netrc` file permissions file to being readable only [from your current user](http://www.mavetju.org/unix/netrc.php). |
0 commit comments