cylera-cli 1.1.2__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cylera_cli-1.1.2/cylera_cli.egg-info → cylera_cli-1.2.1}/PKG-INFO +4 -11
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/README.md +2 -9
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera.py +28 -2
- {cylera_cli-1.1.2 → cylera_cli-1.2.1/cylera_cli.egg-info}/PKG-INFO +4 -11
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera_cli.egg-info/requires.txt +1 -1
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/pyproject.toml +2 -2
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/LICENSE +0 -0
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera_cli.egg-info/SOURCES.txt +0 -0
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera_cli.egg-info/dependency_links.txt +0 -0
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera_cli.egg-info/entry_points.txt +0 -0
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/cylera_cli.egg-info/top_level.txt +0 -0
- {cylera_cli-1.1.2 → cylera_cli-1.2.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cylera-cli
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: Command-line interface for the Cylera Partner API
|
|
5
5
|
Author-email: Cylera <support@cylera.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -22,7 +22,7 @@ Classifier: Topic :: System :: Systems Administration
|
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: cylera-client>=1.
|
|
25
|
+
Requires-Dist: cylera-client>=1.2.0
|
|
26
26
|
Requires-Dist: python-dotenv>=1.2.1
|
|
27
27
|
Requires-Dist: requests>=2.32.5
|
|
28
28
|
Requires-Dist: typer>=0.21.1
|
|
@@ -249,16 +249,9 @@ The CLI supports these Cylera Partner API regions:
|
|
|
249
249
|
- UK: `https://partner.uk1.cylera.com/`
|
|
250
250
|
- Demo: `https://partner.demo.cylera.com/`
|
|
251
251
|
|
|
252
|
-
## Claude Code
|
|
252
|
+
## Claude Code Skill
|
|
253
253
|
|
|
254
|
-
This repo includes Claude Code skills
|
|
255
|
-
|
|
256
|
-
| Skill | Description |
|
|
257
|
-
|-------|-------------|
|
|
258
|
-
| `/cylera-attributes` | Find devices by attribute label (e.g. TeamViewer, end of life) |
|
|
259
|
-
| `/cylera-vulnerabilities` | Export vulnerabilities filtered by severity and/or status |
|
|
260
|
-
| `/cylera-threats` | Export threats filtered by severity and/or status |
|
|
261
|
-
| `/cylera-devices` | Export device inventory filtered by class, vendor, type, or OS |
|
|
254
|
+
This repo includes Claude Code skills that drive the CLI for you enabling you to query things in natural language.
|
|
262
255
|
|
|
263
256
|
See [CODING_AGENT_SKILLS.md](CODING_AGENT_SKILLS.md) for full installation instructions and usage examples.
|
|
264
257
|
|
|
@@ -219,16 +219,9 @@ The CLI supports these Cylera Partner API regions:
|
|
|
219
219
|
- UK: `https://partner.uk1.cylera.com/`
|
|
220
220
|
- Demo: `https://partner.demo.cylera.com/`
|
|
221
221
|
|
|
222
|
-
## Claude Code
|
|
222
|
+
## Claude Code Skill
|
|
223
223
|
|
|
224
|
-
This repo includes Claude Code skills
|
|
225
|
-
|
|
226
|
-
| Skill | Description |
|
|
227
|
-
|-------|-------------|
|
|
228
|
-
| `/cylera-attributes` | Find devices by attribute label (e.g. TeamViewer, end of life) |
|
|
229
|
-
| `/cylera-vulnerabilities` | Export vulnerabilities filtered by severity and/or status |
|
|
230
|
-
| `/cylera-threats` | Export threats filtered by severity and/or status |
|
|
231
|
-
| `/cylera-devices` | Export device inventory filtered by class, vendor, type, or OS |
|
|
224
|
+
This repo includes Claude Code skills that drive the CLI for you enabling you to query things in natural language.
|
|
232
225
|
|
|
233
226
|
See [CODING_AGENT_SKILLS.md](CODING_AGENT_SKILLS.md) for full installation instructions and usage examples.
|
|
234
227
|
|
|
@@ -12,6 +12,7 @@ import getpass
|
|
|
12
12
|
import json
|
|
13
13
|
import os
|
|
14
14
|
import sys
|
|
15
|
+
import time
|
|
15
16
|
from pathlib import Path
|
|
16
17
|
from typing import Annotated, Any, Optional
|
|
17
18
|
|
|
@@ -260,8 +261,28 @@ def switchorg(
|
|
|
260
261
|
require_config()
|
|
261
262
|
try:
|
|
262
263
|
with get_client() as client:
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
org_api = Organization(client)
|
|
265
|
+
result = org_api.switch_organization(organization_id)
|
|
266
|
+
print_json(result)
|
|
267
|
+
|
|
268
|
+
for attempt in range(2):
|
|
269
|
+
print("Waiting for switch to take effect...", file=sys.stderr)
|
|
270
|
+
time.sleep(5)
|
|
271
|
+
current = org_api.get_organization()
|
|
272
|
+
if str(current.get("id", "")) == str(organization_id):
|
|
273
|
+
print(
|
|
274
|
+
f"Confirmed: now in org {current.get('name', organization_id)!r}",
|
|
275
|
+
file=sys.stderr,
|
|
276
|
+
)
|
|
277
|
+
return
|
|
278
|
+
if attempt == 0:
|
|
279
|
+
print("Not yet active, retrying...", file=sys.stderr)
|
|
280
|
+
|
|
281
|
+
print(
|
|
282
|
+
f"Warning: switch may still be pending. "
|
|
283
|
+
f"Current org: {current.get('name', 'unknown')!r}",
|
|
284
|
+
file=sys.stderr,
|
|
285
|
+
)
|
|
265
286
|
except CyleraAPIError as e:
|
|
266
287
|
print(f"API error: {e}", file=sys.stderr)
|
|
267
288
|
raise typer.Exit(1)
|
|
@@ -494,6 +515,10 @@ def vulnerabilities(
|
|
|
494
515
|
page_size: PageSizeOption = None,
|
|
495
516
|
severity: SeverityOption = None,
|
|
496
517
|
status: StatusOption = None,
|
|
518
|
+
exclude_suppressed_devices: Annotated[
|
|
519
|
+
Optional[bool],
|
|
520
|
+
typer.Option(help="Exclude vulnerability instances for suppressed devices"),
|
|
521
|
+
] = None,
|
|
497
522
|
) -> None:
|
|
498
523
|
"""Get a list of vulnerabilities."""
|
|
499
524
|
require_config()
|
|
@@ -508,6 +533,7 @@ def vulnerabilities(
|
|
|
508
533
|
page_size=page_size,
|
|
509
534
|
severity=severity,
|
|
510
535
|
status=status,
|
|
536
|
+
exclude_suppressed_devices=exclude_suppressed_devices,
|
|
511
537
|
)
|
|
512
538
|
print_json(result)
|
|
513
539
|
except CyleraAPIError as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cylera-cli
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: Command-line interface for the Cylera Partner API
|
|
5
5
|
Author-email: Cylera <support@cylera.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -22,7 +22,7 @@ Classifier: Topic :: System :: Systems Administration
|
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: cylera-client>=1.
|
|
25
|
+
Requires-Dist: cylera-client>=1.2.0
|
|
26
26
|
Requires-Dist: python-dotenv>=1.2.1
|
|
27
27
|
Requires-Dist: requests>=2.32.5
|
|
28
28
|
Requires-Dist: typer>=0.21.1
|
|
@@ -249,16 +249,9 @@ The CLI supports these Cylera Partner API regions:
|
|
|
249
249
|
- UK: `https://partner.uk1.cylera.com/`
|
|
250
250
|
- Demo: `https://partner.demo.cylera.com/`
|
|
251
251
|
|
|
252
|
-
## Claude Code
|
|
252
|
+
## Claude Code Skill
|
|
253
253
|
|
|
254
|
-
This repo includes Claude Code skills
|
|
255
|
-
|
|
256
|
-
| Skill | Description |
|
|
257
|
-
|-------|-------------|
|
|
258
|
-
| `/cylera-attributes` | Find devices by attribute label (e.g. TeamViewer, end of life) |
|
|
259
|
-
| `/cylera-vulnerabilities` | Export vulnerabilities filtered by severity and/or status |
|
|
260
|
-
| `/cylera-threats` | Export threats filtered by severity and/or status |
|
|
261
|
-
| `/cylera-devices` | Export device inventory filtered by class, vendor, type, or OS |
|
|
254
|
+
This repo includes Claude Code skills that drive the CLI for you enabling you to query things in natural language.
|
|
262
255
|
|
|
263
256
|
See [CODING_AGENT_SKILLS.md](CODING_AGENT_SKILLS.md) for full installation instructions and usage examples.
|
|
264
257
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cylera-cli"
|
|
3
|
-
version = "1.1
|
|
3
|
+
version = "1.2.1"
|
|
4
4
|
description = "Command-line interface for the Cylera Partner API"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -23,7 +23,7 @@ classifiers = [
|
|
|
23
23
|
]
|
|
24
24
|
requires-python = ">=3.10"
|
|
25
25
|
dependencies = [
|
|
26
|
-
"cylera-client>=1.
|
|
26
|
+
"cylera-client>=1.2.0",
|
|
27
27
|
"python-dotenv>=1.2.1",
|
|
28
28
|
"requests>=2.32.5",
|
|
29
29
|
"typer>=0.21.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|