Skip to main content

minikube CLI reference

ModularPipelines.Minikube provides strongly typed access to the minikube CLI.

Executable prerequisite​

This package does not install the minikube executable. Install it separately and ensure minikube is available on PATH.

Follow the executable's official documentation for installation instructions.

Package installation​

dotnet add package ModularPipelines.Minikube

Resolve the service with context.Tools.Minikube. Projects using C# 13 or another .NET language can use context.Tools.Get<ModularPipelines.Minikube.Services.IMinikube>() instead.

Module example​

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var minikube = context.Tools.Minikube;

Global options​

Global options are rendered before the selected subcommand.

CLI optionPropertyAvailabilityDescription
--add_dir_headerAddDirHeaderAll editionsIf true, adds the file directory to the header of the log messages
--alsologtostderrAlsologtostderrAll editionslog to standard error as well as files (no effect when -logtostderr=true)
--alsologtostderrthresholdAlsologtostderrthresholdAll editionslogs at or above this threshold go to stderr when -alsologtostderr=true (no effect when -logtostderr=true)
--bootstrapperBootstrapperAll editionsThe name of the cluster bootstrapper that will set up the Kubernetes cluster.
--legacy_stderr_threshold_behaviorLegacyStderrThresholdBehaviorAll editionsIf true, stderrthreshold is ignored when logtostderr=true (legacy behavior). If false, stderrthreshold is honored even when logtostderr=true
--logtostderrLogtostderrAll editionslog to standard error instead of files
--log_backtrace_atLogBacktraceAtAll editionswhen logging hits line file:N, emit a stack trace
--log_dirLogDirAll editionsIf non-empty, write log files in this directory (no effect when -logtostderr=true)
--log_fileLogFileAll editionsIf non-empty, use this log file (no effect when -logtostderr=true)
--log_file_max_sizeLogFileMaxSizeAll editionsDefines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited.
--one_outputOneOutputAll editionsIf true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
--profileProfileAll editionsThe name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently.
--rootlessRootlessAll editionsForce to use rootless driver (docker and podman driver only)
--skip-auditSkipAuditAll editionsSkip recording the current command in the audit logs.
--skip_headersSkipHeadersAll editionsIf true, avoid header prefixes in the log messages
--skip_log_headersSkipLogHeadersAll editionsIf true, avoid headers when opening log files (no effect when -logtostderr=true)
--stderrthresholdStderrthresholdAll editionslogs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true unless -legacy_stderr_threshold_behavior=false)
--userUserAll editionsSpecifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
--vVAll editionsnumber for the log level verbosity
--vmoduleVmoduleAll editionscomma-separated list of pattern=N settings for file-filtered logging

Commands​

CLI commandOptions record
minikube addonsMinikubeAddonsOptions
minikube addons configureMinikubeAddonsConfigureOptions
minikube addons disableMinikubeAddonsDisableOptions
minikube addons enableMinikubeAddonsEnableOptions
minikube addons imagesMinikubeAddonsImagesOptions
minikube addons listMinikubeAddonsListOptions
minikube addons openMinikubeAddonsOpenOptions
minikube cache addMinikubeCacheAddOptions
minikube cache listMinikubeCacheListOptions
minikube configMinikubeConfigOptions
minikube config defaultsMinikubeConfigDefaultsOptions
minikube config getMinikubeConfigGetOptions
minikube config setMinikubeConfigSetOptions
minikube config unsetMinikubeConfigUnsetOptions
minikube config viewMinikubeConfigViewOptions
minikube cpMinikubeCpOptions
minikube dashboardMinikubeDashboardOptions
minikube deleteMinikubeDeleteOptions
minikube docker-envMinikubeDockerEnvOptions
minikube image buildMinikubeImageBuildOptions
minikube image loadMinikubeImageLoadOptions
minikube image lsMinikubeImageLsOptions
minikube image rmMinikubeImageRmOptions
minikube image saveMinikubeImageSaveOptions
minikube ipMinikubeIpOptions
minikube kubectlMinikubeKubectlOptions
minikube licenseMinikubeLicenseOptions
minikube logsMinikubeLogsOptions
minikube mountMinikubeMountOptions
minikube nodeMinikubeNodeOptions
minikube node addMinikubeNodeAddOptions
minikube node deleteMinikubeNodeDeleteOptions
minikube node startMinikubeNodeStartOptions
minikube node stopMinikubeNodeStopOptions
minikube pauseMinikubePauseOptions
minikube podman-envMinikubePodmanEnvOptions
minikube profileMinikubeProfileOptions
minikube profile listMinikubeProfileListOptions
minikube serviceMinikubeServiceOptions
minikube service listMinikubeServiceListOptions
minikube sshMinikubeSshOptions
minikube ssh-hostMinikubeSshHostOptions
minikube ssh-keyMinikubeSshKeyOptions
minikube startMinikubeStartOptions
minikube statusMinikubeStatusOptions
minikube stopMinikubeStopOptions
minikube tunnelMinikubeTunnelOptions
minikube unpauseMinikubeUnpauseOptions
minikube versionMinikubeVersionOptions