title = 'Bower CLI'; $this->params['breadcrumbs'][] = ['label' => 'Docs', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
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.
Install bower
C:\> npm install -g bower
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
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" }
Install mods and their dependencies with bower install
.
$ bower install <mod>
Find mods that you can install with
bower search
or = Html::a('browse the repository', ['/mod/index']) ?>.
$ bower search <keyword> # for example $ bower search rainbow
Register mods with
bower register
or = Html::a('submit a mod online', ['/mod/create']) ?>.
$ 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, = Html::a('click here', ['/docs/bower-format']); ?>.