diff --git a/chain-api/package.json b/chain-api/package.json index 9013ac3215..43cf9cf4a1 100644 --- a/chain-api/package.json +++ b/chain-api/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/api", - "version": "1.5.7", + "version": "1.5.8", "description": "Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.", "license": "Apache-2.0", "dependencies": { diff --git a/chain-cli/README.md b/chain-cli/README.md index b328ee6617..0f004bd472 100644 --- a/chain-cli/README.md +++ b/chain-cli/README.md @@ -20,7 +20,7 @@ $ npm install -g @gala-chain/cli $ galachain COMMAND running command... $ galachain (--version) -@gala-chain/cli/1.5.7 linux-x64 node-v18.20.4 +@gala-chain/cli/1.5.8 linux-x64 node-v18.20.4 $ galachain --help [COMMAND] USAGE $ galachain COMMAND @@ -40,6 +40,7 @@ USAGE * [`galachain info [DEVELOPERPRIVATEKEY]`](#galachain-info-developerprivatekey) * [`galachain init PATH`](#galachain-init-path) * [`galachain keygen FILE`](#galachain-keygen-file) +* [`galachain logs`](#galachain-logs) * [`galachain network-prune`](#galachain-network-prune) * [`galachain network-up`](#galachain-network-up) * [`galachain network:prune`](#galachain-networkprune) @@ -331,6 +332,31 @@ EXAMPLES $ galachain keygen data/user1 ``` +## `galachain logs` + +``` +USAGE + $ galachain logs [--json] [--log-level debug|info|warn|error] [-k ] [-s ] [-e ] [-l + ] [-f ] [--follow] + +FLAGS + -e, --endTime= [default: now] End time for logs. Accepts ISO8601 format or shorthand (e.g., now, + 0). + -f, --filter= Filter for logs (e.g., error, info, warn, debug). + -k, --developerPrivateKey= Private key to sign the data. It can be a file path or a key string. If not + provided, the private key will be read from the environment variable + DEV_PRIVATE_KEY. + -l, --limit= Maximum number of log entries to fetch. + -s, --startTime= Start time for logs. Accepts ISO8601 format or shorthand (e.g., + 2023-01-01T00:00:00Z, 5m, 1h, 2d). + --follow Specify if logs should be streamed. + +GLOBAL FLAGS + --json Format output as json. + --log-level=