CLI Reference
On this page
The Launch Kit binary is invoked as l8k and exposes a set of subcommands. l8k --help and l8k <subcommand> --help print labelled flag groups identical to the sections below.
Global Flags
Available on all subcommands:
Flag |
Description |
|---|---|
|
Output format: |
|
Auto-confirm all prompts. Implied by |
|
Suppress informational output. |
|
Log level: |
|
Write logs to file instead of stderr. |
|
Show help. |
l8k discover
Probes cluster hardware and writes a cluster-config.yaml.
Flag |
Description |
|---|---|
|
Path to kubeconfig file (falls back to |
|
Base config to merge with discovered hardware. If |
|
Output path for the discovered cluster configuration. Defaults to |
|
Override the Network Operator namespace (default: |
|
Pin discovery to a Network Operator release line. Supported: |
|
Filter nodes for discovery by label. Default: |
|
Image pull secret names for NicClusterPolicy (comma-separated). |
|
Comma-separated list of plugins to enable (default: |
l8k generate
Renders Kubernetes manifests from a cluster configuration and a profile selection. Optionally deploys them.
Profile Selection
Flag |
Description |
|---|---|
|
Cluster configuration file. Auto-detected from |
|
Generate for a hardware preset without running discovery. Requires |
|
Fabric type: |
|
Deployment type: |
|
Enable multirail deployment. Auto-defaults to |
|
Enable Spectrum-X. Value is the SPC-X RA version: |
|
Multiplane mode: |
|
Number of planes: |
|
Pin to a Network Operator release line. Supported: |
|
Restrict output to the named source groups (comma-separated, matched case-sensitively against |
|
Restrict output to source groups whose |
|
Node selector for the synthesized |
Output and Deployment
Flag |
Description |
|---|---|
|
Output directory for generated YAML files (default: |
|
Apply generated manifests to the cluster. |
|
Preview deployment without applying (requires |
|
Path to kubeconfig (required with |
Customization
Flag |
Description |
|---|---|
|
Enable DOCA driver deployment. |
|
Path to a custom workload manifest. Launch Kit patches network annotations, resource requests, and node affinity. See Generate Workflow. |
|
Image pull secret names for NicClusterPolicy (comma-separated). Propagates to per-group NicNodePolicy sub-specs. |
|
Override the Network Operator namespace. |
|
Namespace for pods and network resources. |
|
Comma-separated list of plugins to enable (default: |
l8k deploy
Applies previously generated manifests to the cluster in dependency order (NicClusterPolicy first, then per-group NicNodePolicy, then networks and workloads).
Flag |
Description |
|---|---|
|
Path to kubeconfig (falls back to |
|
Directory containing the manifests to apply (default: |
|
Preview what would be applied without changing the cluster. |
l8k validate
Verifies a deployment matches the selected Network Operator release: compares the deployed Helm chart’s appVersion with the version expected by networkOperator.selectedRelease in cluster-config.yaml, then confirms every YAML manifest under --deployment-files is present in the cluster (skipping example workloads). Exits 4 on any missing manifest or version mismatch. See Validate Workflow for full details.
Flag |
Description |
|---|---|
|
Path to kubeconfig (falls back to |
|
Cluster config file (default: |
|
Directory containing the manifests to verify (default: |
l8k preset list
Lists locally available cluster topology presets.
l8k preset list
l8k preset update
Downloads the latest presets from a Git repository.
Flag |
Description |
|---|---|
|
Git repository URL. |
|
Branch or tag to fetch from (default: |
|
Subdirectory within the repo containing presets. |
See Cluster Topology Presets for usage.
l8k sosreport
Collects diagnostic data from the cluster.
Flag |
Description |
|---|---|
|
Path to kubeconfig (falls back to |
|
Directory to save the sosreport (default: |
See Troubleshooting for analysis guidance.
l8k schema
Outputs a JSON description of l8k’s capabilities — supported commands, fabrics, deployment types, exit codes, and output formats. Used by AI agents and automation tooling to discover l8k capabilities programmatically. See Automation and CI/CD.
l8k schema
l8k version
Prints the version. Supports --output json for structured output.
Exit Codes
Code |
Meaning |
|---|---|
0 |
Success. |
1 |
General error. |
2 |
Validation error (invalid flags or configuration). |
3 |
Cluster error (API unreachable, discovery failed). |
4 |
Deployment error (apply failed). |
5 |
Partial success (discovery completed but deployment failed). |
See Also
Configuration Reference —
l8k-config.yamlschemaAutomation and CI/CD — JSON output and exit-code-driven retries
Overview — the meaning behind the flags