title = 'Bower CLI'; $this->params['breadcrumbs'][] = ['label' => 'Docs', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>

Using Bower to Manage Mods

You can use Bower to install Minetest mods and dependency mods quickly and easily under Linux, Windows, and Mac OS X. Bower needs primarily two software packages named NodeJS and Git, which are easy to install.

Installation

Windows

  1. Download and install nodejs.
  2. Download and install git.

Install bower

C:\> npm install -g bower

Mac

  1. Download and install nodejs.
  2. Download and install git.

Install bower

$ npm install -g bower

Ubuntu/Debian

Install nodejs, npm and git

$ sudo apt-get install nodejs npm git-core

Ubuntu users, link nodejs to node

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

Install bower

$ sudo npm install -g bower

Configuration

In order to connect to the minetest-bower registry you need to configure bower.

Create a .bowerrc file in your home directory or minetest folder with the following contents.

{
    "registry": "https://minetest-bower.herokuapp.com/",
    "directory" : "mods"
}

Usage

Install Mods

Install mods and their dependencies with bower install.

$ bower install <mod>

Search Mods

Find mods that you can install with bower search or .

$ bower search <keyword>

# for example
$ bower search rainbow

Register Mods

Register mods with bower register or .

$ bower register <my_mod_name> <git_endpoint>

# for example
$ bower register rainbows https://github.com/user/rainbows.git

Optionally, to add more information about your mod such as description, screenshots, authors and licence, you can submit a JSON file along with your mod. To do so add a bower.json file to to your mod's git repository. For the format to be used, .