Skip to content

Commit

Permalink
Update command.md to fit latest release (#432)
Browse files Browse the repository at this point in the history
also adds ENG and fix a rendering issue
  • Loading branch information
chise0713 authored Dec 24, 2023
1 parent c7319a4 commit 1548bc0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
26 changes: 24 additions & 2 deletions docs/document/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -103,7 +106,6 @@ xray tls <command> [arguments]
```

### xray uuid

生成 UUID。

使用方法:
Expand All @@ -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` 所指定的路径
:::


2 changes: 1 addition & 1 deletion docs/document/level-2/redirect.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ lsmod | grep wireguard

## 4、Xray-core 配置文件修改

```jsonc
```json
{
"api": {
"services": [
Expand Down
26 changes: 23 additions & 3 deletions docs/en/document/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -99,14 +101,32 @@ xray tls <command> [arguments]

### xray uuid

Generated UUID.
Generate UUID.

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:

Expand Down

0 comments on commit 1548bc0

Please sign in to comment.