Use the Node CLI
Here's how to use the ant CLI to run one or more Autonomi nodes from your terminal and contribute storage space to the Network
Last updated
Here's how to use the ant CLI to run one or more Autonomi nodes from your terminal and contribute storage space to the Network
The ant CLI lets you run one or more Autonomi nodes from your terminal and contribute your spare storage space to the Network.
If this is your first time, we'd recommend you start with just a single node, so you can get a feel for how your machine and connection handle it. Then add more as your resources allow.
You only need your public wallet address for this. Do not paste your private key or secret recovery phrase into any of these commands.
ant CLIOn Mac and Linux:
curl -fsSL https://raw.githubusercontent.com/WithAutonomi/ant-client/main/install.sh | bashOn Windows:
irm https://raw.githubusercontent.com/WithAutonomi/ant-client/main/install.ps1 | iexWhen the install finishes, you can check it worked with:
ant --helpIf your terminal says ant cannot be found, close it and open a new one, then try again.
Now register a node with your wallet address:
ant node add --rewards-address 0xYourWalletAddressAny Ethereum address can be used here, but you'll need a compatible wallet if you want to see and use anything your nodes earn.
If this is the first time you've done this, the CLI will fetch the latest ant-node binary for you automatically.
To see all of your registered nodes and their status, run:
ant node statusTo see a summary of the background daemon, run:
ant node daemon statusThe daemon status command will also show you a local console URL you can open in your browser.
Once your node is running, it will begin gathering data and serving it to the Network.
Your nodes will update themselves automatically over time, so you do not need to manually reinstall the node binary for normal updates.
When you're ready to contribute more storage space, just add more nodes and start them:
ant node add --rewards-address 0xYourWalletAddress --count 2
ant node startIf you'd prefer to choose the ports yourself, you can do that too:
ant node add --rewards-address 0xYourWalletAddress --count 2 --node-port 12000-12001If you install ant using the commands above, you should not need to enter bootstrap peers manually for normal live-network use.
When you add nodes, the CLI will show you where each node's data and logs are being stored.
If you want to stop the background daemon itself, first stop your nodes:
ant node stop
ant node daemon stopIf you want to check the daemon again later:
ant node daemon statusIf you want to update the ant CLI itself:
ant updateWhen adding nodes, there are a few extra options you may find useful:
--metrics-port to set metrics ports
--network-id to target a specific network
--bootstrap to provide bootstrap peers manually
--env to pass environment variables to the node
For a fuller list of commands and options, run:
Last updated
ant node --help
ant node add --help
ant node daemon --help