Files
xray-manager/README.md
T

57 lines
1.6 KiB
Markdown

# Обновленный CLI-интерфейс
## === 1. USER ===
```
user add <username> [-c <protocol>:<target> [<protocol>:<target> ...]]
user show (<username> | -a)
user modify <username> [-a <protocol>:<target> [<protocol>:<target> ...]] [-d <protocol>:<target> [<protocol>:<target> ...]]
user delete (<username> | -a)
```
## === 2. USER CONNECTION ===
```
user connection add <username> -p <protocol> -t <target>
[--<param> <value> ...]
user connection show <username> (-a | -p <protocol> | -t <target>)
user connection modify <username> -p <protocol> -t <target>
[--<param> <value> ...]
user connection delete <username> (-a | -p <protocol> | -t <target>)
```
## === 3. USER PROFILE ===
```
user profile build (<username> | -a)
user profile show (<username> | -a)
user profile qrcode (<username> | -a)
user profile delete (<username> | -a)
```
## === 4. TARGET ===
```
target add <target_name> -r <outbound_tag> [--pretty "<display_name>"]
target modify <target_name> [-r <outbound_tag>] [--pretty "<display_name>"]
target show (<target_name> | -a)
target delete (<target_name> | -a)
```
## === 5. PROTOCOL ===
```
protocol <protocol_name>
```
## === 6. INBOUND ===
```
inbound add -t <tag> -p <protocol> [--<param> <value> ...]
inbound modify -t <tag> -p <protocol> [--<param> <value> ...]
inbound show (-a | -t <tag> -p <protocol>)
inbound delete (-a | -t <tag> -p <protocol>)
```
## === 7. OUTBOUND ===
```
outbound add -t <tag> -p <protocol> [--<param> <value> ...]
outbound modify -t <tag> -p <protocol> [--<param> <value> ...]
outbound show (-a | -t <tag> -p <protocol>)
outbound delete (-a | -t <tag> -p <protocol>)
```