blob: 2fffeed4187fac1b3a8d2c3176be5faa15f3de7a [file] [log] [blame]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>nmo Manual &amp; Documentation</title>
<link rel="stylesheet" href="./assets/css/style.css">
</head>
<body>
<a href="https://github.com/robertkowalski/nmo"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/567c3a48d796e2fc06ea80409cc9dd82bf714434/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png"></a>
<div class="wrapper">
<header>
<h1>
<a href="./">nmo</a>
</h1>
</header>
<div class="content">
<h2>Install nmo<span><a class="mark" href="#index_md_install_nmo" id="index_md_install_nmo">#</a></span></h2>
<pre><code># you need to have node installed
npm install -g nmo</code></pre>
<h2>How to use nmo?<span><a class="mark" href="#index_md_how_to_use_nmo" id="index_md_how_to_use_nmo">#</a></span></h2>
<p>Take a look at the video:
</p>
<iframe width="560" height="315" src="//www.youtube.com/embed/V_nChYFPixc" frameborder="0" allowfullscreen></iframe>
<h3>Content from the video<span><a class="mark" href="#index_md_content_from_the_video" id="index_md_content_from_the_video">#</a></span></h3>
<pre><code># check if node is online
nmo isonline http://foo:bar@localhost:15984
# create a cluster config for the cluster anemone
nmo cluster add node1 http://foo:bar@localhost:15984 anemone
nmo cluster add node2 http://foo:bar@localhost:25984 anemone
nmo cluster add node3 http://foo:bar@localhost:35984 anemone
# check config
nmo cluster get
# we support json!
nmo cluster get --json
nmo isonline http://foo:bar@localhost:15984 --json
# join cluster
nmo cluster join anemone
# try again
nmo cluster join anemone</code></pre>
</div>
<footer>
<a href="https://github.com/robertkowalski/nmo">
Found a bug or typo? Want to contribute code?
</a>
</footer>
</div>
<nav class="toc-container">
<div class="toc section-toc">
<ul>
<li><a href="#index_md_install_nmo">Install nmo</a></li>
<li><a href="#index_md_how_to_use_nmo">How to use nmo?</a><ul>
<li><a href="#index_md_content_from_the_video">Content from the video</a></li>
</ul>
</li>
</ul>
</div>
<hr />
<div class="toc main-toc">
<a href="./api/nmo-activetasks.html">activetasks</a>
<a href="./api/nmo-cluster.html">cluster</a>
<a href="./api/nmo-config.html">config</a>
<a href="./api/nmo-couch-config.html">couch-config</a>
<a href="./api/nmo-import-csv.html">import-csv</a>
<a href="./api/nmo-isonline.html">isonline</a>
<a href="./api/nmo-v.html">v</a>
<a href="./cli/nmo-cluster.html">cluster</a>
<a href="./cli/nmo-config.html">config</a>
<a href="./cli/nmo-couch-config.html">couch-config</a>
<a href="./cli/nmo-help.html">help</a>
<a href="./cli/nmo-import-csv.html">import-csv</a>
<a href="./cli/nmo-isonline.html">isonline</a>
<a href="./cli/nmo-v.html">v</a>
<a href="./misc/nmo-faq.html">faq</a>
<a href="./index.html">index</a>
</div>
</nav>
<script src="./assets/main.js"></script>
</body>
</html>