docs: описание новой структуры команд

This commit is contained in:
2026-06-30 02:11:32 +03:00
parent ad156d8e43
commit f6c4fc2764
+52 -7
View File
@@ -1,11 +1,56 @@
# Обновленный CLI-интерфейс # Обновленный 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)
``` ```
user add username [-c protocol:target [protocol:target ...]]
user show [-a] [username]
user modify username [-a protocol:target [protocol:target ...]]
[-d protocol:target [protocol:target ...]]
user delete [-a] [username]
user connection add username [-p protocol] [-t target] [--uuid] ## === 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>)
```