app

Usage: oredge acme-provider ACTION [OPTIONS]

ACTION:
    create
    list
    show
    modify
    delete
    help

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

Create application

Usage: oredge app create [OPTIONS]

OPTIONS:
    --type string                      application type, http(default) or sni-proxy or tcp.
    --domain string                    domain, can add multiple times.
    --partition integer                partition id, can add multiple times.
    --is-default bool                  is default application.
    --http-port integer                http port, can add multiple times.
    --https-port integer               https port, can add multiple times.
    --tcp-port integer                 tcp port, can add multiple times.
    --http2-status string              http2 status, global(default) or enable or disable.
    --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

Create a HTTP application

# oredge app create --domain www.test.com --partition 1
ID: 1

Create a sni-proxy application

# oredge app create --domain www.test.com --partition 1 --type sni-proxy
ID: 1

Create a HTTP application with label and disable http2 option

# oredge app create --domain www.test.com --partition 1 --label "for test" --http2-status disable
ID: 1

List applications

Usage: oredge app list [OPTIONS]

OPTIONS:
    --type string                      http(default) or stream.
    --page integer                     1(default).
    --page-size integer                20(default).

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

Example

List HTTP applications

# oredge app list
ID    TYPE    DOMAINS         PARTITIONS    LABEL    MODIFY TIME            CREATE TIME
21    http    www.test.com    1                      2021-05-20 03:40:48    2021-05-20 03:40:48
20    http    test.com        1                      2021-05-18 22:20:07    2021-05-18 22:20:07

List stream applications

# oredge app list --type stream
ID    TYPE    DOMAINS         PARTITIONS    LABEL    MODIFY TIME            CREATE TIME
1     tls     www.test.com    1                      2021-05-20 03:43:31    2021-05-20 03:43:31

Add pagination parameters

# bin/oredge app list --page-size 10 --page 1
ID    TYPE    DOMAINS         PARTITIONS    LABEL       MODIFY TIME            CREATE TIME
23    http    ttt.com         1             a           2021-05-20 05:22:44    2021-05-20 05:22:44
22    http    www.test.com    1             for test    2021-05-20 05:05:39    2021-05-20 05:05:39
20    http    test.com        1                         2021-05-18 22:20:07    2021-05-18 22:20:07

Get application detail

Usage: oredge app show [id] [OPTIONS]

OPTIONS:
    --type string                      http(default) or sni-proxy or tcp.
    --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 app show 21
ID         : 21
PARTITIONS : 1
DOMAINS    : www.test.com
CREATOR    : 1
CREATE TIME: 2021-05-20 03:40:48
MODIFY TIME: 2021-05-20 03:40:48
HTTPS PORTS: 443
HTTP PORTS : 80

Modify application

Usage: oredge app modify [id] [OPTIONS]

OPTIONS:
    --id integer                       application id.
    --type string                      application type, http(default) or sni-proxy or tcp.
    --domain string                    domain, can add multiple times.
    --partition integer                partition id, can add multiple times.
    --is-default bool                  is default application, false(default) or true.
    --http-port integer                http port, can add multiple times.
    --https-port integer               https port, can add multiple times.
    --tcp-port integer                 tcp port, can add multiple times.
    --http2-status string              http2 status, global(default) or enable or disable.
    --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 app modify 21 --domain www.test.com --name "for test"
OK

Delete application

Usage: oredge app delete [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --type string                      http(default) or sni-proxy or tcp.

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

Example

Delete application

# oredge app delete 21
OK

Delete a sni-proxy application

# oredge app delete 1 --type sni-proxy
OK

Use --id to specify application id

# oredge app delete --id 21
OK