Update command.md to fit latest release (#432)

also adds ENG and fix a rendering issue
This commit is contained in:
チセ 2023-12-25 03:45:01 +08:00 committed by GitHub
parent c7319a4493
commit 1548bc0262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 6 deletions

View File

@ -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` 所指定的路径
:::

View File

@ -95,7 +95,7 @@ lsmod | grep wireguard
## 4、Xray-core 配置文件修改
```jsonc
```json
{
"api": {
"services": [

View File

@ -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: