kf target
Set the default Space to run commands against.
Name
kf target - Set the default Space to run commands against.
Synopsis
kf target [flags]
Examples
# See the current Space kf target # Target a Space kf target -s my-space
Flags
-h, --helphelp for target
-s, --target-space=stringTarget the given space.
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.
Last modified October 24, 2025: Remove references to cluster task (#1089) (da51826)