socks5-proxy

Usage: oredge socks5-proxy ACTION [OPTIONS]

ACTION:
    create
    list
    show
    modify
    delete

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Create socks5-proxy application

Usage: oredge socks5-proxy create [OPTIONS]

OPTIONS:
    --label string                     lable.
    --partition string                 partition, can add multiple times.
    --port string                      port, can add multiple times.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge socks5-proxy create --partition 1 --port 7001
ID: 1

List socks5-proxy applications list

Usage: oredge socks5-proxy list [OPTIONS]

OPTIONS:
    --page integer                     page, 1(default).
    --page-size integer                page size, 20(default).

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge socks5-proxy list
ID    PORTS    PARTITIONS    LABEL    CREATE TIME            MODIFY TIME
1     7001     1                      2021-05-21 00:13:15    2021-05-21 00:13:15

Get socks5-proxy application’s detail

Usage: oredge socks5-proxy show [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge socks5-proxy show 1
ID         : 1
CREATOR    : 1
PORTS      : 7001
PARTITIONS : 1
CREATE TIME: 2021-05-21 00:13:15
MODIFY TIME: 2021-05-21 00:13:15

Modify socks5-proxy application

Usage: oredge socks5-proxy modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --port integer                     port, can add multiple times.
    --partition integer                partition, can add multiple times.
    --read-timeout integer             read timeout.
    --write-timeout integer            write timeout.
    --timeout-count integer            timeout count.
    --label string                     label.


GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge sock5-proxy modify 1 --label "for test"
OK

Delete socks5-proxy application

Usage: oredge socks5-proxy delete [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge socks5-proxy delete 1
OK