partition

Usage: oredge partition 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 Partition

Usage: oredge partition create [name] [OPTIONS]

OPTIONS:
    --name string                      name.

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

Example

# oredge partition create test
ID: 1

List Partition

Usage: oredge partition 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 partition list
ID    NAME       CREATE TIME            MODIFY TIME
1     default    2021-05-31 02:25:11    2021-05-31 02:25:11
2     test       2021-05-31 02:25:11    2021-05-31 02:25:11
4     ttt        2021-05-31 02:25:11    2021-05-31 02:25:11

Show Partition

Usage: oredge partition 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 partition show 1
ID         : 1
NAME       : default
CREATE TIME: 2021-05-31 02:28:48
MODIFY TIME: 2021-05-31 02:28:48

Modify partition

Usage: oredge partition modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --name string                      name.

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

Example

# oredge partition modify 1 --name test
OK

Delete Partition

Usage: oredge partition 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 partition delete 21
OK