Run from CLI
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.
Running the Anyone Client
To run the Anyone client using the CLI, use the following command:
This command will start the client with default port settings.
Default Port Settings
When run without any options, the Anyone Client uses the following default ports:
SocksPort: 9050
ControlPort: 9051
OrPort: 9001
CLI Options
You can customize the client's behavior using various command-line options:
Option | Description | Default |
---|---|---|
| Set the SocksPort | 9050 |
-c | Set the ControlPort (use 0 to disable) | 9051 |
| Set the OrPort | 9001 |
| Enable verbose mode for full client logs | Disabled |
| Set the path to a custom anonrc config file | None |
| Set the path to a custom anon binary | None |
Example Usage
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
Important Notes
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.
Terms and Agreements
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.
Last updated