mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-02-22 01:13:14 +03:00
Update command.md to fit latest release (#432)
also adds ENG and fix a rendering issue
This commit is contained in:
parent
c7319a4493
commit
1548bc0262
@ -21,9 +21,12 @@ The commands are:
|
||||
version Show current version of Xray
|
||||
api Call an API in an Xray process
|
||||
tls TLS tools
|
||||
uuid Generate new UUIDs
|
||||
uuid Generate UUIDv4 or UUIDv5
|
||||
x25519 Generate key pair for x25519 key exchange
|
||||
wg Generate key pair for wireguard key exchange
|
||||
|
||||
Use "xray help <command>" for more information about a command.
|
||||
|
||||
```
|
||||
|
||||
### xray run
|
||||
@ -103,7 +106,6 @@ xray tls <command> [arguments]
|
||||
```
|
||||
|
||||
### xray uuid
|
||||
|
||||
生成 UUID。
|
||||
|
||||
使用方法:
|
||||
@ -112,9 +114,29 @@ xray tls <command> [arguments]
|
||||
xray uuid [-i "example"]
|
||||
```
|
||||
|
||||
### xray x25519
|
||||
生成 x25519 密钥对。
|
||||
|
||||
使用方法:
|
||||
|
||||
```
|
||||
xray x25519 [-i "(base64.RawURLEncoding)" --std-encoding ]
|
||||
```
|
||||
|
||||
### xray wg
|
||||
生成 wireguard curve25519 密钥对。
|
||||
|
||||
使用方法:
|
||||
|
||||
```
|
||||
xray wg [-i "(base64.StdEncoding)"]
|
||||
```
|
||||
|
||||
::: tip
|
||||
当 `-config` 没有指定时,Xray 将先后尝试从以下路径加载 `config.json` :
|
||||
|
||||
- 工作目录(Working Directory)
|
||||
- [环境变量](../config/features/env.md#资源文件路径)中 `Xray.location.asset` 所指定的路径
|
||||
:::
|
||||
|
||||
|
||||
|
@ -95,7 +95,7 @@ lsmod | grep wireguard
|
||||
|
||||
## 4、Xray-core 配置文件修改
|
||||
|
||||
```jsonc
|
||||
```json
|
||||
{
|
||||
"api": {
|
||||
"services": [
|
||||
|
@ -21,11 +21,13 @@ The commands are:
|
||||
version Show current version of Xray
|
||||
api Call an API in an Xray process
|
||||
tls TLS tools
|
||||
uuid Generate new UUIDs
|
||||
uuid Generate UUIDv4 or UUIDv5
|
||||
x25519 Generate key pair for x25519 key exchange
|
||||
wg Generate key pair for wireguard key exchange
|
||||
|
||||
Use "xray help <command>" for more information about a command.
|
||||
```
|
||||
|
||||
```
|
||||
### xray run
|
||||
|
||||
Specify one or more configuration files and run.
|
||||
@ -99,7 +101,7 @@ xray tls <command> [arguments]
|
||||
|
||||
### xray uuid
|
||||
|
||||
Generated UUID.
|
||||
Generate UUID.
|
||||
|
||||
Usage:
|
||||
|
||||
@ -107,6 +109,24 @@ Usage:
|
||||
xray uuid
|
||||
```
|
||||
|
||||
### xray x25519
|
||||
Generate x25519 key pair。
|
||||
|
||||
Usage:
|
||||
|
||||
```
|
||||
xray x25519 [-i "(base64.RawURLEncoding)" --std-encoding]
|
||||
```
|
||||
|
||||
### xray wg
|
||||
Generate wireguard curve25519 key pair。
|
||||
|
||||
Usage:
|
||||
|
||||
```
|
||||
xray wg [-i "(base64.StdEncoding)"]
|
||||
```
|
||||
|
||||
::: tip
|
||||
When `-config` is not specified, Xray will try to load `config.json` from the following paths:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user