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
Copy file name to clipboardExpand all lines: README.md
+71Lines changed: 71 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,77 @@ For CDI to work the following needs to be done:
61
61
- The container runtime should be able to find the CDI file by the device name
62
62
and update the container config using CDI file content.
63
63
64
+
## How to build and install CDI CLI?
65
+
66
+
### What is the CDI CLI?
67
+
68
+
The `cdi` command-line tool is a utility for inspecting and interacting with the CDI (Container Device Interface) cache.
69
+
It allows developers and system administrators to:
70
+
71
+
-**List CDI Spec files**: View all available CDI specification files in the configured directories
72
+
-**List vendors**: Display registered device vendors in the CDI cache
73
+
-**List device classes**: Show available device classes from CDI Specs
74
+
-**List devices**: Enumerate all CDI devices available in the system
75
+
-**Validate specs**: Verify CDI specification files against the JSON schema
76
+
-**Inject devices**: Inject CDI device configurations into OCI runtime specifications
77
+
-**Monitor cache**: Watch for changes in the CDI cache and Spec directories
78
+
-**Resolve devices**: Resolve fully-qualified device names to their configurations
79
+
80
+
The CLI tool is particularly useful for debugging CDI configurations, validating spec files, and testing device assignments before deploying them in production environments.
0 commit comments