Skip to content

Commit f209232

Browse files
support log downloads and tailing through CLI (#37)
1 parent 6a72b1c commit f209232

16 files changed

+3281
-2193
lines changed

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,18 @@ $ aio config:set cloudmanager_programid 4
8686
* [`aio cloudmanager`](#aio-cloudmanager)
8787
* [`aio cloudmanager:advance-current-execution PIPELINEID`](#aio-cloudmanageradvance-current-execution-pipelineid)
8888
* [`aio cloudmanager:cancel-current-execution PIPELINEID`](#aio-cloudmanagercancel-current-execution-pipelineid)
89+
* [`aio cloudmanager:download-logs ENVIRONMENTID SERVICE NAME [DAYS]`](#aio-cloudmanagerdownload-logs-environmentid-service-name-days)
8990
* [`aio cloudmanager:get-current-execution PIPELINEID`](#aio-cloudmanagerget-current-execution-pipelineid)
9091
* [`aio cloudmanager:get-execution-step-details PIPELINEID EXECUTIONID`](#aio-cloudmanagerget-execution-step-details-pipelineid-executionid)
9192
* [`aio cloudmanager:get-execution-step-log PIPELINEID EXECUTIONID ACTION`](#aio-cloudmanagerget-execution-step-log-pipelineid-executionid-action)
9293
* [`aio cloudmanager:get-quality-gate-results PIPELINEID EXECUTIONID ACTION`](#aio-cloudmanagerget-quality-gate-results-pipelineid-executionid-action)
94+
* [`aio cloudmanager:list-available-log-options ENVIRONMENTID`](#aio-cloudmanagerlist-available-log-options-environmentid)
9395
* [`aio cloudmanager:list-current-executions`](#aio-cloudmanagerlist-current-executions)
9496
* [`aio cloudmanager:list-environments`](#aio-cloudmanagerlist-environments)
9597
* [`aio cloudmanager:list-pipelines`](#aio-cloudmanagerlist-pipelines)
9698
* [`aio cloudmanager:list-programs`](#aio-cloudmanagerlist-programs)
9799
* [`aio cloudmanager:start-execution PIPELINEID`](#aio-cloudmanagerstart-execution-pipelineid)
100+
* [`aio cloudmanager:tail-logs ENVIRONMENTID SERVICE NAME`](#aio-cloudmanagertail-logs-environmentid-service-name)
98101

99102
## `aio cloudmanager`
100103

@@ -164,6 +167,31 @@ OPTIONS
164167

165168
_See code: [src/commands/cloudmanager/cancel-current-execution.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/cancel-current-execution.js)_
166169

170+
## `aio cloudmanager:download-logs ENVIRONMENTID SERVICE NAME [DAYS]`
171+
172+
lists available logs for an environment in a Cloud Manager program
173+
174+
```
175+
USAGE
176+
$ aio cloudmanager:download-logs ENVIRONMENTID SERVICE NAME [DAYS]
177+
178+
ARGUMENTS
179+
ENVIRONMENTID the environment id
180+
SERVICE the service
181+
NAME the log name
182+
DAYS [default: 1] the number of days
183+
184+
OPTIONS
185+
-o, --outputDirectory=outputDirectory the output directory. If not set, defaults to the current directory.
186+
187+
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config
188+
value
189+
190+
-r, --passphrase=passphrase the passphrase for the private-key
191+
```
192+
193+
_See code: [src/commands/cloudmanager/download-logs.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/download-logs.js)_
194+
167195
## `aio cloudmanager:get-current-execution PIPELINEID`
168196

169197
get pipeline execution
@@ -242,6 +270,24 @@ OPTIONS
242270

243271
_See code: [src/commands/cloudmanager/get-quality-gate-results.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/get-quality-gate-results.js)_
244272

273+
## `aio cloudmanager:list-available-log-options ENVIRONMENTID`
274+
275+
lists available log options for an environment in a Cloud Manager program
276+
277+
```
278+
USAGE
279+
$ aio cloudmanager:list-available-log-options ENVIRONMENTID
280+
281+
ARGUMENTS
282+
ENVIRONMENTID the environment id
283+
284+
OPTIONS
285+
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
286+
-r, --passphrase=passphrase the passphrase for the private-key
287+
```
288+
289+
_See code: [src/commands/cloudmanager/list-available-log-options.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/list-available-log-options.js)_
290+
245291
## `aio cloudmanager:list-current-executions`
246292

247293
list running pipeline executions
@@ -319,6 +365,26 @@ OPTIONS
319365
```
320366

321367
_See code: [src/commands/cloudmanager/start-execution.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/start-execution.js)_
368+
369+
## `aio cloudmanager:tail-logs ENVIRONMENTID SERVICE NAME`
370+
371+
lists available logs for an environment in a Cloud Manager program
372+
373+
```
374+
USAGE
375+
$ aio cloudmanager:tail-logs ENVIRONMENTID SERVICE NAME
376+
377+
ARGUMENTS
378+
ENVIRONMENTID the environment id
379+
SERVICE the service
380+
NAME the log name
381+
382+
OPTIONS
383+
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
384+
-r, --passphrase=passphrase the passphrase for the private-key
385+
```
386+
387+
_See code: [src/commands/cloudmanager/tail-logs.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.1.6/src/commands/cloudmanager/tail-logs.js)_
322388
<!-- commandsstop -->
323389

324390
# Development

0 commit comments

Comments
 (0)