txlog

Usage: oredge txlog ACTION [OPTIONS]

ACTION:
    release
    list
    modify
    rollback
    help

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

Release Txlog

Usage: oredge txlog release [http] [OPTIONS]

OPTIONS:
    --http integer                     http application id.
    --comment string                   comment.
    --gray bool                        true or false.

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

Example

# oredge txlog release 3
OK

List Txlog

Usage: oredge txlog list [http] [OPTIONS]

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

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

Example

  1. list txlog.
# oredge txlog list 1
ID      USERNAME      APP TYPE    TYPE       IS GRAY    CREATE TIME            MODIFY TIME
1-1     edge-admin    1           release    false      1969-12-31 19:33:41    2021-05-28 00:12:08

Modify Txlog

Usage: oredge txlog modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --comment string                   comment.

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

Example

# oredge txlog modify 3-5 --comment "test"
OK

Txlog Rollback

Usage: oredge txlog rollback [id] [OPTIONS]

OPTIONS:
    --id integer                       rollback id.

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

Example

# oredge txlog rollback 3-4
OK