V2Ray has the following commandline parameters:
v2ray [-version] [-test] [-config=config.json] [-format=json]
Print the version of V2Ray only, and then exit.
Test configuration, output any errors and then exit.
URI of the configuration. Avilable formats are:
- Path to the local config file. May be a relative path or absolute path.
"stdin:": Indicates V2Ray to read configuration from standard input. Caller must close stdin after writing out configuration.
- Value begins with
https://(lowercase): V2Ray tries to load configuration from the remote address.
Configuration format. Choices are:
json: JSON format.
protobuf: Protobuf format.
-config is not specified, V2Ray first tries to load configuration from
config.json under working directory, then from the directory specified by environment variable
V2Ctl has the following commandline parameters:
v2ctl <command> <options>
Available commands are listed below. Each command has its own options.
v2ctl verify [--sig=/path/to/sigfile] /file/to/verify
To verify the signature of a V2Ray binary.
Path to signature file. Default value is the ".sig" file to the path to be verified.
First argument: the file to be verified.
No options. This command reads configuration in JSON format from stdin, and then write corresponding configuration in Protobuf format to stdout.
No options. This command prints a random UUID.