You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `id` isn't provided, it picks up the `snap-in package id` from the [snap-in context](#snap-in-context).
96
101
97
-
### List the snap-in package
98
-
99
-
To list the snap-in package, run the following command:
102
+
</Accordion>
103
+
104
+
<Accordiontitle="List the snap-in package">
105
+
To list the snap-in package, run the following command:
100
106
101
107
```bash
102
108
devrev snap_in_package list
@@ -107,55 +113,56 @@ For example:
107
113
```bash
108
114
devrev snap_in_package list | jq .
109
115
```
116
+
</Accordion>
117
+
<Accordiontitle="Logs for the snap-in package">
118
+
To view the snap-in package logs, run the following command:
110
119
111
-
### Logs for the snap-in package
120
+
```bash
121
+
devrev snap_in_package logs
122
+
```
112
123
113
-
To view the snap-in package logs, run the following command:
124
+
For example:
114
125
115
-
```bash
116
-
devrev snap_in_package logs
117
-
```
126
+
```bash
127
+
devrev snap_in_package logs| jq .
128
+
```
118
129
119
-
For example:
130
+
**Additional flags**:
120
131
121
-
```bash
122
-
devrev snap_in_package logs | jq .
123
-
```
124
-
125
-
**Additional flags**:
126
-
127
-
-`--after` string timestamp after which to fetch logs. For example, 2023-01-15T10:24:17Z. Defaults to 15 minutes earlier.
128
-
-`--before` string timestamp before which to fetch logs. For example, 2023-02-15T10:24:17Z. Defaults to now.
129
-
-`--filters` string Filters for the log message as a JSON. For example, `{"level": {"values": ["info"]}, "dev_org": {"exclude": true, "values": ["don:identity:<partition>:devo/<dev-org-id>"]} }`
130
-
-`--limit` uint32 Number of logs to fetch.
132
+
-`--after` string timestamp after which to fetch logs. For example, 2023-01-15T10:24:17Z. Defaults to 15 minutes earlier.
133
+
-`--before` string timestamp before which to fetch logs. For example, 2023-02-15T10:24:17Z. Defaults to now.
134
+
-`--filters` string Filters for the log message as a JSON. For example, `{"level": {"values": ["info"]}, "dev_org": {"exclude": true, "values": ["don:identity:<partition>:devo/<dev-org-id>"]} }`
135
+
-`--limit` uint32 Number of logs to fetch.
136
+
</Accordion>
137
+
</AccordionGroup>
131
138
132
139
## Snap-in version
133
140
134
-
### Create a snap-in version
135
-
136
-
To create a snap-in version, run the following command:
137
-
138
-
```bash
139
-
devrev snap_in_version create-one --path <path to the snap-in code>
140
-
```
141
+
<AccordionGroup>
142
+
<Accordiontitle="Create a snap-in version">
143
+
To create a snap-in version, run the following command:
141
144
142
-
For example:
145
+
```bash
146
+
devrev snap_in_version create-one --path <path to the snap-in code>
147
+
```
143
148
144
-
```bash
145
-
devrev snap_in_version create-one --path ./code
146
-
```
149
+
For example:
147
150
148
-
Once the snap_in_version is created, its ID is stored in the snap-in context too.
151
+
```bash
152
+
devrev snap_in_version create-one --path ./code
153
+
```
149
154
150
-
**Additional flags**:
151
-
-`--package <id>` : Optional. If not provided, it uses the id from the [snap-in context](#snap-in-context).
152
-
-`--manifest <path>`: specify the path to the manifest.yaml file using this flag.
153
-
-`--archive <path>` : specify the path to the archive file (build.tar.gz) using this flag.
154
-
-`--create-package`: creates a new snap_in_package in interactive mode and then creates a snap-in version using the newly created snap-in package id.
155
+
Once the snap_in_version is created, its ID is stored in the snap-in context too.
155
156
156
-
### Show the snap-in version
157
+
**Additional flags**:
158
+
- `--package <id>` : Optional. If not provided, it uses the id from the [snap-in context](#snap-in-context).
159
+
- `--manifest <path>`: specify the path to the manifest.yaml file using this flag.
160
+
- `--archive <path>` : specify the path to the archive file (build.tar.gz) using this flag.
161
+
- `--create-package`: creates a new snap_in_package in interactive mode and then creates a snap-in version using the newly created snap-in package id.
162
+
</Accordion>
157
163
158
-
To show the snap-in version, run the following command:
164
+
<Accordiontitle="Show the snap-in version">
165
+
To show the snap-in version, run the following command:
159
166
160
167
```bash
161
168
devrev snap_in_version show [id]
@@ -168,10 +175,10 @@ devrev snap_in_version show | jq .
168
175
```
169
176
170
177
`[id]` is optional. If not provided, it uses the snap_in_version id stored in the [snap-in context](#snap-in-context).
171
-
172
-
### Delete the snap-in version
173
-
174
-
To delete a snap-in version, run the following command:
178
+
</Accordion>
179
+
180
+
<Accordiontitle="Delete the snap-in version">
181
+
To delete a snap-in version, run the following command:
`[id]` is optional. If not provided, it uses the ID stored in the local profile.
267
275
268
276
`--force` flag deactivates the snap-in even if the `deactivate` hook fails. If the flag isn't specified, then the snap-in moves to the _Error_ state if the `deactivate` hook fails.
269
-
270
-
### Show the snap-in details
271
-
272
-
To show the snap-in details, run the following command:
277
+
</Accordion>
278
+
<Accordiontitle="Show the snap-in details">
279
+
To show the snap-in details, run the following command:
273
280
274
281
```bash
275
282
devrev snap_in show [id]
276
283
```
277
284
278
285
`[id]` is optional. If not provided, it uses the ID stored in the local profile.
`[id]` is optional. If not provided, it uses the id stored in the [snap-in context](#snap-in-context).
303
308
304
309
The `--force` flag deletes the snap-in even if the `deactivate` hook fails. If the flag isn't specified, then the snap-in moves to the _Error_ state if the `deactivate` hook fails.
310
+
</Accordion>
311
+
</AccordionGroup>
305
312
306
313
## Snap-in context
307
314
@@ -311,9 +318,9 @@ The CLI persists in the context of the CLI in a [snap-in context](#snap-in-conte
311
318
2. The ID of the last created/upgraded snap-in version, if any.
312
319
3. The ID of the latest deployed snap-in, if any.
313
320
314
-
### Show the snap-in context
315
-
316
-
To show the current snap-in context, run the following command:
321
+
<AccordionGroup>
322
+
<Accordiontitle="Show the snap-in context">
323
+
To show the current snap-in context, run the following command:
0 commit comments