Metadata-Version: 2.1
Name: tmn
Version: 0.1.1
Summary: 
Home-page: https://tomochain.com
License: UNKOWN
Keywords: tomochain,blockchain,masternode,node
Author: Etienne Napoleone
Author-email: etienne@tomochain.com
Requires-Python: >=3.6,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: click (>=6.7,<7.0)
Requires-Dist: clint (>=0.5.1,<0.6.0)
Requires-Dist: docker (>=3.4,<4.0)
Requires-Dist: pastel (>=0.1.0,<0.2.0)
Requires-Dist: validators (>=0.12.2,<0.13.0)
Description-Content-Type: text/markdown

# tmn

| Branch  | Status | Coverage |
| --- | --- | --- |
| Master | [![Build Status](https://travis-ci.org/tomochain/masternode.svg?branch=master)](https://travis-ci.org/tomochain/masternode?branch=master) | [![Coverage Status](https://coveralls.io/repos/github/tomochain/masternode/badge.svg?branch=master)](https://coveralls.io/github/tomochain/masternode?branch=master) |
| Develop | [![Build Status](https://travis-ci.org/tomochain/masternode.svg?branch=develop)](https://travis-ci.org/tomochain/masternode?branch=develop) | [![Coverage Status](https://coveralls.io/repos/github/tomochain/masternode/badge.svg?branch=develop)](https://coveralls.io/github/tomochain/masternode?branch=develop) |

Tomo MasterNode (tmn) is a cli tool to help you run a Tomochain masternode

## Running and applying a masternode

If you are consulting this repo, it's probably because you want to run a masternode.
For complete guidelines on running a full node and applying it as a masternode, please refer to the [documentation](https://docs.tomochain.com/get-started/run-node/).

## Requirements

- Python >= 3.6
- Docker

## Installation

```
pip3 install --user tmn
```

If you are using macOS, make sure that the user python3 path is in your `$PATH`.

They are in `~/Library/Python/[python version number]/bin`.

For example, with python `3.6` and `bash`, add `PATH=$PATH:~/Library/Python/3.6/bin` to your `~/.bashrc`.

## Update

```
pip3 install -U tmn
```

## Usage

```
Usage: tmn [OPTIONS] COMMAND [ARGS]...

  Tomo MasterNode (tmn) is a cli tool to help you run a Tomochain masternode

Options:
  --dockerurl URL  Url to the docker server
  --version        Show the version and exit.
  --help           Show this message and exit.

Commands:
  docs     Display Tomochain documentation link
  inspect  Show details about your Tomochain masternode
  remove   Remove your Tomochain masternode
  start    Start your Tomochain masternode
  status   Show the status of your Tomochain masternode
  stop     Stop your Tomochain masternode
```

### First start

On the first run you will need to provide some options to the start command.
It will let you configure your node.

```
name = tomochain-orion  # A name that represents you.
                        # It will be the public name available on tomomaster
                        # and on the network stat page.

net = testnet           # The network you want to connect to.
                        # Should be testnet or mainnet.

pkey = a25...5f5        # The private key of the account you want your
                        # masternode to use.
                        # It will be used to receive rewards.

tmn start --name $name --net $net --pkey $pkey
```

### After first start

Once your node has been configured, you can use the start, stop and
status command to interact with your node without any options.

```
tmn stop

tmn start

tmn status
```

### Removing

If you want to completely remove your node, you can use the `remove` command.
Be aware that it will delete all data and lose your unique identity.

```
tmn remove
```

## Applying your node

With a running node, you can now apply it as a masternode on TomoMaster.
You can get the details of your node required to apply directly from `tmn`.

```
tmn inspect
```

