longhornctl.md
July 16, 2026 ยท View on GitHub
longhornctl
Command-line interface for Longhorn.
Synopsis
A CLI tool for troubleshooting and managing Longhorn operations.
Options
-h, --help help for longhornctl
--image string Image containing longhornctl-local (default "longhornio/longhorn-cli:v1.13.0-dev")
--image-pull-secret string Secret with registry credentials for pulling images
--image-registry string Registry to apply to all images (CLI, engine, pause, BCI, etc.), replacing any registry already specified in those images.
--kubeconfig string Kubernetes config (kubeconfig) path
-l, --log-level string log level (trace, debug, info, warn, error, fatal, panic) (default "info")
--namespace string The namespace to run DaemonSet pods. (default "longhorn-system")
--node-selector string Comma-separated list of key=value pairs to match against node labels, selecting the nodes the DaemonSet will run on (e.g. env=prod,zone=us-west).
--tolerations string Semicolon-separated list of tolerations for DaemonSet pods (e.g. key=value:NoSchedule;:NoExecute).
SEE ALSO
- longhornctl check - Longhorn checking operations
- longhornctl checksum - Snapshot checksum operations
- longhornctl doc - Generate markdown documentation for the CLI
- longhornctl export - Export Longhorn resources
- longhornctl get - Longhorn information gathering operations
- longhornctl global-options - Display global options inherited by all subcommands
- longhornctl install - Longhorn installation operations
- longhornctl trim - Longhorn trimming operations
- longhornctl version - Print longhornctl version