Run from CLI
Last updated
Last updated
The Anyone Protocol NPM package provides a command-line interface (CLI) that allows you to easily run and configure the Anyone client. This page details how to use the CLI and the available options.
To run the Anyone client using the CLI, use the following command:
This command will start the client with default port settings.
When run without any options, the Anyone Client uses the following default ports:
SocksPort: 9050
ControlPort: 9051
OrPort: 9001
You can customize the client's behavior using various command-line options:
Option | Description | Default |
---|---|---|
Here's an example of how to use these options:
This command will:
Set the SocksPort to 9150
Disable the ControlPort
Set the OrPort to 9101
Use a custom anonrc file located at './customAnonrc'
Use a custom anon binary located at '/usr/local/bin/anon'
Enable verbose mode
When changing ports, ensure they don't conflict with other services on your system.
The -b
option allows you to use a preinstalled anon binary instead of the one that comes with the package.
To bypass the user agreement automatically, you can create a file named 'terms-agreement' in the working directory. This file should contain the line 'agreed' to be considered valid.
-s
Set the SocksPort
9050
-c
Set the ControlPort (use 0 to disable)
9051
-o
Set the OrPort
9001
-v
Enable verbose mode for full client logs
Disabled
-f
Set the path to a custom anonrc config file
None
-b
Set the path to a custom anon binary
None