Skip to content

Commit a943699

Browse files
author
Adrian Polanczyk
authored
CYBL-1965 - Documentation for cfy log-bundles command (#2543)
1 parent 60dc223 commit a943699

1 file changed

Lines changed: 132 additions & 0 deletions

File tree

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
---
2+
title: log-bundles
3+
category: Docs
4+
draft: false
5+
abstract: Cloudify's Command-Line Interface
6+
aliases: /cli/log-bundles/
7+
---
8+
9+
The `cfy log-bundles` command is used to handle manager log bundles.
10+
11+
You can use the command to create, download, delete and list log-bundles.
12+
13+
#### Optional flags
14+
These commands support the [common CLI flags]({{< relref "cli/_index.md#common-options" >}}).
15+
16+
## Commands
17+
18+
### create
19+
20+
#### Usage
21+
`cfy log-bundles create [OPTIONS] [LOG_BUNDLE_ID]`
22+
23+
Create a log bundle on the manager.
24+
25+
The log bundle will contain all cloudify logs it was able to retrieve from
26+
all managers, brokers, and database nodes it was able to reach.
27+
28+
`LOG_BUNDLE_ID` is the id to attach to the log bundle. Not required. If not provided, will be generated automatically.
29+
30+
#### Optional flags
31+
32+
* `--queue` - If set, log-bundle-creation-workflows that can`t currently run will be queued and run automatically when possible.
33+
34+
&nbsp;
35+
#### Example
36+
37+
{{< highlight bash >}}
38+
$ cfy log-bundles create test
39+
...
40+
41+
Creating log_bundle test...
42+
Started workflow execution. The execution's id is f284c5cf-00b6-4d58-91a4-fd1975931ecb.
43+
44+
...
45+
{{< /highlight >}}
46+
47+
### delete
48+
49+
#### Usage
50+
`cfy log-bundles delete [OPTIONS] LOG_BUNDLE_ID`
51+
52+
Delete a log_bundle from the manager.
53+
54+
`LOG_BUNDLE_ID` is the id of the log bundle to delete.
55+
56+
&nbsp;
57+
#### Example
58+
59+
{{< highlight bash >}}
60+
$ cfy log-bundles delete test
61+
...
62+
63+
Deleting log_bundle test...
64+
Log bundle deleted successfully
65+
66+
...
67+
{{< /highlight >}}
68+
69+
### download
70+
71+
#### Usage
72+
`cfy log-bundles download [OPTIONS] LOG_BUNDLE_ID`
73+
74+
Download a log bundle from the manager.
75+
76+
`LOG_BUNDLE_ID` is the id of the log bundle to download.
77+
78+
#### Optional flags
79+
80+
* `-o, --output-path TEXT` - The local path to download to.
81+
82+
&nbsp;
83+
#### Example
84+
85+
{{< highlight bash >}}
86+
$ cfy log-bundles download test
87+
...
88+
89+
Downloading log_bundle test...
90+
test |################################################################| 100.0%
91+
Log bundle downloaded as test.zip
92+
93+
...
94+
{{< /highlight >}}
95+
96+
### list
97+
98+
#### Usage
99+
`cfy log-bundles list [OPTIONS]`
100+
101+
List all log bundles on the manager.
102+
You can use this command to retrieve the IDs of the log-bundles you want to download or delete.
103+
104+
#### Optional flags
105+
106+
* `--sort-by TEXT` - Key for sorting the list.
107+
* `--descending` - Sort list in descending order. [default: False]
108+
* `--search TEXT` - Search resources by id. The returned list will include only resources that contain the given search pattern.
109+
* `-o, --pagination-offset INTEGER` - The number of resources to skip; --pagination-offset=1 skips the first resource. [default: 0]
110+
* `-s, --pagination-size INTEGER` - The max number of results to retrieve per page. [default: 1000]
111+
* `-x, --extended-view` - Display results in a vertical table format.
112+
113+
&nbsp;
114+
#### Example
115+
116+
{{< highlight bash >}}
117+
$ cfy log-bundles list
118+
...
119+
120+
Listing log_bundles...
121+
122+
Log bundles:
123+
+------+--------------------------+---------+-------+------------+----------------+------------+
124+
| id | created_at | status | error | visibility | tenant_name | created_by |
125+
+------+--------------------------+---------+-------+------------+----------------+------------+
126+
| test | 2023-04-28 08:19:18.148 | created | | private | default_tenant | admin |
127+
+------+--------------------------+---------+-------+------------+----------------+------------+
128+
129+
Showing 1 of 1 log_bundles
130+
131+
...
132+
{{< /highlight >}}

0 commit comments

Comments
 (0)