The Nuts executable this project provides can be used to both run a Nuts server (a.k.a. node) and administer a running node remotely. This chapter explains how to administer your running Nuts node.
The following is needed to run a Nuts node:
- Nuts executable for your platform, or a Nuts docker container.
- The address of your running Nuts node. You can pass this using the address variable.
Run the executable without command or flags, or with the help command to find out what commands are supported:
nuts
For example, to list all network transactions in your node (replace the value of NUTS_ADDRESS with the HTTP address of your Nuts node):
NUTS_ADDRESS=my-node:1323 nuts network list
You can also use the Nuts docker image to run a command (against a remote Nuts node):
docker run nutsfoundation/nuts-node --address=http://my-node:1323 network list
Or inside a running Nuts docker container (against the running Nuts node):
docker exec <nuts-container-name> nuts network list
See nuts-cli-reference
for the available commands.
The following options can be supplied when running CLI commands: