# How to CLI

(CLI) is the command line interface tool of the Martiscoin , you can use the command line in the terminal to interact with the node. This is useful for users who prefer to use a terminal or for servers without a graphical interface.

# Download cli tool

https://github.com/martiscoin/cli/releases

# Run cli

The --help option can be passed with any command to get additional details, for instance Martiscoin.Cli --help will return all options for the Martiscoin.Cli command.

The command Martiscoin.Cli --version will return the current version number of your Martiscoin install. See all public Martiscoin.Cli [JSON RPC].

Let's go through each of the Martiscoin.Cli CLI commands and be sure to check out the Getting Started guide for step-by-step instructions on using each of these commands.

Martiscoin.CLI
Usage:
 dotnet <Martiscoin..Cli/Martiscoin.Cli.dll> [options] <command> [arguments]

Command line arguments:

[options]                          Options for the CLI (optional) - e.g. -help, -rpcuser, see below.
[command]                          Name of RPC method.
[arguments]                        Argument by position (RPC) or Name = Value pairs (API) (optional).

Options:
-help                              This help message
-rpcconnect=<ip>                   Send commands to node running on <ip> (default: 127.0.0.1)
-rpcport=<port>                    Connect to JSON-RPC on <port> (default for Martiscoin: 33334 or default for Bitcoin: 8332)
-rpcuser=<user>                    Username for JSON-RPC connections
-rpcpassword=<pw>                  Password for JSON-RPC connections

Examples:
dotnet Martiscoin.Cli.dll -rpcuser=admin -rpcpassword=123456 -rpcconnect=127.0.0.1 -rpcport=29332 getinfo - Displays general information about the Stratis node on the 127.0.0.3:29332, authenticating with the RPC specified user.